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

Difference features concatenator class. More...

#include <FeaturesConcatenator.h>

Inheritance diagram for DirectGraphicalModels::CDiffFeaturesConcatenator:
Collaboration diagram for DirectGraphicalModels::CDiffFeaturesConcatenator:

Public Member Functions

 CDiffFeaturesConcatenator (word nFeatures)
 Constructor. More...
 
virtual ~CDiffFeaturesConcatenator (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

Difference features concatenator class.

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

\[\textbf{dst} = \left\{127.5 + f^{1}_{1} - f^{2}_{1}, 127.5 + f^{1}_{2} - f^{2}_{2},\dots,127.5 + 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 83 of file FeaturesConcatenator.h.

Constructor & Destructor Documentation

◆ CDiffFeaturesConcatenator()

DirectGraphicalModels::CDiffFeaturesConcatenator::CDiffFeaturesConcatenator ( word  nFeatures)
inline

Constructor.

Parameters
nFeaturesNumber of features

Definition at line 90 of file FeaturesConcatenator.h.

◆ ~CDiffFeaturesConcatenator()

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

Definition at line 91 of file FeaturesConcatenator.h.

Member Function Documentation

◆ concatenate()

virtual void DirectGraphicalModels::CDiffFeaturesConcatenator::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 93 of file FeaturesConcatenator.h.

◆ getNumFeatures()

virtual word DirectGraphicalModels::CDiffFeaturesConcatenator::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 92 of file FeaturesConcatenator.h.


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