41#include <pcl/registration/correspondence_rejection.h>
42#include <pcl/conversions.h>
74 template <
typename Po
intT>
80 static_pointer_cast<pcl::registration::DataContainer<PointT>>(
data_container_)
84 template <
typename Po
intT>
90 static_pointer_cast<pcl::registration::DataContainer<PointT>>(
data_container_)
PointCloud represents the base class in PCL for storing collections of 3D points.
shared_ptr< PointCloud< PointT > > Ptr
shared_ptr< const PointCloud< PointT > > ConstPtr
void setInputTarget(const typename pcl::PointCloud< PointT >::ConstPtr &cloud)
float depth_step_threshold_
bool requiresTargetPoints() const override
See if this rejector requires a target cloud.
DataContainerInterface::Ptr DataContainerPtr
void setNumberOfBoundaryNaNs(int val)
void setSourcePoints(pcl::PCLPointCloud2::ConstPtr cloud2) override
Blob method for setting the source cloud.
void setTargetPoints(pcl::PCLPointCloud2::ConstPtr cloud2) override
Method for setting the target cloud.
virtual bool updateSource(const Eigen::Matrix4d &)
int boundary_nans_threshold_
CorrespondenceRejectionOrganizedBoundary()=default
Empty constructor.
void setInputSource(const typename pcl::PointCloud< PointT >::ConstPtr &cloud)
void applyRejection(pcl::Correspondences &correspondences) override
Apply the rejection algorithm.
void getRemainingCorrespondences(const pcl::Correspondences &original_correspondences, pcl::Correspondences &remaining_correspondences) override
Get a list of valid correspondences after rejection from the original set of correspondences.
DataContainerPtr data_container_
bool requiresSourcePoints() const override
See if this rejector requires source points.
CorrespondenceRejector()=default
Empty constructor.
CorrespondencesConstPtr input_correspondences_
The input correspondences.
DataContainer is a container for the input and target point clouds and implements the interface to co...
shared_ptr< DataContainerInterface > Ptr
Defines functions, macros and traits for allocating and using memory.
std::vector< pcl::Correspondence, Eigen::aligned_allocator< pcl::Correspondence > > Correspondences
void fromPCLPointCloud2(const pcl::PCLPointCloud2 &msg, pcl::PointCloud< PointT > &cloud, const MsgFieldMap &field_map, const std::uint8_t *msg_data)
Convert a PCLPointCloud2 binary data blob into a pcl::PointCloud<T> object using a field_map.
shared_ptr< const ::pcl::PCLPointCloud2 > ConstPtr