Medical Imaging Interaction Toolkit  2024.06.00
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_h
14 #define mitkHistogramStatisticsCalculator_h
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
mitkImageStatisticsCalculator.h
mitk::HistogramStatisticsCalculator
Computes basic histogram statistics such as Uniformity, UPP (Uniformity of positive entries),...
Definition: mitkHistogramStatisticsCalculator.h:26
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MITKIMAGESTATISTICS_EXPORT
#define MITKIMAGESTATISTICS_EXPORT
Definition: MitkImageStatisticsExports.h:15
mitk::HistogramStatisticsCalculator::MeasurementType
double MeasurementType
Definition: mitkHistogramStatisticsCalculator.h:29
mitk::HistogramStatisticsCalculator::HistogramType
itk::Statistics::Histogram< MeasurementType > HistogramType
Definition: mitkHistogramStatisticsCalculator.h:30
MitkImageStatisticsExports.h