16 #ifndef __mitkExtendedStatisticsImageFilter
17 #define __mitkExtendedStatisticsImageFilter
19 #include "itkStatisticsImageFilter.h"
37 template<
class TInputImage >
46 typedef typename Superclass::RealType
RealType;
54 itkFactorylessNewMacro( Self );
55 itkCloneMacro( Self );
120 if (m_HistogramCalculated)
133 RealType upperBound);
145 outputRegionForThread,
146 ThreadIdType threadId);
185 Array< RealType > m_ThreadSum;
186 Array< RealType > m_SumOfSquares;
187 Array< RealType > m_SumOfCubes;
188 Array< RealType > m_SumOfQuadruples;
189 Array< SizeValueType > m_Count;
190 Array< SizeValueType > m_PositivePixelCount;
191 Array< RealType > m_ThreadSumOfPositivePixels;
192 Array< PixelType > m_ThreadMin;
193 Array< PixelType > m_ThreadMax;
194 std::vector< HistogramPointer > m_HistogramPerThread;
195 HistogramPointer m_Histogram;
197 bool m_HistogramCalculated;
198 RealType m_LowerBound, m_UpperBound;
206 #ifndef ITK_MANUAL_INSTANTIATION
207 #include "mitkExtendedStatisticsImageFilter.hxx"
RealObjectType * GetMedianOutput()
SmartPointer< const Self > ConstPointer
itk::SmartPointer< Self > Pointer
ExtendedStatisticsImageFilter()
double GetUPP() const
Return the computed UPP.
double GetEntropy() const
Return the computed Entropy.
const HistogramType::Pointer GetHistogram()
Return the computed Histogram.
double GetUniformity() const
Return the computed Uniformity.
RealObjectType * GetEntropyOutput()
RealObjectType * GetSkewnessOutput()
void AfterThreadedGenerateData()
RealObjectType * GetUniformityOutput()
RealObjectType * GetUPPOutput()
HistogramType::Pointer HistogramPointer
void BeforeThreadedGenerateData()
void SetHistogramParameters(const int numBins, RealType lowerBound, RealType upperBound)
SmartPointer< Self > Pointer
virtual ~ExtendedStatisticsImageFilter()
void ThreadedGenerateData(const typename StatisticsImageFilter< TInputImage >::RegionType &outputRegionForThread, ThreadIdType threadId)
double GetMedian() const
Return the computed Median.
Superclass::RealObjectType RealObjectType
Superclass::RealType RealType
RealObjectType * GetKurtosisOutput()
virtual DataObject::Pointer MakeOutput(ProcessObject::DataObjectPointerArraySizeType idx)
RealObjectType * GetMPPOutput()
itk::Statistics::Histogram< RealType > HistogramType
Extension of the itkStatisticsImageFilter that also calculates the Skewness and Kurtosis.
double GetKurtosis() const
Return the computed Kurtosis.
ExtendedStatisticsImageFilter Self
StatisticsImageFilter< TInputImage > Superclass
Superclass::PixelType PixelType
double GetSkewness() const
Return the computed Skewness.