Direct Graphical Models
v.1.7.0
|
Difference features concatenator class. More...
#include <FeaturesConcatenator.h>
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... | |
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\}\]
Definition at line 83 of file FeaturesConcatenator.h.
|
inline |
Constructor.
nFeatures | Number of features |
Definition at line 90 of file FeaturesConcatenator.h.
|
inlinevirtual |
Definition at line 91 of file FeaturesConcatenator.h.
|
inlinevirtual |
Concatenated two feature vectors.
[in] | featureVector1 | The first feature vector: Mat(size: nFeatures x 1; type: CV_8UC1) |
[in] | featureVector2 | The second feature vector: Mat(size: nFeatures x 1; type: CV_8UC1) |
[out] | dst | The resulting feture vector: Mat(size: this->nFeaturs() x 1; type: CV_8UC1) |
Implements DirectGraphicalModels::CFeaturesConcatenator.
Definition at line 93 of file FeaturesConcatenator.h.
|
inlinevirtual |
Returns the length of the concatenated feature vector.
Implements DirectGraphicalModels::CFeaturesConcatenator.
Definition at line 92 of file FeaturesConcatenator.h.