MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Protected Attributes
mds::img::CPixelStatsExtractor< T > Class Template Reference

Class used to extract image features for a triangle. More...

#include <mdsPixelStatsExtractor.h>

Inheritance diagram for mds::img::CPixelStatsExtractor< T >:
Inheritance graph
[legend]

List of all members.

Public Types

enum  
 Check that V is a feature vector type. More...
typedef CFeatureExtractor
< CPixelStats
tBase
 Base class.
typedef tBase::tFeature tFeature
 Type representing feature value.
typedef T tPixel
 Image pixel type.
typedef tBase::tVector tVector
 Feature vector.

Public Member Functions

void accumulate (tPixel Value)
 Extracts and acumulates image charakteristics from a given pixel value.
void accumulate (const CPixelStatsExtractor &Extractor)
 Acumulates image charakteristics from a given feature extractor.
void clear ()
 Clears all internal statistics.
 CPixelStatsExtractor ()
 Default constructor.
 CPixelStatsExtractor (const CPixelStatsExtractor &Extractor)
 Copy constructor.
void evaluate (tVector &Vector)
CPixelStatsExtractoroperator= (const CPixelStatsExtractor &Extractor)
 Assignement operator.
 ~CPixelStatsExtractor ()
 Destructor.

Protected Attributes

double m_dSum
 Sum of all pixels.
double m_dSumSqr
int m_iNumOfPixels
 Number of pixels counted.

Detailed Description

template<typename T>
class mds::img::CPixelStatsExtractor< T >

Class used to extract image features for a triangle.


Member Typedef Documentation

template<typename T >
typedef CFeatureExtractor<CPixelStats> mds::img::CPixelStatsExtractor< T >::tBase

Base class.

template<typename T >
typedef tBase::tFeature mds::img::CPixelStatsExtractor< T >::tFeature

Type representing feature value.

Reimplemented from mds::img::CFeatureExtractor< CPixelStats >.

template<typename T >
typedef T mds::img::CPixelStatsExtractor< T >::tPixel

Image pixel type.

template<typename T >
typedef tBase::tVector mds::img::CPixelStatsExtractor< T >::tVector

Feature vector.

Reimplemented from mds::img::CFeatureExtractor< CPixelStats >.


Member Enumeration Documentation

anonymous enum [inherited]

Check that V is a feature vector type.

You will see name of this enum somewhere in compiler error message if the type V can't be used.


Constructor & Destructor Documentation

template<typename T >
mds::img::CPixelStatsExtractor< T >::CPixelStatsExtractor ( )

Default constructor.

template<typename T >
mds::img::CPixelStatsExtractor< T >::CPixelStatsExtractor ( const CPixelStatsExtractor< T > &  Extractor)

Copy constructor.

template<typename T >
mds::img::CPixelStatsExtractor< T >::~CPixelStatsExtractor ( )

Destructor.


Member Function Documentation

template<typename T >
void CPixelStatsExtractor::accumulate ( tPixel  Value)

Extracts and acumulates image charakteristics from a given pixel value.

template<typename T >
void CPixelStatsExtractor::accumulate ( const CPixelStatsExtractor< T > &  Extractor)

Acumulates image charakteristics from a given feature extractor.

template<typename T >
void CPixelStatsExtractor::clear ( )

Clears all internal statistics.

template<typename T >
void CPixelStatsExtractor::evaluate ( tVector Vector)
template<typename T >
CPixelStatsExtractor< T > & CPixelStatsExtractor::operator= ( const CPixelStatsExtractor< T > &  Extractor)

Assignement operator.


Member Data Documentation

template<typename T >
double mds::img::CPixelStatsExtractor< T >::m_dSum [protected]

Sum of all pixels.

template<typename T >
double mds::img::CPixelStatsExtractor< T >::m_dSumSqr [protected]
template<typename T >
int mds::img::CPixelStatsExtractor< T >::m_iNumOfPixels [protected]

Number of pixels counted.


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