|
Point Cloud Library (PCL) 1.15.0
|
#include <pcl/segmentation/unary_classifier.h>
Public Member Functions | |
| UnaryClassifier () | |
| Constructor that sets default values for member variables. | |
| ~UnaryClassifier () | |
| This destructor destroys the cloud... | |
| void | setInputCloud (typename pcl::PointCloud< PointT >::Ptr input_cloud) |
| This method sets the input cloud. | |
| void | train (pcl::PointCloud< pcl::FPFHSignature33 >::Ptr &output) |
| void | trainWithLabel (std::vector< pcl::PointCloud< pcl::FPFHSignature33 >, Eigen::aligned_allocator< pcl::PointCloud< pcl::FPFHSignature33 > > > &output) |
| void | segment (pcl::PointCloud< pcl::PointXYZRGBL >::Ptr &out) |
| void | queryFeatureDistances (std::vector< pcl::PointCloud< pcl::FPFHSignature33 >::Ptr > &trained_features, pcl::PointCloud< pcl::FPFHSignature33 >::Ptr query_features, pcl::Indices &indi, std::vector< float > &dist) |
| void | assignLabels (pcl::Indices &indi, std::vector< float > &dist, int n_feature_means, float feature_threshold, pcl::PointCloud< pcl::PointXYZRGBL >::Ptr out) |
| void | setClusterSize (unsigned int k) |
| void | setNormalRadiusSearch (float param) |
| void | setFPFHRadiusSearch (float param) |
| void | setLabelField (bool l) |
| void | setTrainedFeatures (std::vector< pcl::PointCloud< pcl::FPFHSignature33 >::Ptr > &features) |
| void | setFeatureThreshold (float threshold) |
Protected Member Functions | |
| void | convertCloud (typename pcl::PointCloud< PointT >::Ptr in, pcl::PointCloud< pcl::PointXYZ >::Ptr out) |
| void | convertCloud (typename pcl::PointCloud< PointT >::Ptr in, pcl::PointCloud< pcl::PointXYZRGBL >::Ptr out) |
| void | findClusters (typename pcl::PointCloud< PointT >::Ptr in, std::vector< int > &cluster_numbers) |
| void | getCloudWithLabel (typename pcl::PointCloud< PointT >::Ptr in, pcl::PointCloud< pcl::PointXYZ >::Ptr out, int label_num) |
| void | computeFPFH (pcl::PointCloud< pcl::PointXYZ >::Ptr in, pcl::PointCloud< pcl::FPFHSignature33 >::Ptr out, float normal_radius_search, float fpfh_radius_search) |
| void | kmeansClustering (pcl::PointCloud< pcl::FPFHSignature33 >::Ptr in, pcl::PointCloud< pcl::FPFHSignature33 >::Ptr out, int k) |
Protected Attributes | |
| pcl::PointCloud< PointT >::Ptr | input_cloud_ {new pcl::PointCloud<PointT>} |
| Contains the input cloud. | |
| bool | label_field_ {false} |
| unsigned int | cluster_size_ {0} |
| float | normal_radius_search_ {0.01f} |
| float | fpfh_radius_search_ {0.05f} |
| float | feature_threshold_ {5.0} |
| std::vector< pcl::PointCloud< pcl::FPFHSignature33 >::Ptr > | trained_features_ {} |
Definition at line 57 of file unary_classifier.h.
|
default |
Constructor that sets default values for member variables.
|
default |
This destructor destroys the cloud...
References assignLabels(), queryFeatureDistances(), segment(), setInputCloud(), train(), and trainWithLabel().
| void pcl::UnaryClassifier< PointT >::assignLabels | ( | pcl::Indices & | indi, |
| std::vector< float > & | dist, | ||
| int | n_feature_means, | ||
| float | feature_threshold, | ||
| pcl::PointCloud< pcl::PointXYZRGBL >::Ptr | out ) |
Definition at line 320 of file unary_classifier.hpp.
References pcl::PointCloud< PointT >::size().
Referenced by segment(), and ~UnaryClassifier().
|
protected |
Definition at line 195 of file unary_classifier.hpp.
References pcl::Feature< PointInT, PointOutT >::compute(), pcl::NormalEstimation< PointInT, PointOutT >::setInputCloud(), pcl::PCLBase< PointT >::setInputCloud(), pcl::FeatureFromNormals< PointInT, PointNT, PointOutT >::setInputNormals(), pcl::Feature< PointInT, PointOutT >::setRadiusSearch(), and pcl::Feature< PointInT, PointOutT >::setSearchMethod().
Referenced by segment(), train(), and trainWithLabel().
|
protected |
Definition at line 79 of file unary_classifier.hpp.
References pcl::PointCloud< PointT >::height, pcl::PointCloud< PointT >::is_dense, pcl::PointCloud< PointT >::points, pcl::PointCloud< PointT >::size(), and pcl::PointCloud< PointT >::width.
|
protected |
Definition at line 100 of file unary_classifier.hpp.
References pcl::PointCloud< PointT >::height, pcl::PointCloud< PointT >::is_dense, pcl::_PointXYZRGBL::label, pcl::PointCloud< PointT >::points, pcl::PointCloud< PointT >::size(), and pcl::PointCloud< PointT >::width.
|
protected |
Definition at line 127 of file unary_classifier.hpp.
References pcl::getFieldIndex().
Referenced by trainWithLabel().
|
protected |
Definition at line 160 of file unary_classifier.hpp.
References pcl::getFieldIndex(), pcl::PointCloud< PointT >::height, pcl::PointCloud< PointT >::is_dense, pcl::PointCloud< PointT >::push_back(), pcl::PointCloud< PointT >::size(), and pcl::PointCloud< PointT >::width.
Referenced by trainWithLabel().
|
protected |
Definition at line 224 of file unary_classifier.hpp.
References pcl::Kmeans::addDataPoint(), pcl::Kmeans::get_centroids(), pcl::PointCloud< PointT >::height, pcl::FPFHSignature33::histogram, pcl::PointCloud< PointT >::is_dense, pcl::Kmeans::kMeans(), pcl::PointCloud< PointT >::points, pcl::Kmeans::setClusterSize(), pcl::PointCloud< PointT >::size(), and pcl::PointCloud< PointT >::width.
Referenced by train(), and trainWithLabel().
| void pcl::UnaryClassifier< PointT >::queryFeatureDistances | ( | std::vector< pcl::PointCloud< pcl::FPFHSignature33 >::Ptr > & | trained_features, |
| pcl::PointCloud< pcl::FPFHSignature33 >::Ptr | query_features, | ||
| pcl::Indices & | indi, | ||
| std::vector< float > & | dist ) |
Definition at line 263 of file unary_classifier.hpp.
References pcl::PointCloud< PointT >::size().
Referenced by segment(), and ~UnaryClassifier().
| void pcl::UnaryClassifier< PointT >::segment | ( | pcl::PointCloud< pcl::PointXYZRGBL >::Ptr & | out | ) |
Definition at line 395 of file unary_classifier.hpp.
References assignLabels(), computeFPFH(), convertCloud(), feature_threshold_, fpfh_radius_search_, input_cloud_, normal_radius_search_, queryFeatureDistances(), and trained_features_.
Referenced by ~UnaryClassifier().
|
inline |
Definition at line 98 of file unary_classifier.h.
References cluster_size_.
|
inline |
Definition at line 113 of file unary_classifier.h.
References feature_threshold_.
|
inline |
Definition at line 104 of file unary_classifier.h.
References fpfh_radius_search_.
| void pcl::UnaryClassifier< PointT >::setInputCloud | ( | typename pcl::PointCloud< PointT >::Ptr | input_cloud | ) |
This method sets the input cloud.
| [in] | input_cloud | input point cloud |
Definition at line 63 of file unary_classifier.hpp.
References pcl::getFieldIndex(), input_cloud_, and label_field_.
Referenced by ~UnaryClassifier().
|
inline |
Definition at line 107 of file unary_classifier.h.
References label_field_.
|
inline |
Definition at line 101 of file unary_classifier.h.
References normal_radius_search_.
|
inline |
Definition at line 110 of file unary_classifier.h.
References trained_features_.
| void pcl::UnaryClassifier< PointT >::train | ( | pcl::PointCloud< pcl::FPFHSignature33 >::Ptr & | output | ) |
Definition at line 346 of file unary_classifier.hpp.
References cluster_size_, computeFPFH(), convertCloud(), fpfh_radius_search_, input_cloud_, kmeansClustering(), and normal_radius_search_.
Referenced by ~UnaryClassifier().
| void pcl::UnaryClassifier< PointT >::trainWithLabel | ( | std::vector< pcl::PointCloud< pcl::FPFHSignature33 >, Eigen::aligned_allocator< pcl::PointCloud< pcl::FPFHSignature33 > > > & | output | ) |
Definition at line 364 of file unary_classifier.hpp.
References cluster_size_, computeFPFH(), findClusters(), fpfh_radius_search_, getCloudWithLabel(), input_cloud_, kmeansClustering(), and normal_radius_search_.
Referenced by ~UnaryClassifier().
|
protected |
Definition at line 152 of file unary_classifier.h.
Referenced by setClusterSize(), train(), and trainWithLabel().
|
protected |
Definition at line 156 of file unary_classifier.h.
Referenced by segment(), and setFeatureThreshold().
|
protected |
Definition at line 155 of file unary_classifier.h.
Referenced by segment(), setFPFHRadiusSearch(), train(), and trainWithLabel().
|
protected |
Contains the input cloud.
Definition at line 148 of file unary_classifier.h.
Referenced by segment(), setInputCloud(), train(), and trainWithLabel().
|
protected |
Definition at line 150 of file unary_classifier.h.
Referenced by setInputCloud(), and setLabelField().
|
protected |
Definition at line 154 of file unary_classifier.h.
Referenced by segment(), setNormalRadiusSearch(), train(), and trainWithLabel().
|
protected |
Definition at line 159 of file unary_classifier.h.
Referenced by segment(), and setTrainedFeatures().