|
virtual | ~FeatureHandler ()=default |
| 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...
|
|
template<class FeatureType, class DataSet, class ExampleIndex>
class pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex >
Utility class interface which is used for creating and evaluating features.
Definition at line 49 of file feature_handler.h.
template<class FeatureType , class DataSet , class ExampleIndex >
virtual void pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex >::evaluateFeature |
( |
const FeatureType & |
feature, |
|
|
DataSet & |
data_set, |
|
|
const ExampleIndex & |
example, |
|
|
float & |
result, |
|
|
unsigned char & |
flag |
|
) |
| const |
|
pure virtual |
template<class FeatureType , class DataSet , class ExampleIndex >
virtual void pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex >::evaluateFeature |
( |
const FeatureType & |
feature, |
|
|
DataSet & |
data_set, |
|
|
std::vector< ExampleIndex > & |
examples, |
|
|
std::vector< float > & |
results, |
|
|
std::vector< unsigned char > & |
flags |
|
) |
| const |
|
pure virtual |
Evaluates a feature on the specified data.
- Parameters
-
[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::DecisionTreeEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluateAndAdd(), pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluateAndAdd(), pcl::DecisionTreeEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::getNodes(), and pcl::FernEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::getNodes().