mds::seg::CTriFeatures Class Reference

#include <mdsTriFeatures.h>

Inheritance diagram for mds::seg::CTriFeatures:

Inheritance graph
[legend]
List of all members.

Detailed Description

Feature vector extracted from triangle(s).


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 tFeaturegetFeature (tSize i) const
tFeaturegetFeature (tSize i)
 Returns value of the i-th feature.
int getNumOfPixels () const
 Returns the number of pixels taken into account.
const tFeaturegetPixelMean () const
tFeaturegetPixelMean ()
 Returns mean value of all pixels in the triangle.
const tFeaturegetPixelVariance () const
tFeaturegetPixelVariance ()
 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.


Member Typedef Documentation

typedef double mds::seg::CTriFeatures::tFeature
 

Type representing feature value.

typedef mds::math::CStaticVector<double, TriFeatures::NUM_OF_FEATURES> mds::seg::CTriFeatures::tVector
 

Feature vector.


Member Enumeration Documentation

anonymous enum
 

The number of features.

Enumerator:
NUM_OF_FEATURES 

anonymous enum
 

Indexes of the most important features.

Enumerator:
MEAN_VALUE 
VARIANCE 
FIRST_LOCAL_MOMENT 
FIRST_HARALICK_FEATURE 

anonymous enum
 

Error codes.

Enumerator:
ERROR_NOT_EVALUATED 
ERROR_CANNOT_EVALUATE 


Constructor & Destructor Documentation

mds::seg::CTriFeatures::CTriFeatures  )  [inline]
 

Default constructor.

mds::seg::CTriFeatures::~CTriFeatures  )  [inline]
 

Destructor.


Member Function Documentation

int mds::seg::CTriFeatures::getError  )  const [inline]
 

Returns current error code.

const tFeature& mds::seg::CTriFeatures::getFeature tSize  i  )  const [inline]
 

tFeature& mds::seg::CTriFeatures::getFeature tSize  i  )  [inline]
 

Returns value of the i-th feature.

int mds::seg::CTriFeatures::getNumOfPixels  )  const [inline]
 

Returns the number of pixels taken into account.

const tFeature& mds::seg::CTriFeatures::getPixelMean  )  const [inline]
 

tFeature& mds::seg::CTriFeatures::getPixelMean  )  [inline]
 

Returns mean value of all pixels in the triangle.

const tFeature& mds::seg::CTriFeatures::getPixelVariance  )  const [inline]
 

tFeature& mds::seg::CTriFeatures::getPixelVariance  )  [inline]
 

Returns variance of all pixels in the triangle.

bool mds::seg::CTriFeatures::isError  )  const [inline]
 

Returns true if the previous evaluation of features failed.

void mds::seg::CTriFeatures::setError int  iError  )  [inline]
 

Sets the error code.

void mds::seg::CTriFeatures::setFeature tSize  i,
tFeature  Value
[inline]
 

Sets value of the i-th feature.

void mds::seg::CTriFeatures::setNumOfPixels int  iValue  )  [inline]
 

Sets the number of pixels.

void mds::seg::CTriFeatures::setPixelMean tFeature  Value  )  [inline]
 

Sets the pixel mean.

void mds::seg::CTriFeatures::setPixelVariance tFeature  Value  )  [inline]
 

Sets the pixel variance.


Member Data Documentation

int mds::seg::CTriFeatures::m_iError [protected]
 

Error while evaluating the features.

int mds::seg::CTriFeatures::m_iNumOfPixels [protected]
 

Total number of pixels.

tFeature mds::seg::CTriFeatures::m_PixelVariance [protected]
 

Variance of the pixel values.


The documentation for this class was generated from the following file:
Generated on Thu Mar 11 10:36:25 2010 for MDSTk Extension Libraries by  doxygen 1.4.6-NO