13 #ifndef mitkStatisticsImageFilter_h
14 #define mitkStatisticsImageFilter_h
21 #include <itkCompensatedSummation.h>
22 #include <itkHistogram.h>
23 #include <itkImageSink.h>
24 #include <itkNumericTraits.h>
25 #include <itkSimpleDataObjectDecorator.h>
31 template <
typename TInputImage>
40 itkFactorylessNewMacro(
Self);
47 using RealType =
typename itk::NumericTraits<PixelType>::RealType;
82 using Superclass::MakeOutput;
113 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
118 bool m_ComputeHistogram;
119 unsigned int m_HistogramSize;
124 itk::CompensatedSummation<RealType> m_Sum;
125 itk::CompensatedSummation<RealType> m_SumOfPositivePixels;
126 itk::CompensatedSummation<RealType> m_SumOfSquares;
127 itk::CompensatedSummation<RealType> m_SumOfCubes;
128 itk::CompensatedSummation<RealType> m_SumOfQuadruples;
130 itk::SizeValueType m_Count;
131 itk::SizeValueType m_CountOfPositivePixels;
139 #ifndef ITK_MANUAL_INSTANTIATION
140 #include <mitkStatisticsImageFilter.hxx>