Direct Graphical Models  v.1.7.0
DirectGraphicalModels::CSimpleFeaturesConcatenator Class Reference

Simple features concatenator class. More...

#include <FeaturesConcatenator.h>

Inheritance diagram for DirectGraphicalModels::CSimpleFeaturesConcatenator:
Collaboration diagram for DirectGraphicalModels::CSimpleFeaturesConcatenator:

Public Member Functions

 CSimpleFeaturesConcatenator (word nFeatures)
 Constructor. More...
 
virtual ~CSimpleFeaturesConcatenator (void)
 
virtual word getNumFeatures (void) const
 Returns the length of the concatenated feature vector. More...
 
virtual void concatenate (const Mat &featureVector1, const Mat &featureVector2, Mat &dst) const
 Concatenated two feature vectors. More...
 
- Public Member Functions inherited from DirectGraphicalModels::CFeaturesConcatenator
 CFeaturesConcatenator (word nFeatures)
 Constructor. More...
 
virtual ~CFeaturesConcatenator (void)
 

Additional Inherited Members

- Protected Attributes inherited from DirectGraphicalModels::CFeaturesConcatenator
word m_nFeatures
 Number of features in the concatenated feature vector. More...
 

Detailed Description

Simple features concatenator class.

This class concatenates two feature vectors \(\textbf{f}_1\) and \(\textbf{f}_2\) as follows:

\[\textbf{dst} = \left\{f^{1}_{1},f^{2}_{1},f^{1}_{2},f^{2}_{2},\dots,f^{n}_{2},f^{n}_{2}\right\}\]

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 52 of file FeaturesConcatenator.h.

Constructor & Destructor Documentation

◆ CSimpleFeaturesConcatenator()

DirectGraphicalModels::CSimpleFeaturesConcatenator::CSimpleFeaturesConcatenator ( word  nFeatures)
inline

Constructor.

Parameters
nFeaturesNumber of features

Definition at line 59 of file FeaturesConcatenator.h.

◆ ~CSimpleFeaturesConcatenator()

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

Definition at line 60 of file FeaturesConcatenator.h.

Member Function Documentation

◆ concatenate()

virtual void DirectGraphicalModels::CSimpleFeaturesConcatenator::concatenate ( const Mat &  featureVector1,
const Mat &  featureVector2,
Mat &  dst 
) const
inlinevirtual

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)

Implements DirectGraphicalModels::CFeaturesConcatenator.

Definition at line 62 of file FeaturesConcatenator.h.

◆ getNumFeatures()

virtual word DirectGraphicalModels::CSimpleFeaturesConcatenator::getNumFeatures ( void  ) const
inlinevirtual

Returns the length of the concatenated feature vector.

Returns
Number of features in the concatenated feature vector

Implements DirectGraphicalModels::CFeaturesConcatenator.

Definition at line 61 of file FeaturesConcatenator.h.


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