#include <mdsTriFeatures.h>
Inheritance diagram for mds::seg::CTriFeatures:
Public Types | |
enum | { NUM_OF_FEATURES = TriFeatures::NUM_OF_FEATURES } |
The number of features. More... | |
enum | { MEAN_VALUE = 0, VARIANCE, FIRST_LOCAL_MOMENT = MEAN_VALUE + TriFeatures::NUM_OF_BASIC_FEATURES, FIRST_HARALICK_FEATURE = FIRST_LOCAL_MOMENT + TriFeatures::NUM_OF_MOMENTS } |
Indexes of the most important features. More... | |
enum | { ERROR_NOT_EVALUATED = 1, ERROR_CANNOT_EVALUATE = 2 } |
Error codes. More... | |
typedef double | tFeature |
Type representing feature value. | |
typedef mds::math::CStaticVector< double, TriFeatures::NUM_OF_FEATURES > | tVector |
Feature vector. | |
Public Member Functions | |
CTriFeatures () | |
Default constructor. | |
int | getError () const |
Returns current error code. | |
const tFeature & | getFeature (tSize i) const |
tFeature & | getFeature (tSize i) |
Returns value of the i-th feature. | |
int | getNumOfPixels () const |
Returns the number of pixels taken into account. | |
const tFeature & | getPixelMean () const |
tFeature & | getPixelMean () |
Returns mean value of all pixels in the triangle. | |
const tFeature & | getPixelVariance () const |
tFeature & | getPixelVariance () |
Returns variance of all pixels in the triangle. | |
bool | isError () const |
Returns true if the previous evaluation of features failed. | |
void | setError (int iError) |
Sets the error code. | |
void | setFeature (tSize i, tFeature Value) |
Sets value of the i-th feature. | |
void | setNumOfPixels (int iValue) |
Sets the number of pixels. | |
void | setPixelMean (tFeature Value) |
Sets the pixel mean. | |
void | setPixelVariance (tFeature Value) |
Sets the pixel variance. | |
~CTriFeatures () | |
Destructor. | |
Protected Attributes | |
int | m_iError |
Error while evaluating the features. | |
int | m_iNumOfPixels |
Total number of pixels. | |
tFeature | m_PixelVariance |
Variance of the pixel values. |
|
Type representing feature value.
|
|
Feature vector.
|
|
The number of features.
|
|
Indexes of the most important features.
|
|
Error codes.
|
|
Default constructor.
|
|
Destructor.
|
|
Returns current error code.
|
|
|
|
Returns value of the i-th feature.
|
|
Returns the number of pixels taken into account.
|
|
|
|
Returns mean value of all pixels in the triangle.
|
|
|
|
Returns variance of all pixels in the triangle.
|
|
Returns true if the previous evaluation of features failed.
|
|
Sets the error code.
|
|
Sets value of the i-th feature.
|
|
Sets the number of pixels.
|
|
Sets the pixel mean.
|
|
Sets the pixel variance.
|
|
Error while evaluating the features.
|
|
Total number of pixels.
|
|
Variance of the pixel values.
|