Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::ImageStatisticsCalculator::Statistics Class Reference

Class for common statistics, includig hotspot properties. More...

#include <mitkImageStatisticsCalculator.h>

Public Member Functions

 Statistics (bool withHotspotStatistics=true)
 
 Statistics (const Statistics &other)
 
virtual ~Statistics ()
 
Statisticsoperator= (Statistics const &stats)
 
const StatisticsGetHotspotStatistics () const
 
StatisticsGetHotspotStatistics ()
 
bool HasHotspotStatistics () const
 
void SetHasHotspotStatistics (bool hasHotspotStatistics)
 
void Reset (unsigned int dimension=2)
 
virtual unsigned int GetLabel () const
 
virtual void SetLabel (const unsigned int _arg)
 
virtual unsigned int GetN () const
 
virtual void SetN (const unsigned int _arg)
 
virtual double GetMin () const
 
virtual void SetMin (const double _arg)
 
virtual double GetMax () const
 
virtual void SetMax (const double _arg)
 
virtual double GetMean () const
 
virtual void SetMean (const double _arg)
 
virtual double GetMedian () const
 
virtual void SetMedian (const double _arg)
 
double GetVariance () const
 
void SetVariance (const double)
 Set variance. More...
 
double GetSigma () const
 
void SetSigma (const double)
 Set standard deviation (sigma) More...
 
virtual double GetRMS () const
 
virtual void SetRMS (const double _arg)
 
virtual vnl_vector< int > GetMinIndex () const
 
virtual void SetMinIndex (const vnl_vector< int > _arg)
 
virtual vnl_vector< int > GetMaxIndex () const
 
virtual void SetMaxIndex (const vnl_vector< int > _arg)
 
virtual vnl_vector< int > GetHotspotIndex () const
 
virtual void SetHotspotIndex (const vnl_vector< int > _arg)
 
virtual double GetSkewness () const
 
virtual void SetSkewness (const double _arg)
 
virtual double GetKurtosis () const
 
virtual void SetKurtosis (const double _arg)
 
virtual double GetUniformity () const
 
virtual void SetUniformity (const double _arg)
 
virtual double GetEntropy () const
 
virtual void SetEntropy (const double _arg)
 
virtual double GetUPP () const
 
virtual void SetUPP (const double _arg)
 
virtual double GetMPP () const
 
virtual void SetMPP (const double _arg)
 

Detailed Description

Class for common statistics, includig hotspot properties.

Definition at line 175 of file old/mitkImageStatisticsCalculator.h.

Constructor & Destructor Documentation

mitk::ImageStatisticsCalculator::Statistics::Statistics ( bool  withHotspotStatistics = true)

Definition at line 118 of file old/mitkImageStatisticsCalculator.cpp.

References Reset().

Referenced by Statistics().

mitk::ImageStatisticsCalculator::Statistics::~Statistics ( )
virtual

Definition at line 164 of file old/mitkImageStatisticsCalculator.cpp.

Member Function Documentation

virtual double mitk::ImageStatisticsCalculator::Statistics::GetEntropy ( ) const
inlinevirtual

Definition at line 233 of file old/mitkImageStatisticsCalculator.h.

Referenced by operator=(), and Statistics().

virtual vnl_vector<int> mitk::ImageStatisticsCalculator::Statistics::GetHotspotIndex ( ) const
inlinevirtual
ImageStatisticsCalculator::Statistics & mitk::ImageStatisticsCalculator::Statistics::GetHotspotStatistics ( )

Definition at line 262 of file old/mitkImageStatisticsCalculator.cpp.

virtual double mitk::ImageStatisticsCalculator::Statistics::GetKurtosis ( ) const
inlinevirtual

Definition at line 231 of file old/mitkImageStatisticsCalculator.h.

Referenced by operator=(), and Statistics().

virtual unsigned int mitk::ImageStatisticsCalculator::Statistics::GetLabel ( ) const
inlinevirtual

Definition at line 193 of file old/mitkImageStatisticsCalculator.h.

Referenced by operator=(), and Statistics().

virtual vnl_vector<int> mitk::ImageStatisticsCalculator::Statistics::GetMaxIndex ( ) const
inlinevirtual
virtual double mitk::ImageStatisticsCalculator::Statistics::GetMedian ( ) const
inlinevirtual

Definition at line 198 of file old/mitkImageStatisticsCalculator.h.

Referenced by operator=(), and Statistics().

virtual vnl_vector<int> mitk::ImageStatisticsCalculator::Statistics::GetMinIndex ( ) const
inlinevirtual
virtual double mitk::ImageStatisticsCalculator::Statistics::GetMPP ( ) const
inlinevirtual

Definition at line 235 of file old/mitkImageStatisticsCalculator.h.

Referenced by operator=(), and Statistics().

virtual unsigned int mitk::ImageStatisticsCalculator::Statistics::GetN ( ) const
inlinevirtual
virtual double mitk::ImageStatisticsCalculator::Statistics::GetRMS ( ) const
inlinevirtual
virtual double mitk::ImageStatisticsCalculator::Statistics::GetSkewness ( ) const
inlinevirtual

Definition at line 230 of file old/mitkImageStatisticsCalculator.h.

Referenced by operator=(), and Statistics().

virtual double mitk::ImageStatisticsCalculator::Statistics::GetUniformity ( ) const
inlinevirtual

Definition at line 232 of file old/mitkImageStatisticsCalculator.h.

Referenced by operator=(), and Statistics().

virtual double mitk::ImageStatisticsCalculator::Statistics::GetUPP ( ) const
inlinevirtual

Definition at line 234 of file old/mitkImageStatisticsCalculator.h.

Referenced by operator=(), and Statistics().

double mitk::ImageStatisticsCalculator::Statistics::GetVariance ( ) const

Definition at line 169 of file old/mitkImageStatisticsCalculator.cpp.

Referenced by operator=(), and Statistics().

bool mitk::ImageStatisticsCalculator::Statistics::HasHotspotStatistics ( ) const
void mitk::ImageStatisticsCalculator::Statistics::Reset ( unsigned int  dimension = 2)
virtual void mitk::ImageStatisticsCalculator::Statistics::SetEntropy ( const double  _arg)
inlinevirtual
void mitk::ImageStatisticsCalculator::Statistics::SetHasHotspotStatistics ( bool  hasHotspotStatistics)
virtual void mitk::ImageStatisticsCalculator::Statistics::SetHotspotIndex ( const vnl_vector< int >  _arg)
inlinevirtual
virtual void mitk::ImageStatisticsCalculator::Statistics::SetKurtosis ( const double  _arg)
inlinevirtual
virtual void mitk::ImageStatisticsCalculator::Statistics::SetLabel ( const unsigned int  _arg)
inlinevirtual
virtual void mitk::ImageStatisticsCalculator::Statistics::SetMaxIndex ( const vnl_vector< int >  _arg)
inlinevirtual
virtual void mitk::ImageStatisticsCalculator::Statistics::SetMinIndex ( const vnl_vector< int >  _arg)
inlinevirtual
virtual void mitk::ImageStatisticsCalculator::Statistics::SetMPP ( const double  _arg)
inlinevirtual
void mitk::ImageStatisticsCalculator::Statistics::SetSigma ( const double  value)

Set standard deviation (sigma)

This method checks if the given standard deviation is a positive value. This is done because the underlying itk::LabelStatisticsImageFilter uses a naïve algorithm to calculate the variance. This may lead to a negative variance and because the square root of the variance is taken it also leads to NaN for sigma.

If the given value is not reasonable the value will be set to 0.0, else the given value will be set.

See also
SetVariance()

Definition at line 194 of file old/mitkImageStatisticsCalculator.cpp.

Referenced by mitk::ImageStatisticsCalculator::CalculateHotspotStatistics(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().

virtual void mitk::ImageStatisticsCalculator::Statistics::SetSkewness ( const double  _arg)
inlinevirtual
virtual void mitk::ImageStatisticsCalculator::Statistics::SetUniformity ( const double  _arg)
inlinevirtual
virtual void mitk::ImageStatisticsCalculator::Statistics::SetUPP ( const double  _arg)
inlinevirtual
void mitk::ImageStatisticsCalculator::Statistics::SetVariance ( const double  value)

Set variance.

This method checks whether the variance is negative: The reason that the variance may be negative is that the underlying itk::LabelStatisticsImageFilter uses a naïve algorithm for calculating the variance ( http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance ) which can lead to negative values due to rounding errors.

If the variance is negative the value will be set to 0.0, else the given value will be set.

Definition at line 174 of file old/mitkImageStatisticsCalculator.cpp.

Referenced by mitk::ImageStatisticsCalculator::CalculateHotspotStatistics(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().


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