Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Class for common statistics, includig hotspot properties. More...
#include <mitkImageStatisticsCalculator.h>
Public Member Functions | |
Statistics (bool withHotspotStatistics=true) | |
Statistics (const Statistics &other) | |
virtual | ~Statistics () |
Statistics & | operator= (Statistics const &stats) |
const Statistics & | GetHotspotStatistics () const |
Statistics & | GetHotspotStatistics () |
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) |
Class for common statistics, includig hotspot properties.
Definition at line 175 of file old/mitkImageStatisticsCalculator.h.
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 | ( | const Statistics & | other | ) |
Definition at line 124 of file old/mitkImageStatisticsCalculator.cpp.
References GetEntropy(), GetHotspotIndex(), GetKurtosis(), GetLabel(), GetMax(), GetMaxIndex(), GetMean(), GetMedian(), GetMin(), GetMinIndex(), GetMPP(), GetN(), GetRMS(), GetSigma(), GetSkewness(), GetUniformity(), GetUPP(), GetVariance(), SetEntropy(), SetHotspotIndex(), SetKurtosis(), SetLabel(), SetMax(), SetMaxIndex(), SetMean(), SetMedian(), SetMin(), SetMinIndex(), SetMPP(), SetN(), SetRMS(), SetSigma(), SetSkewness(), SetUniformity(), SetUPP(), SetVariance(), and Statistics().
|
virtual |
Definition at line 164 of file old/mitkImageStatisticsCalculator.cpp.
|
inlinevirtual |
Definition at line 233 of file old/mitkImageStatisticsCalculator.h.
Referenced by operator=(), and Statistics().
|
inlinevirtual |
Definition at line 228 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), operator=(), and Statistics().
const ImageStatisticsCalculator::Statistics & mitk::ImageStatisticsCalculator::Statistics::GetHotspotStatistics | ( | ) | const |
Definition at line 249 of file old/mitkImageStatisticsCalculator.cpp.
Referenced by mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), and mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked().
ImageStatisticsCalculator::Statistics & mitk::ImageStatisticsCalculator::Statistics::GetHotspotStatistics | ( | ) |
Definition at line 262 of file old/mitkImageStatisticsCalculator.cpp.
|
inlinevirtual |
Definition at line 231 of file old/mitkImageStatisticsCalculator.h.
Referenced by operator=(), and Statistics().
|
inlinevirtual |
Definition at line 193 of file old/mitkImageStatisticsCalculator.h.
Referenced by operator=(), and Statistics().
|
inlinevirtual |
Definition at line 196 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::CalculateHotspotStatistics(), ExtractImageStatistics(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), operator=(), and Statistics().
|
inlinevirtual |
Definition at line 227 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), operator=(), and Statistics().
|
inlinevirtual |
Definition at line 197 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::CalculateHotspotStatistics(), ExtractImageStatistics(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), operator=(), and Statistics().
|
inlinevirtual |
Definition at line 198 of file old/mitkImageStatisticsCalculator.h.
Referenced by operator=(), and Statistics().
|
inlinevirtual |
Definition at line 195 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::CalculateHotspotStatistics(), ExtractImageStatistics(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), operator=(), and Statistics().
|
inlinevirtual |
Definition at line 226 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), operator=(), and Statistics().
|
inlinevirtual |
Definition at line 235 of file old/mitkImageStatisticsCalculator.h.
Referenced by operator=(), and Statistics().
|
inlinevirtual |
Definition at line 194 of file old/mitkImageStatisticsCalculator.h.
Referenced by ExtractImageStatistics(), operator=(), and Statistics().
|
inlinevirtual |
Definition at line 225 of file old/mitkImageStatisticsCalculator.h.
Referenced by ExtractImageStatistics(), operator=(), and Statistics().
double mitk::ImageStatisticsCalculator::Statistics::GetSigma | ( | ) | const |
Definition at line 189 of file old/mitkImageStatisticsCalculator.cpp.
Referenced by mitk::ImageStatisticsCalculator::CalculateHotspotStatistics(), ExtractImageStatistics(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), operator=(), and Statistics().
|
inlinevirtual |
Definition at line 230 of file old/mitkImageStatisticsCalculator.h.
Referenced by operator=(), and Statistics().
|
inlinevirtual |
Definition at line 232 of file old/mitkImageStatisticsCalculator.h.
Referenced by operator=(), and Statistics().
|
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 |
Definition at line 153 of file old/mitkImageStatisticsCalculator.cpp.
Referenced by mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), and mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked().
ImageStatisticsCalculator::Statistics & mitk::ImageStatisticsCalculator::Statistics::operator= | ( | ImageStatisticsCalculator::Statistics const & | other | ) |
Definition at line 275 of file old/mitkImageStatisticsCalculator.cpp.
References GetEntropy(), GetHotspotIndex(), GetKurtosis(), GetLabel(), GetMax(), GetMaxIndex(), GetMean(), GetMedian(), GetMin(), GetMinIndex(), GetMPP(), GetN(), GetRMS(), GetSigma(), GetSkewness(), GetUniformity(), GetUPP(), and GetVariance().
void mitk::ImageStatisticsCalculator::Statistics::Reset | ( | unsigned int | dimension = 2 | ) |
Definition at line 212 of file old/mitkImageStatisticsCalculator.cpp.
Referenced by mitk::ImageStatisticsCalculator::CalculateHotspotStatistics(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().
|
inlinevirtual |
Definition at line 233 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().
void mitk::ImageStatisticsCalculator::Statistics::SetHasHotspotStatistics | ( | bool | hasHotspotStatistics | ) |
Definition at line 158 of file old/mitkImageStatisticsCalculator.cpp.
Referenced by mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked().
|
inlinevirtual |
Definition at line 228 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::CalculateHotspotStatistics(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().
|
inlinevirtual |
Definition at line 231 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().
|
inlinevirtual |
Definition at line 193 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::CalculateHotspotStatistics(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().
|
inlinevirtual |
Definition at line 196 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::CalculateHotspotStatistics(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().
|
inlinevirtual |
Definition at line 227 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), and Statistics().
|
inlinevirtual |
Definition at line 197 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::CalculateHotspotStatistics(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().
|
inlinevirtual |
Definition at line 198 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::CalculateHotspotStatistics(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().
|
inlinevirtual |
Definition at line 195 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::CalculateHotspotStatistics(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().
|
inlinevirtual |
Definition at line 226 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().
|
inlinevirtual |
Definition at line 235 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().
|
inlinevirtual |
Definition at line 194 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::CalculateHotspotStatistics(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().
|
inlinevirtual |
Definition at line 225 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::CalculateHotspotStatistics(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().
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.
Definition at line 194 of file old/mitkImageStatisticsCalculator.cpp.
Referenced by mitk::ImageStatisticsCalculator::CalculateHotspotStatistics(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().
|
inlinevirtual |
Definition at line 230 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().
|
inlinevirtual |
Definition at line 232 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().
|
inlinevirtual |
Definition at line 234 of file old/mitkImageStatisticsCalculator.h.
Referenced by mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), and Statistics().
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().