40 #include <pcl/pcl_base.h> 42 #include <pcl/search/pcl_search.h> 55 template <
typename Po
intT>
62 template <
typename Po
intT>
63 PCL_DEPRECATED(1, 12,
"tgt parameter is not used; it is deprecated and will be removed in future releases")
68 const typename
pcl::search::Search<
PointT>::Ptr &tree,
71 getPointCloudDifference<PointT> (src, threshold, tree, output);
83 template <
typename Po
intT>
113 inline PointCloudConstPtr
const 170 #ifdef PCL_NO_PRECOMPILE 171 #include <pcl/segmentation/impl/segment_differences.hpp> void setSearchMethod(const KdTreePtr &tree)
Provide a pointer to the search object.
shared_ptr< PointCloud< PointT > > Ptr
void getPointCloudDifference(const pcl::PointCloud< PointT > &src, double threshold, const typename pcl::search::Search< PointT >::Ptr &tree, pcl::PointCloud< PointT > &output)
Obtain the difference between two aligned point clouds as another point cloud, given a distance thres...
double getDistanceThreshold()
Get the squared distance tolerance between corresponding points as a measure in the L2 Euclidean spac...
double distance_threshold_
The distance tolerance (squared) as a measure in the L2 Euclidean space between corresponding points...
PointIndices::Ptr PointIndicesPtr
PointCloudConstPtr const getTargetCloud()
Get a pointer to the input target point cloud dataset.
IndicesPtr indices_
A pointer to the vector of point indices to use.
bool initCompute()
This method should get called before starting the actual computation.
void segment(PointCloud &output)
Segment differences between two input point clouds.
SegmentDifferences obtains the difference between two spatially aligned point clouds and returns the ...
shared_ptr< ::pcl::PointIndices > Ptr
SegmentDifferences()
Empty constructor.
KdTreePtr tree_
A pointer to the spatial search object.
PointCloudConstPtr target_
The input target point cloud dataset.
virtual std::string getClassName() const
Class getName method.
void setTargetCloud(const PointCloudConstPtr &cloud)
Provide a pointer to the target dataset against which we compare the input cloud given in setInputClo...
typename PointCloud::Ptr PointCloudPtr
bool deinitCompute()
This method should get called after finishing the actual computation.
PointCloud represents the base class in PCL for storing collections of 3D points. ...
typename KdTree::Ptr KdTreePtr
shared_ptr< const ::pcl::PointIndices > ConstPtr
void setDistanceThreshold(double sqr_threshold)
Set the maximum distance tolerance (squared) between corresponding points in the two input datasets...
shared_ptr< const PointCloud< PointT > > ConstPtr
PointCloudConstPtr input_
The input point cloud dataset.
shared_ptr< pcl::search::Search< PointT > > Ptr
#define PCL_DEPRECATED(Major, Minor, Message)
macro for compatibility across compilers and help remove old deprecated items for the Major...
A point structure representing Euclidean xyz coordinates, and the RGB color.
KdTreePtr getSearchMethod()
Get a pointer to the search method used.
PointIndices::ConstPtr PointIndicesConstPtr
Defines all the PCL and non-PCL macros used.
typename PointCloud::ConstPtr PointCloudConstPtr