Direct Graphical Models  v.1.7.0
DirectGraphicalModels::CFeaturesConcatenator Class Referenceabstract

Features concatenator base abstract class. More...

#include <FeaturesConcatenator.h>

Inheritance diagram for DirectGraphicalModels::CFeaturesConcatenator:

Public Member Functions

 CFeaturesConcatenator (word nFeatures)
 Constructor. More...
 
virtual ~CFeaturesConcatenator (void)
 
virtual word getNumFeatures (void) const =0
 Returns the length of the concatenated feature vector. More...
 
virtual void concatenate (const Mat &featureVector1, const Mat &featureVector2, Mat &dst) const =0
 Concatenated two feature vectors. More...
 

Protected Attributes

word m_nFeatures
 Number of features in the concatenated feature vector. More...
 

Detailed Description

Features concatenator base abstract class.

This class allows for binding two feature vectors (e.g. two n-dimensinal points in feature space) together into a new feature vector

Author
Sergey G. Kosov, serge.nosp@m.y.ko.nosp@m.sov@p.nosp@m.roje.nosp@m.ct-10.nosp@m..de

Definition at line 16 of file FeaturesConcatenator.h.

Constructor & Destructor Documentation

◆ CFeaturesConcatenator()

DirectGraphicalModels::CFeaturesConcatenator::CFeaturesConcatenator ( word  nFeatures)
inline

Constructor.

Parameters
nFeaturesNumber of features

Definition at line 23 of file FeaturesConcatenator.h.

◆ ~CFeaturesConcatenator()

virtual DirectGraphicalModels::CFeaturesConcatenator::~CFeaturesConcatenator ( void  )
inlinevirtual

Definition at line 24 of file FeaturesConcatenator.h.

Member Function Documentation

◆ concatenate()

virtual void DirectGraphicalModels::CFeaturesConcatenator::concatenate ( const Mat &  featureVector1,
const Mat &  featureVector2,
Mat &  dst 
) const
pure virtual

Concatenated two feature vectors.

Parameters
[in]featureVector1The first feature vector: Mat(size: nFeatures x 1; type: CV_8UC1)
[in]featureVector2The second feature vector: Mat(size: nFeatures x 1; type: CV_8UC1)
[out]dstThe resulting feture vector: Mat(size: this->nFeaturs() x 1; type: CV_8UC1)

Implemented in DirectGraphicalModels::CDiffFeaturesConcatenator, and DirectGraphicalModels::CSimpleFeaturesConcatenator.

◆ getNumFeatures()

virtual word DirectGraphicalModels::CFeaturesConcatenator::getNumFeatures ( void  ) const
pure virtual

Returns the length of the concatenated feature vector.

Returns
Number of features in the concatenated feature vector

Implemented in DirectGraphicalModels::CDiffFeaturesConcatenator, and DirectGraphicalModels::CSimpleFeaturesConcatenator.

Member Data Documentation

◆ m_nFeatures

word DirectGraphicalModels::CFeaturesConcatenator::m_nFeatures
protected

Number of features in the concatenated feature vector.

Definition at line 41 of file FeaturesConcatenator.h.


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