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;
78 unsigned int nBins = 256;
82 double GetMin()
const override;
83 double GetMax()
const override;
87 void ComputeFromBaseData(
BaseData *source)
override;
88 float GetRelativeBin(
double start,
double end)
const override;
94 static const unsigned int maxCacheSize = 64;
104 virtual void ComputeFromBaseData(
BaseData *baseData) = 0;
119 unsigned int targetSize = full ? 0 : maxCacheSize;
121 while (cache.size() > targetSize)