SampleConsensusModelParallelLine defines a model for 3D line segmentation using additional angular constraints. The model coefficients are defined as: More...
#include <sac_model_parallel_line.h>
Public Types | |
typedef SampleConsensusModelLine < PointT >::PointCloud | PointCloud |
typedef SampleConsensusModelLine < PointT >::PointCloudConstPtr | PointCloudConstPtr |
typedef SampleConsensusModelLine < PointT >::PointCloudPtr | PointCloudPtr |
typedef boost::shared_ptr < SampleConsensusModelParallelLine > | Ptr |
Public Member Functions | |
virtual int | countWithinDistance (const Eigen::VectorXf &model_coefficients, const double threshold) |
Count all the points which respect the given model coefficients as inliers. | |
Eigen::Vector3f | getAxis () |
Get the axis along which we need to search for a plane perpendicular to. | |
void | getDistancesToModel (const Eigen::VectorXf &model_coefficients, std::vector< double > &distances) |
Compute all squared distances from the cloud data to a given line model. | |
double | getEpsAngle () |
Get the angle epsilon (delta) threshold. | |
pcl::SacModel | getModelType () const |
Return an unique id for this model (SACMODEL_PARALLEL_LINE). | |
SampleConsensusModelParallelLine (const PointCloudConstPtr &cloud, bool random=false) | |
Constructor for base SampleConsensusModelParallelLine. | |
SampleConsensusModelParallelLine (const PointCloudConstPtr &cloud, const std::vector< int > &indices, bool random=false) | |
Constructor for base SampleConsensusModelParallelLine. | |
void | selectWithinDistance (const Eigen::VectorXf &model_coefficients, const double threshold, std::vector< int > &inliers) |
Select all the points which respect the given model coefficients as inliers. | |
void | setAxis (const Eigen::Vector3f &ax) |
Set the axis along which we need to search for a plane perpendicular to. | |
void | setEpsAngle (const double ea) |
Set the angle epsilon (delta) threshold. | |
virtual | ~SampleConsensusModelParallelLine () |
Empty destructor. | |
Protected Member Functions | |
bool | isModelValid (const Eigen::VectorXf &model_coefficients) |
Check whether a model is valid given the user constraints. | |
Protected Attributes | |
Eigen::Vector3f | axis_ |
The axis along which we need to search for a plane perpendicular to. | |
double | eps_angle_ |
The maximum allowed difference between the plane normal and the given axis. |
SampleConsensusModelParallelLine defines a model for 3D line segmentation using additional angular constraints. The model coefficients are defined as:
Definition at line 63 of file sac_model_parallel_line.h.
typedef SampleConsensusModelLine<PointT>::PointCloud pcl::SampleConsensusModelParallelLine< PointT >::PointCloud |
Reimplemented from pcl::SampleConsensusModelLine< PointT >.
Definition at line 66 of file sac_model_parallel_line.h.
typedef SampleConsensusModelLine<PointT>::PointCloudConstPtr pcl::SampleConsensusModelParallelLine< PointT >::PointCloudConstPtr |
Reimplemented from pcl::SampleConsensusModelLine< PointT >.
Definition at line 68 of file sac_model_parallel_line.h.
typedef SampleConsensusModelLine<PointT>::PointCloudPtr pcl::SampleConsensusModelParallelLine< PointT >::PointCloudPtr |
Reimplemented from pcl::SampleConsensusModelLine< PointT >.
Definition at line 67 of file sac_model_parallel_line.h.
typedef boost::shared_ptr<SampleConsensusModelParallelLine> pcl::SampleConsensusModelParallelLine< PointT >::Ptr |
Reimplemented from pcl::SampleConsensusModelLine< PointT >.
Definition at line 70 of file sac_model_parallel_line.h.
pcl::SampleConsensusModelParallelLine< PointT >::SampleConsensusModelParallelLine | ( | const PointCloudConstPtr & | cloud, |
bool | random = false |
||
) | [inline] |
Constructor for base SampleConsensusModelParallelLine.
[in] | cloud | the input point cloud dataset |
[in] | random | if true set the random seed to the current time, else set to 12345 (default: false) |
Definition at line 76 of file sac_model_parallel_line.h.
pcl::SampleConsensusModelParallelLine< PointT >::SampleConsensusModelParallelLine | ( | const PointCloudConstPtr & | cloud, |
const std::vector< int > & | indices, | ||
bool | random = false |
||
) | [inline] |
Constructor for base SampleConsensusModelParallelLine.
[in] | cloud | the input point cloud dataset |
[in] | indices | a vector of point indices to be used from cloud |
[in] | random | if true set the random seed to the current time, else set to 12345 (default: false) |
Definition at line 89 of file sac_model_parallel_line.h.
virtual pcl::SampleConsensusModelParallelLine< PointT >::~SampleConsensusModelParallelLine | ( | ) | [inline, virtual] |
Empty destructor.
Definition at line 99 of file sac_model_parallel_line.h.
int pcl::SampleConsensusModelParallelLine< PointT >::countWithinDistance | ( | const Eigen::VectorXf & | model_coefficients, |
const double | threshold | ||
) | [virtual] |
Count all the points which respect the given model coefficients as inliers.
[in] | model_coefficients | the coefficients of a model that we need to compute distances to |
[in] | threshold | maximum admissible distance threshold for determining the inliers from the outliers |
Reimplemented from pcl::SampleConsensusModelLine< PointT >.
Definition at line 63 of file sac_model_parallel_line.hpp.
Eigen::Vector3f pcl::SampleConsensusModelParallelLine< PointT >::getAxis | ( | ) | [inline] |
Get the axis along which we need to search for a plane perpendicular to.
Definition at line 109 of file sac_model_parallel_line.h.
void pcl::SampleConsensusModelParallelLine< PointT >::getDistancesToModel | ( | const Eigen::VectorXf & | model_coefficients, |
std::vector< double > & | distances | ||
) | [virtual] |
Compute all squared distances from the cloud data to a given line model.
[in] | model_coefficients | the coefficients of a line model that we need to compute distances to |
[out] | distances | the resultant estimated squared distances |
Reimplemented from pcl::SampleConsensusModelLine< PointT >.
Definition at line 75 of file sac_model_parallel_line.hpp.
double pcl::SampleConsensusModelParallelLine< PointT >::getEpsAngle | ( | ) | [inline] |
Get the angle epsilon (delta) threshold.
Definition at line 118 of file sac_model_parallel_line.h.
pcl::SacModel pcl::SampleConsensusModelParallelLine< PointT >::getModelType | ( | ) | const [inline, virtual] |
Return an unique id for this model (SACMODEL_PARALLEL_LINE).
Reimplemented from pcl::SampleConsensusModelLine< PointT >.
Definition at line 150 of file sac_model_parallel_line.h.
bool pcl::SampleConsensusModelParallelLine< PointT >::isModelValid | ( | const Eigen::VectorXf & | model_coefficients | ) | [protected, virtual] |
Check whether a model is valid given the user constraints.
[in] | model_coefficients | the set of model coefficients |
Reimplemented from pcl::SampleConsensusModelLine< PointT >.
Definition at line 90 of file sac_model_parallel_line.hpp.
void pcl::SampleConsensusModelParallelLine< PointT >::selectWithinDistance | ( | const Eigen::VectorXf & | model_coefficients, |
const double | threshold, | ||
std::vector< int > & | inliers | ||
) | [virtual] |
Select all the points which respect the given model coefficients as inliers.
[in] | model_coefficients | the coefficients of a line model that we need to compute distances to |
[in] | threshold | a maximum admissible distance threshold for determining the inliers from the outliers |
[out] | inliers | the resultant model inliers |
Reimplemented from pcl::SampleConsensusModelLine< PointT >.
Definition at line 48 of file sac_model_parallel_line.hpp.
void pcl::SampleConsensusModelParallelLine< PointT >::setAxis | ( | const Eigen::Vector3f & | ax | ) | [inline] |
Set the axis along which we need to search for a plane perpendicular to.
[in] | ax | the axis along which we need to search for a plane perpendicular to |
Definition at line 105 of file sac_model_parallel_line.h.
void pcl::SampleConsensusModelParallelLine< PointT >::setEpsAngle | ( | const double | ea | ) | [inline] |
Set the angle epsilon (delta) threshold.
[in] | ea | the maximum allowed difference between the plane normal and the given axis. |
Definition at line 115 of file sac_model_parallel_line.h.
Eigen::Vector3f pcl::SampleConsensusModelParallelLine< PointT >::axis_ [protected] |
The axis along which we need to search for a plane perpendicular to.
Definition at line 161 of file sac_model_parallel_line.h.
double pcl::SampleConsensusModelParallelLine< PointT >::eps_angle_ [protected] |
The maximum allowed difference between the plane normal and the given axis.
Definition at line 164 of file sac_model_parallel_line.h.