Point Cloud Library (PCL)  1.7.0
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
pcl::registration::CorrespondenceRejectionOrganizedBoundary Class Reference

The CorrespondenceRejectionOrganizedBoundary class implements a simple correspondence rejection measure. More...

#include <pcl/registration/correspondence_rejection_organized_boundary.h>

+ Inheritance diagram for pcl::registration::CorrespondenceRejectionOrganizedBoundary:

Public Member Functions

 CorrespondenceRejectionOrganizedBoundary ()
 Empty constructor. More...
void getRemainingCorrespondences (const pcl::Correspondences &original_correspondences, pcl::Correspondences &remaining_correspondences)
 Get a list of valid correspondences after rejection from the original set of correspondences. More...
void setNumberOfBoundaryNaNs (int val)
template<typename PointT >
void setInputSource (const typename pcl::PointCloud< PointT >::ConstPtr &cloud)
template<typename PointT >
void setInputTarget (const typename pcl::PointCloud< PointT >::ConstPtr &cloud)
virtual bool updateSource (const Eigen::Matrix4d &)
- Public Member Functions inherited from pcl::registration::CorrespondenceRejector
 CorrespondenceRejector ()
 Empty constructor. More...
virtual ~CorrespondenceRejector ()
 Empty destructor. More...
virtual void setInputCorrespondences (const CorrespondencesConstPtr &correspondences)
 Provide a pointer to the vector of the input correspondences. More...
CorrespondencesConstPtr getInputCorrespondences ()
 Get a pointer to the vector of the input correspondences. More...
void getCorrespondences (pcl::Correspondences &correspondences)
 Run correspondence rejection. More...
void getRejectedQueryIndices (const pcl::Correspondences &correspondences, std::vector< int > &indices)
 Determine the indices of query points of correspondences that have been rejected, i.e., the difference between the input correspondences (set via setInputCorrespondences) and the given correspondence vector. More...
const std::string & getClassName () const
 Get a string representation of the name of this class. More...

Protected Types

typedef boost::shared_ptr
< pcl::registration::DataContainerInterface

Protected Member Functions

void applyRejection (pcl::Correspondences &correspondences)
 Apply the rejection algorithm. More...

Protected Attributes

int boundary_nans_threshold_
int window_size_
float depth_step_threshold_
DataContainerPtr data_container_
- Protected Attributes inherited from pcl::registration::CorrespondenceRejector
std::string rejection_name_
 The name of the rejection method. More...
CorrespondencesConstPtr input_correspondences_
 The input correspondences. More...

Additional Inherited Members

- Public Types inherited from pcl::registration::CorrespondenceRejector
typedef boost::shared_ptr
< CorrespondenceRejector
typedef boost::shared_ptr
< const CorrespondenceRejector

Detailed Description

The CorrespondenceRejectionOrganizedBoundary class implements a simple correspondence rejection measure.

For each pair of points in correspondence, it checks whether they are on the boundary of a silhouette. This is done by counting the number of NaN dexels in a window around the points (the threshold and window size can be set by the user).

Both the source and the target clouds need to be organized, otherwise all the correspondences will be rejected.
Alexandru E. Ichim

Definition at line 59 of file correspondence_rejection_organized_boundary.h.

Member Typedef Documentation

Constructor & Destructor Documentation

pcl::registration::CorrespondenceRejectionOrganizedBoundary::CorrespondenceRejectionOrganizedBoundary ( )

Empty constructor.

Definition at line 63 of file correspondence_rejection_organized_boundary.h.

Member Function Documentation

void pcl::registration::CorrespondenceRejectionOrganizedBoundary::applyRejection ( pcl::Correspondences correspondences)

Apply the rejection algorithm.

[out]correspondencesthe set of resultant correspondences.

Implements pcl::registration::CorrespondenceRejector.

Definition at line 105 of file correspondence_rejection_organized_boundary.h.

void pcl::registration::CorrespondenceRejectionOrganizedBoundary::getRemainingCorrespondences ( const pcl::Correspondences original_correspondences,
pcl::Correspondences remaining_correspondences 

Get a list of valid correspondences after rejection from the original set of correspondences.

Pure virtual. Compared to getCorrespondences this function is stateless, i.e., input correspondences do not need to be provided beforehand, but are directly provided in the function call.

[in]original_correspondencesthe set of initial correspondences given
[out]remaining_correspondencesthe resultant filtered set of remaining correspondences

Implements pcl::registration::CorrespondenceRejector.

template<typename PointT >
void pcl::registration::CorrespondenceRejectionOrganizedBoundary::setInputSource ( const typename pcl::PointCloud< PointT >::ConstPtr cloud)
template<typename PointT >
void pcl::registration::CorrespondenceRejectionOrganizedBoundary::setInputTarget ( const typename pcl::PointCloud< PointT >::ConstPtr cloud)
void pcl::registration::CorrespondenceRejectionOrganizedBoundary::setNumberOfBoundaryNaNs ( int  val)
virtual bool pcl::registration::CorrespondenceRejectionOrganizedBoundary::updateSource ( const Eigen::Matrix4d &  )

Member Data Documentation

int pcl::registration::CorrespondenceRejectionOrganizedBoundary::boundary_nans_threshold_
DataContainerPtr pcl::registration::CorrespondenceRejectionOrganizedBoundary::data_container_
float pcl::registration::CorrespondenceRejectionOrganizedBoundary::depth_step_threshold_
int pcl::registration::CorrespondenceRejectionOrganizedBoundary::window_size_

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