42 #include <pcl/registration/correspondence_estimation.h>
47 namespace registration {
59 template <
typename Po
intSource,
typename Po
intTarget,
typename Scalar =
float>
83 using Ptr = shared_ptr<
157 inline Eigen::Matrix4f
204 const double max_distance);
235 #include <pcl/registration/impl/correspondence_estimation_organized_projection.hpp>
shared_ptr< PointCloud< PointSource > > Ptr
shared_ptr< const PointCloud< PointSource > > ConstPtr
Abstract CorrespondenceEstimationBase class.
PointCloudTargetPtr input_transformed_
The transformed input source point cloud dataset.
PointRepresentationConstPtr point_representation_
The target point representation used (internal).
bool target_cloud_updated_
Variable that stores whether we have a new target cloud, meaning we need to pre-process it again.
shared_ptr< CorrespondenceEstimationBase< PointSource, PointTarget, Scalar > > Ptr
CorrespondenceEstimationOrganizedProjection computes correspondences by projecting the source point c...
typename PointCloudTarget::Ptr PointCloudTargetPtr
typename PointCloudSource::ConstPtr PointCloudSourceConstPtr
virtual CorrespondenceEstimationBase< PointSource, PointTarget, Scalar >::Ptr clone() const
Clone and cast to CorrespondenceEstimationBase.
void setFocalLengths(const float fx, const float fy)
Sets the focal length parameters of the target camera.
typename PointCloudSource::Ptr PointCloudSourcePtr
shared_ptr< CorrespondenceEstimationOrganizedProjection< PointSource, PointTarget, Scalar > > Ptr
void getCameraCenters(float &cx, float &cy) const
Reads back the camera center parameters of the target camera.
void determineReciprocalCorrespondences(Correspondences &correspondences, const double max_distance)
Computes the correspondences, applying a maximum Euclidean distance threshold.
void determineCorrespondences(Correspondences &correspondences, const double max_distance)
Computes the correspondences, applying a maximum Euclidean distance threshold.
Eigen::Matrix4f getSourceTransformation() const
Reads back the transformation from the source point cloud to the target point cloud.
void setSourceTransformation(const Eigen::Matrix4f &src_to_tgt_transformation)
Sets the transformation from the source point cloud to the target point cloud.
Eigen::Matrix4f src_to_tgt_transformation_
CorrespondenceEstimationOrganizedProjection()
Empty constructor that sets all the intrinsic calibration to the default Kinect values.
shared_ptr< const CorrespondenceEstimationOrganizedProjection< PointSource, PointTarget, Scalar > > ConstPtr
Eigen::Matrix3f projection_matrix_
float getDepthThreshold() const
Reads back the depth threshold; after projecting the source points in the image space of the target c...
void setCameraCenters(const float cx, const float cy)
Sets the camera center parameters of the target camera.
typename PointCloudTarget::ConstPtr PointCloudTargetConstPtr
void getFocalLengths(float &fx, float &fy) const
Reads back the focal length parameters of the target camera.
void setDepthThreshold(const float depth_threshold)
Sets the depth threshold; after projecting the source points in the image space of the target camera,...
#define PCL_MAKE_ALIGNED_OPERATOR_NEW
Macro to signal a class requires a custom allocator.
Defines functions, macros and traits for allocating and using memory.
std::vector< pcl::Correspondence, Eigen::aligned_allocator< pcl::Correspondence > > Correspondences
Defines all the PCL and non-PCL macros used.