Point Cloud Library (PCL)  1.6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions
pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT > Class Template Reference

EuclideanPlaneCoefficientComparator is a Comparator that operates on plane coefficients, for use in planar segmentation. More...

#include <pcl/segmentation/euclidean_plane_coefficient_comparator.h>

Inheritance diagram for pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >:
Inheritance graph
[legend]
Collaboration diagram for pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >:
Collaboration graph
[legend]

Public Types

typedef Comparator< PointT >
::PointCloud 
PointCloud
 
typedef Comparator< PointT >
::PointCloudConstPtr 
PointCloudConstPtr
 
typedef pcl::PointCloud< PointNT > PointCloudN
 
typedef PointCloudN::Ptr PointCloudNPtr
 
typedef PointCloudN::ConstPtr PointCloudNConstPtr
 
typedef boost::shared_ptr
< EuclideanPlaneCoefficientComparator
< PointT, PointNT > > 
Ptr
 
typedef boost::shared_ptr
< const
EuclideanPlaneCoefficientComparator
< PointT, PointNT > > 
ConstPtr
 
typedef PointCloud::Ptr PointCloudPtr
 

Public Member Functions

 EuclideanPlaneCoefficientComparator ()
 Empty constructor for PlaneCoefficientComparator. More...
 
virtual ~EuclideanPlaneCoefficientComparator ()
 Destructor for PlaneCoefficientComparator. More...
 
virtual bool compare (int idx1, int idx2) const
 Compare two neighboring points, by using normal information, and euclidean distance information. More...
 
virtual void setInputCloud (const PointCloudConstPtr &cloud)
 Set the input cloud for the comparator. More...
 
void setInputNormals (const PointCloudNConstPtr &normals)
 Provide a pointer to the input normals. More...
 
PointCloudNConstPtr getInputNormals () const
 Get the input normals. More...
 
void setPlaneCoeffD (boost::shared_ptr< std::vector< float > > &plane_coeff_d)
 Provide a pointer to a vector of the d-coefficient of the planes' hessian normal form. More...
 
void setPlaneCoeffD (std::vector< float > &plane_coeff_d)
 Provide a pointer to a vector of the d-coefficient of the planes' hessian normal form. More...
 
const std::vector< float > & getPlaneCoeffD () const
 Get a pointer to the vector of the d-coefficient of the planes' hessian normal form. More...
 
virtual void setAngularThreshold (float angular_threshold)
 Set the tolerance in radians for difference in normal direction between neighboring points, to be considered part of the same plane. More...
 
float getAngularThreshold () const
 Get the angular threshold in radians for difference in normal direction between neighboring points, to be considered part of the same plane. More...
 
void setDistanceThreshold (float distance_threshold, bool depth_dependent=false)
 Set the tolerance in meters for difference in perpendicular distance (d component of plane equation) to the plane between neighboring points, to be considered part of the same plane. More...
 
float getDistanceThreshold () const
 Get the distance threshold in meters (d component of plane equation) between neighboring points, to be considered part of the same plane. More...
 
virtual PointCloudConstPtr getInputCloud () const
 Get the input cloud this comparator operates on. More...
 

Detailed Description

template<typename PointT, typename PointNT>
class pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >

EuclideanPlaneCoefficientComparator is a Comparator that operates on plane coefficients, for use in planar segmentation.

In conjunction with OrganizedConnectedComponentSegmentation, this allows planes to be segmented from organized data.

Author
Alex Trevor

Definition at line 55 of file euclidean_plane_coefficient_comparator.h.

Member Typedef Documentation

template<typename PointT , typename PointNT >
typedef boost::shared_ptr<const EuclideanPlaneCoefficientComparator<PointT, PointNT> > pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >::ConstPtr

Definition at line 65 of file euclidean_plane_coefficient_comparator.h.

template<typename PointT , typename PointNT >
typedef Comparator<PointT>::PointCloud pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >::PointCloud

Definition at line 58 of file euclidean_plane_coefficient_comparator.h.

template<typename PointT , typename PointNT >
typedef Comparator<PointT>::PointCloudConstPtr pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >::PointCloudConstPtr

Definition at line 59 of file euclidean_plane_coefficient_comparator.h.

template<typename PointT , typename PointNT >
typedef pcl::PointCloud<PointNT> pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >::PointCloudN

Definition at line 60 of file euclidean_plane_coefficient_comparator.h.

template<typename PointT , typename PointNT >
typedef PointCloudN::ConstPtr pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >::PointCloudNConstPtr

Definition at line 62 of file euclidean_plane_coefficient_comparator.h.

template<typename PointT , typename PointNT >
typedef PointCloudN::Ptr pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >::PointCloudNPtr

Definition at line 61 of file euclidean_plane_coefficient_comparator.h.

template<typename PointT>
typedef PointCloud::Ptr pcl::Comparator< PointT >::PointCloudPtr
inherited

Definition at line 57 of file comparator.h.

template<typename PointT , typename PointNT >
typedef boost::shared_ptr<EuclideanPlaneCoefficientComparator<PointT, PointNT> > pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >::Ptr

Definition at line 64 of file euclidean_plane_coefficient_comparator.h.

Constructor & Destructor Documentation

template<typename PointT , typename PointNT >
pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >::EuclideanPlaneCoefficientComparator ( )
inline

Empty constructor for PlaneCoefficientComparator.

Definition at line 73 of file euclidean_plane_coefficient_comparator.h.

template<typename PointT , typename PointNT >
virtual pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >::~EuclideanPlaneCoefficientComparator ( )
inlinevirtual

Destructor for PlaneCoefficientComparator.

Definition at line 79 of file euclidean_plane_coefficient_comparator.h.

Member Function Documentation

template<typename PointT , typename PointNT >
virtual bool pcl::EuclideanPlaneCoefficientComparator< PointT, PointNT >::compare ( int  idx1,
int  idx2 
) const
inlinevirtual

Compare two neighboring points, by using normal information, and euclidean distance information.

Parameters
[in]idx1The index of the first point.
[in]idx2The index of the second point.

Reimplemented from pcl::PlaneCoefficientComparator< PointT, PointNT >.

Definition at line 88 of file euclidean_plane_coefficient_comparator.h.

template<typename PointT , typename PointNT >
float pcl::PlaneCoefficientComparator< PointT, PointNT >::getAngularThreshold ( ) const
inlineinherited

Get the angular threshold in radians for difference in normal direction between neighboring points, to be considered part of the same plane.

Definition at line 158 of file plane_coefficient_comparator.h.

template<typename PointT , typename PointNT >
float pcl::PlaneCoefficientComparator< PointT, PointNT >::getDistanceThreshold ( ) const
inlineinherited

Get the distance threshold in meters (d component of plane equation) between neighboring points, to be considered part of the same plane.

Definition at line 177 of file plane_coefficient_comparator.h.

template<typename PointT>
virtual PointCloudConstPtr pcl::Comparator< PointT >::getInputCloud ( ) const
inlinevirtualinherited

Get the input cloud this comparator operates on.

Definition at line 85 of file comparator.h.

template<typename PointT , typename PointNT >
PointCloudNConstPtr pcl::PlaneCoefficientComparator< PointT, PointNT >::getInputNormals ( ) const
inlineinherited

Get the input normals.

Definition at line 117 of file plane_coefficient_comparator.h.

template<typename PointT , typename PointNT >
const std::vector<float>& pcl::PlaneCoefficientComparator< PointT, PointNT >::getPlaneCoeffD ( ) const
inlineinherited

Get a pointer to the vector of the d-coefficient of the planes' hessian normal form.

Definition at line 142 of file plane_coefficient_comparator.h.

template<typename PointT , typename PointNT >
virtual void pcl::PlaneCoefficientComparator< PointT, PointNT >::setAngularThreshold ( float  angular_threshold)
inlinevirtualinherited

Set the tolerance in radians for difference in normal direction between neighboring points, to be considered part of the same plane.

Parameters
[in]angular_thresholdthe tolerance in radians

Definition at line 151 of file plane_coefficient_comparator.h.

template<typename PointT , typename PointNT >
void pcl::PlaneCoefficientComparator< PointT, PointNT >::setDistanceThreshold ( float  distance_threshold,
bool  depth_dependent = false 
)
inlineinherited

Set the tolerance in meters for difference in perpendicular distance (d component of plane equation) to the plane between neighboring points, to be considered part of the same plane.

Parameters
[in]distance_thresholdthe tolerance in meters (at 1m)
[in]depth_dependentwhether to scale the threshold based on range from the sensor (default: false)

Definition at line 168 of file plane_coefficient_comparator.h.

template<typename PointT , typename PointNT >
virtual void pcl::PlaneCoefficientComparator< PointT, PointNT >::setInputCloud ( const PointCloudConstPtr cloud)
inlinevirtualinherited

Set the input cloud for the comparator.

Parameters
[in]cloudthe point cloud this comparator will operate on

Reimplemented from pcl::Comparator< PointT >.

Definition at line 101 of file plane_coefficient_comparator.h.

template<typename PointT , typename PointNT >
void pcl::PlaneCoefficientComparator< PointT, PointNT >::setInputNormals ( const PointCloudNConstPtr normals)
inlineinherited

Provide a pointer to the input normals.

Parameters
[in]normalsthe input normal cloud

Definition at line 110 of file plane_coefficient_comparator.h.

template<typename PointT , typename PointNT >
void pcl::PlaneCoefficientComparator< PointT, PointNT >::setPlaneCoeffD ( boost::shared_ptr< std::vector< float > > &  plane_coeff_d)
inlineinherited

Provide a pointer to a vector of the d-coefficient of the planes' hessian normal form.

a, b, and c are provided by the normal cloud.

Parameters
[in]plane_coeff_da pointer to the plane coefficients.

Definition at line 126 of file plane_coefficient_comparator.h.

template<typename PointT , typename PointNT >
void pcl::PlaneCoefficientComparator< PointT, PointNT >::setPlaneCoeffD ( std::vector< float > &  plane_coeff_d)
inlineinherited

Provide a pointer to a vector of the d-coefficient of the planes' hessian normal form.

a, b, and c are provided by the normal cloud.

Parameters
[in]plane_coeff_da pointer to the plane coefficients.

Definition at line 135 of file plane_coefficient_comparator.h.


The documentation for this class was generated from the following file: