13 #ifndef mitkSimpleHistogram_h
14 #define mitkSimpleHistogram_h
16 #ifndef __itkHistogram_h
17 #include <itkHistogram.h>
25 #include <itkImageRegionIterator.h>
26 #include <itkImageRegionIteratorWithIndex.h>
78 unsigned int nBins = 256;
94 static const unsigned int maxCacheSize = 64;
119 unsigned int targetSize = full ? 0 : maxCacheSize;
121 while (cache.size() > targetSize)
#define MITKALGORITHMSEXT_EXPORT
Base of all data objects.
mitk::WeakPointer< BaseData > baseData
virtual SimpleHistogram * GetHistogram()=0
itk::TimeStamp m_LastUpdateTime
virtual void ComputeFromBaseData(BaseData *baseData)=0
std::list< Element * > CacheContainer
SimpleHistogram * operator[](BaseData::Pointer sp_BaseData)
void TrimCache(bool full=false)
Abstract superclass for histograms with double values. Classes which are deriving from this class can...
virtual void ComputeFromBaseData(BaseData *source)=0
Creates a new histogram out the source.
virtual double GetMin() const =0
Returns the minimal value of the histogram.
virtual double GetMax() const =0
Returns the maximum value of the histogram.
virtual float GetRelativeBin(double start, double end) const =0
TODO: (What should this method do?)
void ComputeFromBaseData(BaseData *source) override
Creates a new histogram out the source which must be an image. Method does nothing if the image is in...
HistogramType::ConstPointer histogram
double GetMax() const override
Returns the maximum value of the histogram.
itk::Image< unsigned char, 3 > BinImage
itk::ImageRegionIterator< CTImage > CTIteratorType
float GetRelativeBin(double start, double end) const override
TODO: (What should this method do?)
itk::Statistics::Histogram< double > HistogramType
itk::ImageRegionIteratorWithIndex< BinImage > BinIteratorIndexType
itk::ImageRegionIteratorWithIndex< CTImage > CTIteratorIndexType
double GetMin() const override
Returns the minimal value of the histogram.
itk::Image< short, 3 > CTImage
itk::ImageRegionIterator< BinImage > BinIteratorType
Find image slices visible on a given plane.