Point Cloud Library (PCL)
1.14.1-dev
|
Feature utility class that handles the creation and evaluation of RGBD comparison features. More...
#include <pcl/ml/multi_channel_2d_comparison_feature_handler.h>
Public Member Functions | |
MultiChannel2DComparisonFeatureHandler (const int feature_window_width, const int feature_window_height) | |
Constructor. More... | |
void | setFeatureWindowSize (int width, int height) |
Sets the feature window size. More... | |
void | createRandomFeatures (const std::size_t num_of_features, std::vector< MultiChannel2DComparisonFeature< PointXY32i >> &features) |
Creates random features. More... | |
void | evaluateFeature (const MultiChannel2DComparisonFeature< PointXY32i > &feature, MultiChannel2DDataSet< DATA_TYPE, NUM_OF_CHANNELS > &data_set, std::vector< MultipleData2DExampleIndex > &examples, std::vector< float > &results, std::vector< unsigned char > &flags) const |
Evaluates a feature for a set of examples on the specified data set. More... | |
void | evaluateFeature (const MultiChannel2DComparisonFeature< PointXY32i > &feature, MultiChannel2DDataSet< DATA_TYPE, NUM_OF_CHANNELS > &data_set, const MultipleData2DExampleIndex &example, float &result, unsigned char &flag) const |
Evaluates a feature for one examples on the specified data set. More... | |
void | generateCodeForEvaluation (const MultiChannel2DComparisonFeature< PointXY32i > &feature, std::ostream &stream) const |
Generates code for feature evaluation. More... | |
Public Member Functions inherited from pcl::FeatureHandler< pcl::MultiChannel2DComparisonFeature< pcl::PointXY32i >, pcl::MultiChannel2DDataSet< DATA_TYPE, NUM_OF_CHANNELS >, pcl::MultipleData2DExampleIndex > | |
virtual | ~FeatureHandler ()=default |
Destructor. More... | |
virtual void | createRandomFeatures (const std::size_t num_of_features, std::vector< pcl::MultiChannel2DComparisonFeature< pcl::PointXY32i > > &features)=0 |
Creates random features. More... | |
virtual void | generateCodeForEvaluation (const pcl::MultiChannel2DComparisonFeature< pcl::PointXY32i > &feature, ::std::ostream &stream) const=0 |
Generates evaluation code for the specified feature and writes it to the specified stream. More... | |
Feature utility class that handles the creation and evaluation of RGBD comparison features.
Definition at line 56 of file multi_channel_2d_comparison_feature_handler.h.
|
inline |
Constructor.
Definition at line 63 of file multi_channel_2d_comparison_feature_handler.h.
|
inline |
Creates random features.
[in] | num_of_features | the number of random features to create |
[out] | features | the destination for the created random features |
Definition at line 87 of file multi_channel_2d_comparison_feature_handler.h.
References pcl::PointXY32i::randomPoint().
|
inlinevirtual |
Evaluates a feature for one examples on the specified data set.
[in] | feature | the feature to evaluate |
[in] | data_set | the data set the feature is evaluated on |
[in] | example | the example the feature is evaluated for |
[out] | result | the destination for the evaluation result |
[out] | flag | the destination for the flag corresponding to the evaluation result |
Definition at line 143 of file multi_channel_2d_comparison_feature_handler.h.
References pcl::MultiChannel2DComparisonFeature< PointT >::channel, pcl::MultipleData2DExampleIndex::data_set_id, pcl::MultiChannel2DComparisonFeature< PointT >::p1, pcl::MultiChannel2DComparisonFeature< PointT >::p2, pcl::MultipleData2DExampleIndex::x, and pcl::MultipleData2DExampleIndex::y.
|
inlinevirtual |
Evaluates a feature for a set of examples on the specified data set.
[in] | feature | the feature to evaluate |
[in] | data_set | the data set the feature is evaluated on |
[in] | examples | the examples the feature is evaluated for |
[out] | results | the destination for the evaluation results |
[out] | flags | the destination for the flags corresponding to the evaluation results |
Definition at line 117 of file multi_channel_2d_comparison_feature_handler.h.
|
inline |
Generates code for feature evaluation.
[in] | feature | the feature for which code is generated |
[out] | stream | the destination for the generated code |
Definition at line 179 of file multi_channel_2d_comparison_feature_handler.h.
|
inline |
Sets the feature window size.
[in] | width | the width of the feature window |
[in] | height | the height of the feature window |
Definition at line 75 of file multi_channel_2d_comparison_feature_handler.h.