13 #ifndef mitkImageStatisticsCalculator_h
14 #define mitkImageStatisticsCalculator_h
34 itkTypeMacro(ImageStatisticsCalculator_v2, itk::Object);
57 void SetNBinsForHistogramStatistics(
unsigned int nBins);
62 unsigned int GetNBinsForHistogramStatistics()
const;
66 void SetBinSizeForHistogramStatistics(
double binSize);
71 double GetBinSizeForHistogramStatistics()
const;
81 m_nBinsForHistogramStatistics = 100;
82 m_binSizeForHistogramStatistics = 10;
83 m_UseBinSizeOverNBins =
false;
89 template <
typename TPixel,
unsigned int VImageDimension >
void InternalCalculateStatisticsUnmasked(
92 template <
typename TPixel,
unsigned int VImageDimension >
void InternalCalculateStatisticsMasked(
93 typename itk::Image< TPixel, VImageDimension >* image,
const TimeGeometry* timeGeometry,
94 unsigned int timeStep);
96 template <
typename TPixel,
unsigned int VImageDimension >
97 double GetVoxelVolume(
typename itk::Image<TPixel, VImageDimension>* image)
const;
99 bool IsUpdateRequired(LabelIndex label)
const;
111 unsigned int m_nBinsForHistogramStatistics;
112 double m_binSizeForHistogramStatistics;
113 bool m_UseBinSizeOverNBins;
115 std::map<LabelIndex,ImageStatisticsContainer::Pointer> m_StatisticContainers;