A Sample Consensus Model class for oriented 3D line segmentation. More...
#include <sac_model_oriented_line.h>
Public Member Functions | |
virtual void | getDistancesToModel (const std::vector< double > &model_coefficients, std::vector< double > &distances) |
Compute all distances from the cloud data to a given line model. | |
virtual int | getModelType () |
Return an unique id for this model (SACMODEL_ORIENTED_LINE). | |
virtual void | selectWithinDistance (const std::vector< double > &model_coefficients, double threshold, std::vector< int > &inliers) |
Select all the points which respect the given model coefficients as inliers. | |
void | setAxis (const geometry_msgs::Point32 &ax) |
Set the axis along which we need to search for a line. | |
void | setEpsAngle (double ea) |
Set the angle epsilon (delta) threshold. | |
Protected Attributes | |
geometry_msgs::Point32 | axis_ |
double | eps_angle_ |
A Sample Consensus Model class for oriented 3D line segmentation.
Definition at line 45 of file sac_model_oriented_line.h.
void sample_consensus::SACModelOrientedLine::getDistancesToModel | ( | const std::vector< double > & | model_coefficients, | |
std::vector< double > & | distances | |||
) | [virtual] |
Compute all distances from the cloud data to a given line model.
model_coefficients | the coefficients of a line model that we need to compute distances to | |
distances | the resultant estimated distances |
Reimplemented from sample_consensus::SACModelLine.
Definition at line 110 of file sac_model_oriented_line.cpp.
virtual int sample_consensus::SACModelOrientedLine::getModelType | ( | ) | [inline, virtual] |
Return an unique id for this model (SACMODEL_ORIENTED_LINE).
Reimplemented from sample_consensus::SACModelLine.
Definition at line 72 of file sac_model_oriented_line.h.
void sample_consensus::SACModelOrientedLine::selectWithinDistance | ( | const std::vector< double > & | model_coefficients, | |
double | threshold, | |||
std::vector< int > & | inliers | |||
) | [virtual] |
Select all the points which respect the given model coefficients as inliers.
model_coefficients | the coefficients of a line model that we need to compute distances to | |
threshold | a maximum admissible distance threshold for determining the inliers from the outliers | |
inliers | the resultant model inliers |
Reimplemented from sample_consensus::SACModelLine.
Definition at line 52 of file sac_model_oriented_line.cpp.
void sample_consensus::SACModelOrientedLine::setAxis | ( | const geometry_msgs::Point32 & | ax | ) | [inline] |
Set the axis along which we need to search for a line.
ax | a pointer to the axis |
Definition at line 54 of file sac_model_oriented_line.h.
void sample_consensus::SACModelOrientedLine::setEpsAngle | ( | double | ea | ) | [inline] |
Set the angle epsilon (delta) threshold.
ea | the maximum allowed threshold between the line direction and the given axis |
Definition at line 65 of file sac_model_oriented_line.h.
geometry_msgs::Point32 sample_consensus::SACModelOrientedLine::axis_ [protected] |
Definition at line 75 of file sac_model_oriented_line.h.
double sample_consensus::SACModelOrientedLine::eps_angle_ [protected] |
Definition at line 76 of file sac_model_oriented_line.h.