Point Cloud Library (PCL)
1.11.1-dev
|
Utility class interface which is used for creating and evaluating features. More...
#include <pcl/ml/feature_handler.h>
Public Member Functions | |
virtual | ~FeatureHandler () |
Destructor. More... | |
virtual void | createRandomFeatures (const std::size_t num_of_features, std::vector< FeatureType > &features)=0 |
Creates random features. More... | |
virtual void | evaluateFeature (const FeatureType &feature, DataSet &data_set, std::vector< ExampleIndex > &examples, std::vector< float > &results, std::vector< unsigned char > &flags) const =0 |
Evaluates a feature on the specified data. More... | |
virtual void | evaluateFeature (const FeatureType &feature, DataSet &data_set, const ExampleIndex &example, float &result, unsigned char &flag) const =0 |
Evaluates a feature on the specified data. More... | |
virtual void | generateCodeForEvaluation (const FeatureType &feature, ::std::ostream &stream) const =0 |
Generates evaluation code for the specified feature and writes it to the specified stream. More... | |
Utility class interface which is used for creating and evaluating features.
Definition at line 49 of file feature_handler.h.
|
inlinevirtual |
Destructor.
Definition at line 52 of file feature_handler.h.
|
pure virtual |
Creates random features.
[in] | num_of_features | the number of random features to create |
[out] | features | the destination for the created features |
Implemented in pcl::face_detection::FeatureHandlerDepthAverage< FT, DataSet, ExampleIndex >.
|
pure virtual |
Evaluates a feature on the specified data.
[in] | feature | the features to evaluate |
[in] | data_set | the data set on which the feature is evaluated |
[in] | example | the examples which specify on which parts of the data set the feature is evaluated |
[out] | result | the destination for the results of the feature evaluation |
[out] | flag | flags that are supplied together with the results |
Implemented in pcl::MultiChannel2DComparisonFeatureHandler< DATA_TYPE, NUM_OF_CHANNELS >, pcl::ScaledMultiChannel2DComparisonFeatureHandler< DATA_TYPE, NUM_OF_CHANNELS, SCALE_CHANNEL, INVERT_SCALE >, and pcl::face_detection::FeatureHandlerDepthAverage< FT, DataSet, ExampleIndex >.
|
pure virtual |
Evaluates a feature on the specified data.
[in] | feature | the features to evaluate |
[in] | data_set | the data set on which the feature is evaluated |
[in] | examples | the examples which specify on which parts of the data set the feature is evaluated |
[out] | results | the destination for the results of the feature evaluation |
[out] | flags | flags that are supplied together with the results |
Implemented in pcl::MultiChannel2DComparisonFeatureHandler< DATA_TYPE, NUM_OF_CHANNELS >, pcl::ScaledMultiChannel2DComparisonFeatureHandler< DATA_TYPE, NUM_OF_CHANNELS, SCALE_CHANNEL, INVERT_SCALE >, and pcl::face_detection::FeatureHandlerDepthAverage< FT, DataSet, ExampleIndex >.
Referenced by pcl::DecisionTreeEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluate(), pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluate(), pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluateAndAdd(), pcl::DecisionTreeEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluateAndAdd(), pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::getNodes(), and pcl::DecisionTreeEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::getNodes().
|
pure virtual |
Generates evaluation code for the specified feature and writes it to the specified stream.
[in] | feature | the feature for which code is generated |
[out] | stream | the destination for the code |
Implemented in pcl::face_detection::FeatureHandlerDepthAverage< FT, DataSet, ExampleIndex >.