Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkSimpleUnstructuredGridHistogram.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 mitkSimpleUnstructuredGridHistogram_h
14 #define mitkSimpleUnstructuredGridHistogram_h
15 
17 
18 #include "mitkSimpleHistogram.h"
19 
20 #include <itkListSample.h>
21 
22 namespace mitk
23 {
25  {
26  public:
28 
29  double GetMin() const override;
30  double GetMax() const override;
31 
32  void ComputeFromBaseData(BaseData *source) override;
33  float GetRelativeBin(double start, double end) const override;
34 
35  private:
36  typedef double MeasurementType;
37  typedef itk::Vector<MeasurementType, 1> MeasurementVectorType;
38  typedef itk::Statistics::ListSample<MeasurementVectorType> ListSampleType;
39 
40  typedef itk::Statistics::Histogram<MeasurementType> HistogramType;
41 
42  HistogramType::ConstPointer m_UGHistogram;
43 
44  // UnstructuredGridHistogram::Pointer m_UGHistogram;
45 
46  HistogramType::BinMinContainerType m_Mins;
47  HistogramType::BinMaxContainerType m_Maxs;
48 
49  double m_InvMaxFrequency;
50  double m_BinSize;
51  };
52 }
53 
54 #endif
#define MITKALGORITHMSEXT_EXPORT
Base of all data objects.
Definition: mitkBaseData.h:44
Abstract superclass for histograms with double values. Classes which are deriving from this class can...
float GetRelativeBin(double start, double end) const override
TODO: (What should this method do?)
double GetMin() const override
Returns the minimal value of the histogram.
double GetMax() const override
Returns the maximum value of the histogram.
void ComputeFromBaseData(BaseData *source) override
Creates a new histogram out the source.
Find image slices visible on a given plane.