43 #include <pcl/registration/correspondence_rejection.h>
45 #include <pcl/point_cloud.h>
50 namespace registration
70 using Ptr = shared_ptr<CorrespondenceRejectorMedianDistance>;
71 using ConstPtr = shared_ptr<const CorrespondenceRejectorMedianDistance>;
75 : median_distance_ (0)
78 rejection_name_ =
"CorrespondenceRejectorMedianDistance";
97 template <
typename Po
intT>
inline void
100 if (!data_container_)
102 static_pointer_cast<DataContainer<PointT> > (data_container_)->setInputSource (cloud);
109 template <
typename Po
intT>
110 PCL_DEPRECATED(1, 12,
"pcl::registration::CorrespondenceRejectorMedianDistance::setInputCloud is deprecated. Please use setInputSource instead")
114 if (!data_container_)
116 static_pointer_cast<DataContainer<PointT> > (data_container_)->setInputSource (cloud);
123 template <
typename Po
intT>
inline void
126 if (!data_container_)
128 static_pointer_cast<DataContainer<PointT> > (data_container_)->setInputTarget (target);
142 setInputSource<PointXYZ> (cloud);
156 setInputTarget<PointXYZ> (cloud);
166 template <
typename Po
intT>
inline void
168 bool force_no_recompute =
false)
170 static_pointer_cast< DataContainer<PointT> >
171 (data_container_)->setSearchMethodTarget (tree, force_no_recompute );
193 getRemainingCorrespondences (*input_correspondences_, correspondences);
213 #include <pcl/registration/impl/correspondence_rejection_median_distance.hpp>
PointCloud represents the base class in PCL for storing collections of 3D points.
shared_ptr< PointCloud< PointT > > Ptr
shared_ptr< const PointCloud< PointT > > ConstPtr
CorrespondenceRejector represents the base class for correspondence rejection methods
shared_ptr< const CorrespondenceRejector > ConstPtr
CorrespondencesConstPtr input_correspondences_
The input correspondences.
const std::string & getClassName() const
Get a string representation of the name of this class.
shared_ptr< CorrespondenceRejector > Ptr
std::string rejection_name_
The name of the rejection method.
DataContainer is a container for the input and target point clouds and implements the interface to co...
shared_ptr< DataContainerInterface > Ptr
shared_ptr< KdTree< PointT, Tree > > 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)
Convert a PCLPointCloud2 binary data blob into a pcl::PointCloud<T> object using a field_map.
#define PCL_DEPRECATED(Major, Minor, Message)
macro for compatibility across compilers and help remove old deprecated items for the Major....
shared_ptr< const ::pcl::PCLPointCloud2 > ConstPtr
A point structure representing Euclidean xyz coordinates, and the RGB color.