17 #ifndef MITKSIMPLEHISTOGRAM_H
18 #define MITKSIMPLEHISTOGRAM_H
20 #ifndef __itkHistogram_h
21 #include <itkHistogram.h>
29 #include <itkImageRegionIterator.h>
30 #include <itkImageRegionIteratorWithIndex.h>
42 virtual double GetMin()
const = 0;
44 virtual double GetMax()
const = 0;
46 virtual void ComputeFromBaseData(
BaseData *source) = 0;
48 virtual float GetRelativeBin(
double start,
double end)
const = 0;
112 void ComputeFromBaseData(
BaseData *source)
override;
113 float GetRelativeBin(
double start,
double end)
const override;
119 static const unsigned int maxCacheSize = 64;
129 virtual void ComputeFromBaseData(
BaseData *baseData) = 0;
144 unsigned int targetSize = full ? 0 : maxCacheSize;
146 while (cache.size() > targetSize)
155 #endif // MITKSIMPLEHISTOGRAM_H
itk::ImageRegionIteratorWithIndex< CTImage > CTIteratorIndexType
itk::Image< short, 3 > CTImage
mitk::WeakPointer< BaseData > baseData
Base of all data objects.
double GetMax() const override
Returns the maximum value of the histogram.
itk::ImageRegionIterator< CTImage > CTIteratorType
DataCollection - Class to facilitate loading/accessing structured data.
itk::Statistics::Histogram< double > HistogramType
#define MITKALGORITHMSEXT_EXPORT
double GetMin() const override
Returns the minimal value of the histogram.
std::list< Element * > CacheContainer
void TrimCache(bool full=false)
Abstract superclass for histograms with double values. Classes which are deriving from this class can...
itk::TimeStamp m_LastUpdateTime
Implements a weak reference to an object.
itk::Image< unsigned char, 3 > BinImage
itk::ImageRegionIteratorWithIndex< BinImage > BinIteratorIndexType
itk::ImageRegionIterator< BinImage > BinIteratorType