44 #include <pcl/point_cloud.h>
47 #include <pcl/features/fpfh.h>
49 #include <pcl/ml/kmeans.h>
56 template <
typename Po
intT>
88 std::vector<float> &dist);
92 std::vector<float> &dist,
94 float feature_threshold,
127 std::vector<int> &cluster_numbers);
137 float normal_radius_search,
138 float fpfh_radius_search);
150 bool label_field_{
false};
152 unsigned int cluster_size_{0};
154 float normal_radius_search_{0.01f};
155 float fpfh_radius_search_{0.05f};
156 float feature_threshold_{5.0};
159 std::vector<pcl::PointCloud<pcl::FPFHSignature33>::Ptr> trained_features_{};
172 #ifdef PCL_NO_PRECOMPILE
173 #include <pcl/segmentation/impl/unary_classifier.hpp>
PointCloud represents the base class in PCL for storing collections of 3D points.
shared_ptr< PointCloud< PointT > > Ptr
void setFPFHRadiusSearch(float param)
void setTrainedFeatures(std::vector< pcl::PointCloud< pcl::FPFHSignature33 >::Ptr > &features)
void setNormalRadiusSearch(float param)
void setClusterSize(unsigned int k)
void setLabelField(bool l)
void setFeatureThreshold(float threshold)
UnaryClassifier()
Constructor that sets default values for member variables.
~UnaryClassifier()
This destructor destroys the cloud...
Defines all the PCL implemented PointT point type structures.
#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.
IndicesAllocator<> Indices
Type used for indices in PCL.
Defines all the PCL and non-PCL macros used.