Point Cloud Library (PCL)
1.7.1
|
CorrespondenceEstimationBackprojection computes correspondences as points in the target cloud which have minimum More...
#include <pcl/registration/correspondence_estimation_backprojection.h>
Public Member Functions | |
CorrespondenceEstimationBackProjection () | |
Empty constructor. More... | |
virtual | ~CorrespondenceEstimationBackProjection () |
Empty destructor. More... | |
void | setSourceNormals (const NormalsConstPtr &normals) |
Set the normals computed on the source point cloud. More... | |
NormalsConstPtr | getSourceNormals () const |
Get the normals of the source point cloud. More... | |
void | setTargetNormals (const NormalsConstPtr &normals) |
Set the normals computed on the target point cloud. More... | |
NormalsConstPtr | getTargetNormals () const |
Get the normals of the target point cloud. More... | |
void | determineCorrespondences (pcl::Correspondences &correspondences, double max_distance=std::numeric_limits< double >::max()) |
Determine the correspondences between input and target cloud. More... | |
virtual void | determineReciprocalCorrespondences (pcl::Correspondences &correspondences, double max_distance=std::numeric_limits< double >::max()) |
Determine the reciprocal correspondences between input and target cloud. More... | |
void | setKSearch (unsigned int k) |
Set the number of nearest neighbours to be considered in the target point cloud. More... | |
void | getKSearch () const |
Get the number of nearest neighbours considered in the target point cloud for computing correspondences. More... | |
![]() | |
CorrespondenceEstimationBase () | |
Empty constructor. More... | |
virtual | ~CorrespondenceEstimationBase () |
Empty destructor. More... | |
PCL_DEPRECATED (void setInputCloud(const PointCloudSourceConstPtr &cloud),"[pcl::registration::CorrespondenceEstimationBase::setInputCloud] setInputCloud is deprecated. Please use setInputSource instead.") | |
Provide a pointer to the input source (e.g., the point cloud that we want to align to the target) More... | |
PCL_DEPRECATED (PointCloudSourceConstPtr const getInputCloud(),"[pcl::registration::CorrespondenceEstimationBase::getInputCloud] getInputCloud is deprecated. Please use getInputSource instead.") | |
Get a pointer to the input point cloud dataset target. More... | |
void | setInputSource (const PointCloudSourceConstPtr &cloud) |
Provide a pointer to the input source (e.g., the point cloud that we want to align to the target) More... | |
PointCloudSourceConstPtr const | getInputSource () |
Get a pointer to the input point cloud dataset target. More... | |
void | setInputTarget (const PointCloudTargetConstPtr &cloud) |
Provide a pointer to the input target (e.g., the point cloud that we want to align the input source to) More... | |
PointCloudTargetConstPtr const | getInputTarget () |
Get a pointer to the input point cloud dataset target. More... | |
void | setIndicesSource (const IndicesPtr &indices) |
Provide a pointer to the vector of indices that represent the input source point cloud. More... | |
IndicesPtr const | getIndicesSource () |
Get a pointer to the vector of indices used for the source dataset. More... | |
void | setIndicesTarget (const IndicesPtr &indices) |
Provide a pointer to the vector of indices that represent the input target point cloud. More... | |
IndicesPtr const | getIndicesTarget () |
Get a pointer to the vector of indices used for the target dataset. More... | |
void | setSearchMethodTarget (const KdTreePtr &tree, bool force_no_recompute=false) |
Provide a pointer to the search object used to find correspondences in the target cloud. More... | |
KdTreePtr | getSearchMethodTarget () const |
Get a pointer to the search method used to find correspondences in the target cloud. More... | |
void | setSearchMethodSource (const KdTreeReciprocalPtr &tree, bool force_no_recompute=false) |
Provide a pointer to the search object used to find correspondences in the source cloud (usually used by reciprocal correspondence finding). More... | |
KdTreeReciprocalPtr | getSearchMethodSource () const |
Get a pointer to the search method used to find correspondences in the source cloud. More... | |
void | setPointRepresentation (const PointRepresentationConstPtr &point_representation) |
Provide a boost shared pointer to the PointRepresentation to be used when searching for nearest neighbors. More... | |
![]() | |
PCLBase () | |
Empty constructor. More... | |
PCLBase (const PCLBase &base) | |
Copy constructor. More... | |
virtual | ~PCLBase () |
Destructor. More... | |
virtual void | setInputCloud (const PointCloudConstPtr &cloud) |
Provide a pointer to the input dataset. More... | |
PointCloudConstPtr const | getInputCloud () |
Get a pointer to the input point cloud dataset. More... | |
virtual void | setIndices (const IndicesPtr &indices) |
Provide a pointer to the vector of indices that represents the input data. More... | |
virtual void | setIndices (const IndicesConstPtr &indices) |
Provide a pointer to the vector of indices that represents the input data. More... | |
virtual void | setIndices (const PointIndicesConstPtr &indices) |
Provide a pointer to the vector of indices that represents the input data. More... | |
virtual void | setIndices (size_t row_start, size_t col_start, size_t nb_rows, size_t nb_cols) |
Set the indices for the points laying within an interest region of the point cloud. More... | |
IndicesPtr const | getIndices () |
Get a pointer to the vector of indices used. More... | |
const PointSource & | operator[] (size_t pos) |
Override PointCloud operator[] to shorten code. More... | |
Protected Member Functions | |
bool | initCompute () |
Internal computation initalization. More... | |
![]() | |
const std::string & | getClassName () const |
Abstract class get name method. More... | |
bool | initCompute () |
Internal computation initalization. More... | |
bool | initComputeReciprocal () |
Internal computation initalization for reciprocal correspondences. More... | |
![]() | |
bool | initCompute () |
This method should get called before starting the actual computation. More... | |
bool | deinitCompute () |
This method should get called after finishing the actual computation. More... | |
Additional Inherited Members | |
![]() | |
std::string | corr_name_ |
The correspondence estimation method name. More... | |
KdTreePtr | tree_ |
A pointer to the spatial search object used for the target dataset. More... | |
KdTreeReciprocalPtr | tree_reciprocal_ |
A pointer to the spatial search object used for the source dataset. More... | |
PointCloudTargetConstPtr | target_ |
The input point cloud dataset target. More... | |
IndicesPtr | target_indices_ |
The target point cloud dataset indices. More... | |
PointRepresentationConstPtr | point_representation_ |
The point representation used (internal). More... | |
PointCloudTargetPtr | input_transformed_ |
The transformed input source point cloud dataset. More... | |
std::vector< pcl::PCLPointField > | input_fields_ |
The types of input point fields available. More... | |
bool | target_cloud_updated_ |
Variable that stores whether we have a new target cloud, meaning we need to pre-process it again. More... | |
bool | source_cloud_updated_ |
Variable that stores whether we have a new source cloud, meaning we need to pre-process it again. More... | |
bool | force_no_recompute_ |
A flag which, if set, means the tree operating on the target cloud will never be recomputed. More... | |
bool | force_no_recompute_reciprocal_ |
A flag which, if set, means the tree operating on the source cloud will never be recomputed. More... | |
CorrespondenceEstimationBackprojection computes correspondences as points in the target cloud which have minimum
Definition at line 56 of file correspondence_estimation_backprojection.h.
typedef boost::shared_ptr<const CorrespondenceEstimationBackProjection<PointSource, PointTarget, NormalT, Scalar> > pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >::ConstPtr |
Definition at line 60 of file correspondence_estimation_backprojection.h.
typedef pcl::search::KdTree<PointTarget> pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >::KdTree |
Definition at line 72 of file correspondence_estimation_backprojection.h.
typedef pcl::search::KdTree<PointTarget>::Ptr pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >::KdTreePtr |
Definition at line 73 of file correspondence_estimation_backprojection.h.
typedef PointCloudNormals::ConstPtr pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >::NormalsConstPtr |
Definition at line 85 of file correspondence_estimation_backprojection.h.
typedef PointCloudNormals::Ptr pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >::NormalsPtr |
Definition at line 84 of file correspondence_estimation_backprojection.h.
typedef pcl::PointCloud<NormalT> pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >::PointCloudNormals |
Definition at line 83 of file correspondence_estimation_backprojection.h.
typedef pcl::PointCloud<PointSource> pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >::PointCloudSource |
Definition at line 75 of file correspondence_estimation_backprojection.h.
typedef PointCloudSource::ConstPtr pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >::PointCloudSourceConstPtr |
Definition at line 77 of file correspondence_estimation_backprojection.h.
typedef PointCloudSource::Ptr pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >::PointCloudSourcePtr |
Definition at line 76 of file correspondence_estimation_backprojection.h.
typedef pcl::PointCloud<PointTarget> pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >::PointCloudTarget |
Definition at line 79 of file correspondence_estimation_backprojection.h.
typedef PointCloudTarget::ConstPtr pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >::PointCloudTargetConstPtr |
Definition at line 81 of file correspondence_estimation_backprojection.h.
typedef PointCloudTarget::Ptr pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >::PointCloudTargetPtr |
Definition at line 80 of file correspondence_estimation_backprojection.h.
typedef boost::shared_ptr<CorrespondenceEstimationBackProjection<PointSource, PointTarget, NormalT, Scalar> > pcl::registration::CorrespondenceEstimationBackProjection< PointSource, PointTarget, NormalT, Scalar >::Ptr |
Definition at line 59 of file correspondence_estimation_backprojection.h.
|
inline |
Empty constructor.
Definition at line 92 of file correspondence_estimation_backprojection.h.
References pcl::registration::CorrespondenceEstimationBase< PointSource, PointTarget, Scalar >::corr_name_.
|
inlinevirtual |
Empty destructor.
Definition at line 102 of file correspondence_estimation_backprojection.h.
|
virtual |
Determine the correspondences between input and target cloud.
[out] | correspondences | the found correspondences (index of query point, index of target point, distance) |
[in] | max_distance | maximum distance between the normal on the source point cloud and the corresponding point in the target point cloud |
Implements pcl::registration::CorrespondenceEstimationBase< PointSource, PointTarget, Scalar >.
Definition at line 57 of file correspondence_estimation_backprojection.hpp.
References pcl::Correspondence::distance, pcl::Correspondence::index_match, and pcl::Correspondence::index_query.
|
virtual |
Determine the reciprocal correspondences between input and target cloud.
A correspondence is considered reciprocal if both Src_i has Tgt_i as a correspondence, and Tgt_i has Src_i as one.
[out] | correspondences | the found correspondences (index of query and target point, distance) |
[in] | max_distance | maximum allowed distance between correspondences |
Implements pcl::registration::CorrespondenceEstimationBase< PointSource, PointTarget, Scalar >.
Definition at line 158 of file correspondence_estimation_backprojection.hpp.
References pcl::Correspondence::distance, pcl::Correspondence::index_match, and pcl::Correspondence::index_query.
|
inline |
Get the number of nearest neighbours considered in the target point cloud for computing correspondences.
By default we use k = 10 nearest neighbors.
Definition at line 159 of file correspondence_estimation_backprojection.h.
|
inline |
Get the normals of the source point cloud.
Definition at line 113 of file correspondence_estimation_backprojection.h.
|
inline |
Get the normals of the target point cloud.
Definition at line 124 of file correspondence_estimation_backprojection.h.
|
protected |
Internal computation initalization.
Definition at line 44 of file correspondence_estimation_backprojection.hpp.
|
inline |
Set the number of nearest neighbours to be considered in the target point cloud.
By default, we use k = 10 nearest neighbors.
[in] | k | the number of nearest neighbours to be considered |
Definition at line 152 of file correspondence_estimation_backprojection.h.
|
inline |
Set the normals computed on the source point cloud.
[in] | normals | the normals computed for the source cloud |
Definition at line 108 of file correspondence_estimation_backprojection.h.
|
inline |
Set the normals computed on the target point cloud.
[in] | normals | the normals computed for the target cloud |
Definition at line 119 of file correspondence_estimation_backprojection.h.