13 #ifndef mitkHistogramGenerator_h
14 #define mitkHistogramGenerator_h
17 #include <itkHistogram.h>
19 #include <itkObject.h>
33 itkFactorylessNewMacro(Self);
35 itkCloneMacro(Self)
typedef itk::Statistics::Histogram<double>
HistogramType;
38 itkSetMacro(
Image, mitk::Image::ConstPointer);
41 itkSetMacro(Size,
int);
44 itkGetConstMacro(Size,
int);
Provides an easy way to calculate an itk::Histogram for a mitk::Image.
void ComputeHistogram()
Compute the histogram from the input image.
static float CalculateMaximumFrequency(const HistogramType *histogram)
Calculate the maximum frequency in a given histogram.
~HistogramGenerator() override
float GetMaximumFrequency() const
Get the maximum frequency in the computed histogram.
mitk::Image::ConstPointer m_Image
itk::Statistics::Histogram< double > HistogramType
mitkClassMacroItkParent(HistogramGenerator, itk::Object)
HistogramType::ConstPointer m_Histogram
Image class for storing multi-dimensional medical image data.
Find image slices visible on a given plane.