Medical Imaging Interaction Toolkit  2025.12.02
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 
40 
42 
44 
46 
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
#define MITKIMAGESTATISTICS_EXPORT
Computes basic histogram statistics such as Uniformity, UPP (Uniformity of positive entries),...
void SetHistogram(HistogramType::Pointer histogram)
SetHistogram requires a itk::Statistics::Histogram<double>
void CalculateStatistics()
calculate statistics
itk::Statistics::Histogram< MeasurementType > HistogramType
Find image slices visible on a given plane.