Point Cloud Library (PCL)  1.9.1-dev
List of all members | Public Member Functions
pcl::ScaledMultiChannel2DComparisonFeatureHandler< DATA_TYPE, NUM_OF_CHANNELS, SCALE_CHANNEL, INVERT_SCALE > Class Template Reference

Feature utility class that handles the creation and evaluation of RGBD comparison features. More...

#include <pcl/ml/multi_channel_2d_comparison_feature_handler.h>

+ Inheritance diagram for pcl::ScaledMultiChannel2DComparisonFeatureHandler< DATA_TYPE, NUM_OF_CHANNELS, SCALE_CHANNEL, INVERT_SCALE >:

Public Member Functions

 ScaledMultiChannel2DComparisonFeatureHandler (const int feature_window_width, const int feature_window_height)
 Constructor. More...
 
virtual ~ScaledMultiChannel2DComparisonFeatureHandler ()
 Destructor. 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< PointXY32f >> &features)
 Creates random features. More...
 
void evaluateFeature (const MultiChannel2DComparisonFeature< PointXY32f > &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< PointXY32f > &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< PointXY32f > &feature, std::ostream &stream) const
 Generates code for feature evaluation. More...
 
- Public Member Functions inherited from pcl::FeatureHandler< pcl::MultiChannel2DComparisonFeature< pcl::PointXY32f >, pcl::MultiChannel2DDataSet< DATA_TYPE, NUM_OF_CHANNELS >, pcl::MultipleData2DExampleIndex >
virtual ~FeatureHandler ()
 Destructor. More...
 
virtual void createRandomFeatures (const std::size_t num_of_features, std::vector< pcl::MultiChannel2DComparisonFeature< pcl::PointXY32f > > &features)=0
 Creates random features. More...
 
virtual void generateCodeForEvaluation (const pcl::MultiChannel2DComparisonFeature< pcl::PointXY32f > &feature, ::std::ostream &stream) const=0
 Generates evaluation code for the specified feature and writes it to the specified stream. More...
 

Detailed Description

template<class DATA_TYPE, std::size_t NUM_OF_CHANNELS, std::size_t SCALE_CHANNEL, bool INVERT_SCALE>
class pcl::ScaledMultiChannel2DComparisonFeatureHandler< DATA_TYPE, NUM_OF_CHANNELS, SCALE_CHANNEL, INVERT_SCALE >

Feature utility class that handles the creation and evaluation of RGBD comparison features.

Definition at line 209 of file multi_channel_2d_comparison_feature_handler.h.

Constructor & Destructor Documentation

◆ ScaledMultiChannel2DComparisonFeatureHandler()

template<class DATA_TYPE , std::size_t NUM_OF_CHANNELS, std::size_t SCALE_CHANNEL, bool INVERT_SCALE>
pcl::ScaledMultiChannel2DComparisonFeatureHandler< DATA_TYPE, NUM_OF_CHANNELS, SCALE_CHANNEL, INVERT_SCALE >::ScaledMultiChannel2DComparisonFeatureHandler ( const int  feature_window_width,
const int  feature_window_height 
)
inline

Constructor.

Definition at line 216 of file multi_channel_2d_comparison_feature_handler.h.

◆ ~ScaledMultiChannel2DComparisonFeatureHandler()

template<class DATA_TYPE , std::size_t NUM_OF_CHANNELS, std::size_t SCALE_CHANNEL, bool INVERT_SCALE>
virtual pcl::ScaledMultiChannel2DComparisonFeatureHandler< DATA_TYPE, NUM_OF_CHANNELS, SCALE_CHANNEL, INVERT_SCALE >::~ScaledMultiChannel2DComparisonFeatureHandler ( )
inlinevirtual

Destructor.

Definition at line 223 of file multi_channel_2d_comparison_feature_handler.h.

Member Function Documentation

◆ createRandomFeatures()

template<class DATA_TYPE , std::size_t NUM_OF_CHANNELS, std::size_t SCALE_CHANNEL, bool INVERT_SCALE>
void pcl::ScaledMultiChannel2DComparisonFeatureHandler< DATA_TYPE, NUM_OF_CHANNELS, SCALE_CHANNEL, INVERT_SCALE >::createRandomFeatures ( const std::size_t  num_of_features,
std::vector< MultiChannel2DComparisonFeature< PointXY32f >> &  features 
)
inline

Creates random features.

Parameters
[in]num_of_featuresthe number of random features to create
[out]featuresthe destination for the created random features

Definition at line 243 of file multi_channel_2d_comparison_feature_handler.h.

References pcl::PointXY32f::randomPoint().

◆ evaluateFeature() [1/2]

template<class DATA_TYPE , std::size_t NUM_OF_CHANNELS, std::size_t SCALE_CHANNEL, bool INVERT_SCALE>
void pcl::ScaledMultiChannel2DComparisonFeatureHandler< DATA_TYPE, NUM_OF_CHANNELS, SCALE_CHANNEL, INVERT_SCALE >::evaluateFeature ( const MultiChannel2DComparisonFeature< PointXY32f > &  feature,
MultiChannel2DDataSet< DATA_TYPE, NUM_OF_CHANNELS > &  data_set,
std::vector< MultipleData2DExampleIndex > &  examples,
std::vector< float > &  results,
std::vector< unsigned char > &  flags 
) const
inlinevirtual

Evaluates a feature for a set of examples on the specified data set.

Parameters
[in]featurethe feature to evaluate
[in]data_setthe data set the feature is evaluated on
[in]examplesthe examples the feature is evaluated for
[out]resultsthe destination for the evaluation results
[out]flagsthe destination for the flags corresponding to the evaluation results

Implements pcl::FeatureHandler< pcl::MultiChannel2DComparisonFeature< pcl::PointXY32f >, pcl::MultiChannel2DDataSet< DATA_TYPE, NUM_OF_CHANNELS >, pcl::MultipleData2DExampleIndex >.

Definition at line 273 of file multi_channel_2d_comparison_feature_handler.h.

◆ evaluateFeature() [2/2]

template<class DATA_TYPE , std::size_t NUM_OF_CHANNELS, std::size_t SCALE_CHANNEL, bool INVERT_SCALE>
void pcl::ScaledMultiChannel2DComparisonFeatureHandler< DATA_TYPE, NUM_OF_CHANNELS, SCALE_CHANNEL, INVERT_SCALE >::evaluateFeature ( const MultiChannel2DComparisonFeature< PointXY32f > &  feature,
MultiChannel2DDataSet< DATA_TYPE, NUM_OF_CHANNELS > &  data_set,
const MultipleData2DExampleIndex example,
float &  result,
unsigned char &  flag 
) const
inlinevirtual

Evaluates a feature for one examples on the specified data set.

Parameters
[in]featurethe feature to evaluate
[in]data_setthe data set the feature is evaluated on
[in]examplethe example the feature is evaluated for
[out]resultthe destination for the evaluation result
[out]flagthe destination for the flag corresponding to the evaluation result

Implements pcl::FeatureHandler< pcl::MultiChannel2DComparisonFeature< pcl::PointXY32f >, pcl::MultiChannel2DDataSet< DATA_TYPE, NUM_OF_CHANNELS >, pcl::MultipleData2DExampleIndex >.

Definition at line 299 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.

◆ generateCodeForEvaluation()

template<class DATA_TYPE , std::size_t NUM_OF_CHANNELS, std::size_t SCALE_CHANNEL, bool INVERT_SCALE>
void pcl::ScaledMultiChannel2DComparisonFeatureHandler< DATA_TYPE, NUM_OF_CHANNELS, SCALE_CHANNEL, INVERT_SCALE >::generateCodeForEvaluation ( const MultiChannel2DComparisonFeature< PointXY32f > &  feature,
std::ostream &  stream 
) const
inline

Generates code for feature evaluation.

Parameters
[in]featurethe feature for which code is generated
[out]streamthe destination for the generated code

Definition at line 344 of file multi_channel_2d_comparison_feature_handler.h.

◆ setFeatureWindowSize()

template<class DATA_TYPE , std::size_t NUM_OF_CHANNELS, std::size_t SCALE_CHANNEL, bool INVERT_SCALE>
void pcl::ScaledMultiChannel2DComparisonFeatureHandler< DATA_TYPE, NUM_OF_CHANNELS, SCALE_CHANNEL, INVERT_SCALE >::setFeatureWindowSize ( int  width,
int  height 
)
inline

Sets the feature window size.

Parameters
[in]widththe width of the feature window
[in]heightthe height of the feature window

Definition at line 231 of file multi_channel_2d_comparison_feature_handler.h.


The documentation for this class was generated from the following file: