Medical Imaging Interaction Toolkit  2024.06.00
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
mitk::SimpleHistogram
Abstract superclass for histograms with double values. Classes which are deriving from this class can...
Definition: mitkSimpleHistogram.h:34
MitkAlgorithmsExtExports.h
MITKALGORITHMSEXT_EXPORT
#define MITKALGORITHMSEXT_EXPORT
Definition: MitkAlgorithmsExtExports.h:15
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::SimpleUnstructuredGridHistogram
Definition: mitkSimpleUnstructuredGridHistogram.h:24
mitk::BaseData
Base of all data objects.
Definition: mitkBaseData.h:42
mitkSimpleHistogram.h