Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkSimpleHistogram_h
14 #define mitkSimpleHistogram_h
16 #ifndef __itkHistogram_h
17 #include <itkHistogram.h>
25 #include <itkImageRegionIterator.h>
26 #include <itkImageRegionIteratorWithIndex.h>
38 virtual double GetMin()
const = 0;
40 virtual double GetMax()
const = 0;
42 virtual void ComputeFromBaseData(
BaseData *source) = 0;
44 virtual float GetRelativeBin(
double start,
double end)
const = 0;
108 void ComputeFromBaseData(
BaseData *source)
override;
109 float GetRelativeBin(
double start,
double end)
const override;
115 static const unsigned int maxCacheSize = 64;
125 virtual void ComputeFromBaseData(
BaseData *baseData) = 0;
140 unsigned int targetSize = full ? 0 : maxCacheSize;
142 while (cache.size() > targetSize)
Abstract superclass for histograms with double values. Classes which are deriving from this class can...
itk::ImageRegionIterator< BinImage > BinIteratorType
itk::ImageRegionIteratorWithIndex< CTImage > CTIteratorIndexType
itk::Image< short, 3 > CTImage
#define MITKALGORITHMSEXT_EXPORT
Find image slices visible on a given plane.
itk::ImageRegionIteratorWithIndex< BinImage > BinIteratorIndexType
itk::Statistics::Histogram< double > HistogramType
itk::Image< unsigned char, 3 > BinImage
double GetMax() const override
Returns the maximum value of the histogram.
mitk::WeakPointer< BaseData > baseData
double GetMin() const override
Returns the minimal value of the histogram.
Base of all data objects.
itk::TimeStamp m_LastUpdateTime
itk::ImageRegionIterator< CTImage > CTIteratorType
std::list< Element * > CacheContainer
void TrimCache(bool full=false)