Medical Imaging Interaction Toolkit  2018.4.99-67d34b5d
Medical Imaging Interaction Toolkit
mitkHistogramStatisticsCalculator.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef MITKHISTOGRAMSTATISTICSCALCULATOR
14 #define MITKHISTOGRAMSTATISTICSCALCULATOR
15 
17 #include <itkHistogram.h>
19 
20 
21 namespace mitk
22 {
27  {
28  public:
29  typedef double MeasurementType;
30  typedef itk::Statistics::Histogram<MeasurementType> HistogramType;
31 
33 
37  void SetHistogram(HistogramType::Pointer histogram);
38 
39  MeasurementType GetUPP();
40 
41  MeasurementType GetUniformity();
42 
43  MeasurementType GetEntropy();
44 
45  MeasurementType GetMedian();
46 
50  void CalculateStatistics();
51 
52  protected:
53 
54  private:
55  HistogramType::Pointer m_Histogram;
56  MeasurementType m_Uniformity, m_UPP, m_Entropy, m_Median;
57  bool m_StatisticsCalculated;
58  };
59 }
60 
61 #endif
itk::Statistics::Histogram< MeasurementType > HistogramType
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKIMAGESTATISTICS_EXPORT
Computes basic histogram statistics such as Uniformity, UPP (Uniformity of positive entries)...