FREE::ImageSampleCharacteristicsCalculator< TImage > Class Template Reference
[Evaluation tools]

Calculate the global mean vector and variance vector. More...

#include <freImageSampleCharacteristicsCalculator.h>

List of all members.

Public Types

typedef
ImageSampleCharacteristicsCalculator 
Self
typedef TImage ImageType
typedef
ImageType::PixelType 
ValueType
typedef double ResultType

Public Member Functions

void Compute ()
void ComputeMean ()
void ComputeVariance (const ResultType &mean)
void ComputeMedian ()
ResultType GetMean () const
ResultType GetVariance () const
ValueType GetMedian () const
ValueType GetNativeMean () const
ValueType GetNativeVariance () const
void SetImage (const ImageType *pField)
 ImageSampleCharacteristicsCalculator ()

Private Attributes

ImageType::ConstPointer m_smpImage
ResultType m_Mean
ValueType m_Median
ResultType m_Variance


Detailed Description

template<class TImage>
class FREE::ImageSampleCharacteristicsCalculator< TImage >

Calculate the global mean vector and variance vector.

The class calculates a mean and a variance vector from the given image. The class asumes the passed image has an itk:Vector as value type.

Definition at line 38 of file freImageSampleCharacteristicsCalculator.h.


Member Typedef Documentation

template<class TImage>
typedef ImageSampleCharacteristicsCalculator FREE::ImageSampleCharacteristicsCalculator< TImage >::Self

Standard class typedefs.

Definition at line 42 of file freImageSampleCharacteristicsCalculator.h.

template<class TImage>
typedef TImage FREE::ImageSampleCharacteristicsCalculator< TImage >::ImageType

Definition at line 43 of file freImageSampleCharacteristicsCalculator.h.

template<class TImage>
typedef ImageType::PixelType FREE::ImageSampleCharacteristicsCalculator< TImage >::ValueType

Definition at line 44 of file freImageSampleCharacteristicsCalculator.h.

template<class TImage>
typedef double FREE::ImageSampleCharacteristicsCalculator< TImage >::ResultType

Definition at line 45 of file freImageSampleCharacteristicsCalculator.h.


Constructor & Destructor Documentation

template<class TImage>
FREE::ImageSampleCharacteristicsCalculator< TImage >::ImageSampleCharacteristicsCalculator (  )  [inline]

Definition at line 190 of file freImageSampleCharacteristicsCalculator.txx.

References FREE::ImageSampleCharacteristicsCalculator< TImage >::m_Mean, FREE::ImageSampleCharacteristicsCalculator< TImage >::m_Median, and FREE::ImageSampleCharacteristicsCalculator< TImage >::m_Variance.


Member Function Documentation

template<class TImage>
void FREE::ImageSampleCharacteristicsCalculator< TImage >::Compute (  )  [inline]

Computes the median, mean and variance and caches them.

Definition at line 41 of file freImageSampleCharacteristicsCalculator.txx.

References FREE::ImageSampleCharacteristicsCalculator< TImage >::m_Mean, FREE::ImageSampleCharacteristicsCalculator< TImage >::m_Median, FREE::ImageSampleCharacteristicsCalculator< TImage >::m_smpImage, and FREE::ImageSampleCharacteristicsCalculator< TImage >::m_Variance.

Referenced by FREE::PrecisionSOMetric< VImageDimension >::ComputeDecomposedValue().

template<class TImage>
void FREE::ImageSampleCharacteristicsCalculator< TImage >::ComputeMean (  )  [inline]

Computes the mean and caches it.

Definition at line 73 of file freImageSampleCharacteristicsCalculator.txx.

References FREE::ImageSampleCharacteristicsCalculator< TImage >::m_Mean, and FREE::ImageSampleCharacteristicsCalculator< TImage >::m_smpImage.

template<class TImage>
void FREE::ImageSampleCharacteristicsCalculator< TImage >::ComputeVariance ( const ResultType mean  )  [inline]

Computes variance with the passed mean and caches the variance.

Definition at line 93 of file freImageSampleCharacteristicsCalculator.txx.

References FREE::ImageSampleCharacteristicsCalculator< TImage >::m_smpImage, and FREE::ImageSampleCharacteristicsCalculator< TImage >::m_Variance.

template<class TImage>
void FREE::ImageSampleCharacteristicsCalculator< TImage >::ComputeMedian (  )  [inline]

Computes the median and caches it.

Definition at line 116 of file freImageSampleCharacteristicsCalculator.txx.

References FREE::ImageSampleCharacteristicsCalculator< TImage >::m_Median, and FREE::ImageSampleCharacteristicsCalculator< TImage >::m_smpImage.

template<class TImage>
ImageSampleCharacteristicsCalculator< TImage >::ResultType FREE::ImageSampleCharacteristicsCalculator< TImage >::GetMean (  )  const [inline]

Returns the mean in double precision

Definition at line 143 of file freImageSampleCharacteristicsCalculator.txx.

References FREE::ImageSampleCharacteristicsCalculator< TImage >::m_Mean.

Referenced by FREE::PrecisionSOMetric< VImageDimension >::ComputeDecomposedValue().

template<class TImage>
ImageSampleCharacteristicsCalculator< TImage >::ResultType FREE::ImageSampleCharacteristicsCalculator< TImage >::GetVariance (  )  const [inline]

Returns the variance in double precision

Definition at line 151 of file freImageSampleCharacteristicsCalculator.txx.

References FREE::ImageSampleCharacteristicsCalculator< TImage >::m_Variance.

Referenced by FREE::PrecisionSOMetric< VImageDimension >::ComputeDecomposedValue().

template<class TImage>
ImageSampleCharacteristicsCalculator< TImage >::ValueType FREE::ImageSampleCharacteristicsCalculator< TImage >::GetMedian (  )  const [inline]

Returns the median

Definition at line 159 of file freImageSampleCharacteristicsCalculator.txx.

References FREE::ImageSampleCharacteristicsCalculator< TImage >::m_Median.

template<class TImage>
ImageSampleCharacteristicsCalculator< TImage >::ValueType FREE::ImageSampleCharacteristicsCalculator< TImage >::GetNativeMean (  )  const [inline]

Returns the mean in its native type

Definition at line 167 of file freImageSampleCharacteristicsCalculator.txx.

References FREE::ImageSampleCharacteristicsCalculator< TImage >::m_Mean.

template<class TImage>
ImageSampleCharacteristicsCalculator< TImage >::ValueType FREE::ImageSampleCharacteristicsCalculator< TImage >::GetNativeVariance (  )  const [inline]

Returns the variance in its native type

Definition at line 175 of file freImageSampleCharacteristicsCalculator.txx.

References FREE::ImageSampleCharacteristicsCalculator< TImage >::m_Variance.

template<class TImage>
void FREE::ImageSampleCharacteristicsCalculator< TImage >::SetImage ( const ImageType pField  )  [inline]

Definition at line 183 of file freImageSampleCharacteristicsCalculator.txx.

References FREE::ImageSampleCharacteristicsCalculator< TImage >::m_smpImage.

Referenced by FREE::PrecisionSOMetric< VImageDimension >::ComputeDecomposedValue().


Member Data Documentation

template<class TImage>
ImageType::ConstPointer FREE::ImageSampleCharacteristicsCalculator< TImage >::m_smpImage [private]

Definition at line 79 of file freImageSampleCharacteristicsCalculator.h.

Referenced by FREE::ImageSampleCharacteristicsCalculator< TImage >::Compute(), FREE::ImageSampleCharacteristicsCalculator< TImage >::ComputeMean(), FREE::ImageSampleCharacteristicsCalculator< TImage >::ComputeMedian(), FREE::ImageSampleCharacteristicsCalculator< TImage >::ComputeVariance(), and FREE::ImageSampleCharacteristicsCalculator< TImage >::SetImage().

template<class TImage>
ResultType FREE::ImageSampleCharacteristicsCalculator< TImage >::m_Mean [private]

Definition at line 81 of file freImageSampleCharacteristicsCalculator.h.

Referenced by FREE::ImageSampleCharacteristicsCalculator< TImage >::Compute(), FREE::ImageSampleCharacteristicsCalculator< TImage >::ComputeMean(), FREE::ImageSampleCharacteristicsCalculator< TImage >::GetMean(), FREE::ImageSampleCharacteristicsCalculator< TImage >::GetNativeMean(), and FREE::ImageSampleCharacteristicsCalculator< TImage >::ImageSampleCharacteristicsCalculator().

template<class TImage>
ValueType FREE::ImageSampleCharacteristicsCalculator< TImage >::m_Median [private]

Definition at line 83 of file freImageSampleCharacteristicsCalculator.h.

Referenced by FREE::ImageSampleCharacteristicsCalculator< TImage >::Compute(), FREE::ImageSampleCharacteristicsCalculator< TImage >::ComputeMedian(), FREE::ImageSampleCharacteristicsCalculator< TImage >::GetMedian(), and FREE::ImageSampleCharacteristicsCalculator< TImage >::ImageSampleCharacteristicsCalculator().

template<class TImage>
ResultType FREE::ImageSampleCharacteristicsCalculator< TImage >::m_Variance [private]

Definition at line 85 of file freImageSampleCharacteristicsCalculator.h.

Referenced by FREE::ImageSampleCharacteristicsCalculator< TImage >::Compute(), FREE::ImageSampleCharacteristicsCalculator< TImage >::ComputeVariance(), FREE::ImageSampleCharacteristicsCalculator< TImage >::GetNativeVariance(), FREE::ImageSampleCharacteristicsCalculator< TImage >::GetVariance(), and FREE::ImageSampleCharacteristicsCalculator< TImage >::ImageSampleCharacteristicsCalculator().


The documentation for this class was generated from the following files:
Generated at Sat Oct 13 18:22:37 2007 for f.r.e.e. - Flexible Registration and Evaluation Engine by doxygen 1.5.3 written by Dimitri van Heesch, © 1997-2000