Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkHistogramStatisticsCalculator.h
Go to the documentation of this file.
1 #ifndef MITKHISTOGRAMSTATISTICSCALCULATOR
2 #define MITKHISTOGRAMSTATISTICSCALCULATOR
3 
5 #include <itkHistogram.h>
7 
8 
9 namespace mitk
10 {
15  {
16  public:
17  typedef double MeasurementType;
18  typedef itk::Statistics::Histogram<MeasurementType> HistogramType;
19 
21 
25  void SetHistogram(HistogramType::Pointer histogram);
26 
27  MeasurementType GetUPP();
28 
29  MeasurementType GetUniformity();
30 
31  MeasurementType GetEntropy();
32 
33  MeasurementType GetMedian();
34 
38  void CalculateStatistics();
39 
40  protected:
41 
42  private:
43  HistogramType::Pointer m_Histogram;
44  MeasurementType m_Uniformity, m_UPP, m_Entropy, m_Median;
45  bool m_StatisticsCalculated;
46  };
47 }
48 
49 #endif
itk::Statistics::Histogram< MeasurementType > HistogramType
itk::SmartPointer< Self > Pointer
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKIMAGESTATISTICS_EXPORT
Computes basic histogram statistics such as Uniformity, UPP (Uniformity of positive entries)...