13 #ifndef mitkImageStatisticsCalculator_h
14 #define mitkImageStatisticsCalculator_h
80 m_nBinsForHistogramStatistics = 100;
81 m_binSizeForHistogramStatistics = 10;
82 m_UseBinSizeOverNBins =
false;
88 template <
typename TPixel,
unsigned int VImageDimension >
89 void InternalCalculateStatisticsUnmasked(
const itk::Image< TPixel, VImageDimension >* image,
TimeStepType timeStep);
91 template <
typename TPixel,
unsigned int VImageDimension >
92 void InternalCalculateStatisticsMasked(
const itk::Image< TPixel, VImageDimension >* image,
TimeStepType timeStep);
94 template <
typename TPixel,
unsigned int VImageDimension >
95 double GetVoxelVolume(
const itk::Image<TPixel, VImageDimension>* image)
const;
97 bool IsUpdateRequired()
const;
103 mitk::MaskGenerator::Pointer m_MaskGenerator;
106 mitk::MaskGenerator::Pointer m_SecondaryMaskGenerator;
109 unsigned int m_nBinsForHistogramStatistics;
110 double m_binSizeForHistogramStatistics;
111 bool m_UseBinSizeOverNBins;
113 ImageStatisticsContainer::Pointer m_StatisticContainer;
#define MITKIMAGESTATISTICS_EXPORT
void SetNBinsForHistogramStatistics(unsigned int nBins)
Set number of bins to be used for histogram statistics. If Bin size is set after number of bins,...
itk::SmartPointer< const Self > ConstPointer
void SetInputImage(const mitk::Image *image)
Set the image for which the statistics are to be computed.
double statisticsValueType
void SetBinSizeForHistogramStatistics(double binSize)
Set bin size to be used for histogram statistics. If nbins is set after bin size, nbins will be used ...
itk::Statistics::Histogram< double > HistogramType
ImageStatisticsCalculator()
double GetBinSizeForHistogramStatistics() const
Retrieve the bin size for histogram statistics. Careful: The return value does not indicate whether N...
unsigned int GetNBinsForHistogramStatistics() const
Retrieve the number of bins used for histogram statistics. Careful: The return value does not indicat...
unsigned short MaskPixelType
void SetMask(mitk::MaskGenerator *mask)
Set the mask generator that creates the mask which is to be used to calculate statistics....
itk::SmartPointer< Self > Pointer
void SetSecondaryMask(mitk::MaskGenerator *mask)
Set this if more than one mask should be applied (for instance if a IgnorePixelValueMask were to be u...
std::map< std::string, statisticsValueType > statisticsMapType
ImageStatisticsContainer * GetStatistics()
Returns the statistics. If these requested statistics are not computed yet the computation is done as...
ImageStatisticsContainer::LabelValueType LabelIndex
ImageStatisticsCalculator Self
Container class for storing a StatisticsObject for each time step.
MultiLabelSegmentation::LabelValueType LabelValueType
Image class for storing images.
Base Class for all Mask Generators. Mask generators are classes that provide functionality for the cr...
Find image slices visible on a given plane.