Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKSIMPLEUNSTRUCTUREDGRIDHISTOGRAM_H
18 #define MITKSIMPLEUNSTRUCTUREDGRIDHISTOGRAM_H
19 
21 
22 #include "mitkSimpleHistogram.h"
23 
24 #include <itkListSample.h>
25 
26 namespace mitk
27 {
29  {
30  public:
32 
33  virtual double GetMin() const override;
34  virtual double GetMax() const override;
35 
36  virtual void ComputeFromBaseData(BaseData *source) override;
37  virtual float GetRelativeBin(double start, double end) const override;
38 
39  private:
40  typedef double MeasurementType;
41  typedef itk::Vector<MeasurementType, 1> MeasurementVectorType;
42  typedef itk::Statistics::ListSample<MeasurementVectorType> ListSampleType;
43 
44  typedef itk::Statistics::Histogram<MeasurementType> HistogramType;
45 
46  HistogramType::ConstPointer m_UGHistogram;
47 
48  // UnstructuredGridHistogram::Pointer m_UGHistogram;
49 
50  HistogramType::BinMinContainerType m_Mins;
51  HistogramType::BinMaxContainerType m_Maxs;
52 
53  double m_InvMaxFrequency;
54  double m_BinSize;
55  };
56 }
57 
58 #endif // MITKSIMPLEUNSTRUCTUREDGRIDHISTOGRAM_H
Base of all data objects.
Definition: mitkBaseData.h:39
DataCollection - Class to facilitate loading/accessing structured data.
itk::SmartPointer< const Self > ConstPointer
#define MITKALGORITHMSEXT_EXPORT
Abstract superclass for histograms with double values. Classes which are deriving from this class can...