Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::StatisticsImageFilter< TInputImage > Class Template Reference

Compute comprehensive image statistics including moments, histogram, entropy, and median. More...

#include <mitkStatisticsImageFilter.h>

Inheritance diagram for mitk::StatisticsImageFilter< TInputImage >:
Collaboration diagram for mitk::StatisticsImageFilter< TInputImage >:

Public Types

using Self = StatisticsImageFilter
 
using Superclass = itk::ImageSink< TInputImage >
 
using Pointer = itk::SmartPointer< Self >
 
using ConstPointer = itk::SmartPointer< const Self >
 
using RegionType = typename TInputImage::RegionType
 
using PixelType = typename TInputImage::PixelType
 
using RealType = typename itk::NumericTraits< PixelType >::RealType
 
using HistogramType = typename itk::Statistics::Histogram< RealType >
 
using HistogramPointer = itk::SmartPointer< HistogramType >
 
using DataObjectPointer = typename itk::DataObject::Pointer
 
template<typename T >
using SimpleDataObjectDecorator = itk::SimpleDataObjectDecorator< T >
 
using RealObjectType = SimpleDataObjectDecorator< RealType >
 
using PixelObjectType = SimpleDataObjectDecorator< PixelType >
 
using ProcessObject = itk::ProcessObject
 
using DataObjectIdentifierType = itk::ProcessObject::DataObjectIdentifierType
 

Public Member Functions

virtual const char * GetClassName () const
 
 itkGetDecoratedOutputMacro (Minimum, PixelType)
 
 itkGetDecoratedOutputMacro (Maximum, PixelType)
 
 itkGetDecoratedOutputMacro (Mean, RealType)
 
 itkGetDecoratedOutputMacro (Sigma, RealType)
 
 itkGetDecoratedOutputMacro (Variance, RealType)
 
 itkGetDecoratedOutputMacro (Sum, RealType)
 
 itkGetDecoratedOutputMacro (SumOfSquares, RealType)
 
 itkGetDecoratedOutputMacro (SumOfCubes, RealType)
 
 itkGetDecoratedOutputMacro (SumOfQuadruples, RealType)
 
 itkGetDecoratedOutputMacro (Skewness, RealType)
 
 itkGetDecoratedOutputMacro (Kurtosis, RealType)
 
 itkGetDecoratedOutputMacro (MPP, RealType)
 
 itkGetDecoratedOutputMacro (Histogram, HistogramPointer)
 
 itkGetDecoratedOutputMacro (Entropy, RealType)
 
 itkGetDecoratedOutputMacro (Uniformity, RealType)
 
 itkGetDecoratedOutputMacro (UPP, RealType)
 
 itkGetDecoratedOutputMacro (Median, RealType)
 
void SetHistogramParameters (unsigned int size, RealType lowerBound, RealType upperBound)
 Set the histogram parameters. More...
 
DataObjectPointer MakeOutput (const DataObjectIdentifierType &name) override
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 StatisticsImageFilter ()
 
 ~StatisticsImageFilter ()
 
 itkSetDecoratedOutputMacro (Minimum, PixelType)
 
 itkSetDecoratedOutputMacro (Maximum, PixelType)
 
 itkSetDecoratedOutputMacro (Mean, RealType)
 
 itkSetDecoratedOutputMacro (Sigma, RealType)
 
 itkSetDecoratedOutputMacro (Variance, RealType)
 
 itkSetDecoratedOutputMacro (Sum, RealType)
 
 itkSetDecoratedOutputMacro (SumOfSquares, RealType)
 
 itkSetDecoratedOutputMacro (SumOfCubes, RealType)
 
 itkSetDecoratedOutputMacro (SumOfQuadruples, RealType)
 
 itkSetDecoratedOutputMacro (Skewness, RealType)
 
 itkSetDecoratedOutputMacro (Kurtosis, RealType)
 
 itkSetDecoratedOutputMacro (MPP, RealType)
 
 itkSetDecoratedOutputMacro (Histogram, HistogramPointer)
 
 itkSetDecoratedOutputMacro (Entropy, RealType)
 
 itkSetDecoratedOutputMacro (Uniformity, RealType)
 
 itkSetDecoratedOutputMacro (UPP, RealType)
 
 itkSetDecoratedOutputMacro (Median, RealType)
 
void BeforeStreamedGenerateData () override
 
void ThreadedStreamedGenerateData (const RegionType &) override
 
void AfterStreamedGenerateData () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 

Detailed Description

template<typename TInputImage>
class mitk::StatisticsImageFilter< TInputImage >

Compute comprehensive image statistics including moments, histogram, entropy, and median.

This filter is a MITK-specific replacement for ITK's itkStatisticsImageFilter. It computes: min, max, mean, sigma, variance, sum, sum of squares/cubes/quadruples, skewness, kurtosis, MPP (mean of positive pixels), entropy, uniformity, UPP (uniformity of positive pixels), median, and an optional histogram.

The filter is streaming-capable via itk::ImageSink and supports multi-threaded processing.

Template Parameters
TInputImageThe type of the input image.
See also
LabelStatisticsImageFilter
ImageStatisticsCalculator

Definition at line 48 of file mitkStatisticsImageFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<typename TInputImage >
using mitk::StatisticsImageFilter< TInputImage >::ConstPointer = itk::SmartPointer<const Self>

Definition at line 54 of file mitkStatisticsImageFilter.h.

◆ DataObjectIdentifierType

template<typename TInputImage >
using mitk::StatisticsImageFilter< TInputImage >::DataObjectIdentifierType = itk::ProcessObject::DataObjectIdentifierType

Definition at line 103 of file mitkStatisticsImageFilter.h.

◆ DataObjectPointer

template<typename TInputImage >
using mitk::StatisticsImageFilter< TInputImage >::DataObjectPointer = typename itk::DataObject::Pointer

Definition at line 68 of file mitkStatisticsImageFilter.h.

◆ HistogramPointer

template<typename TInputImage >
using mitk::StatisticsImageFilter< TInputImage >::HistogramPointer = itk::SmartPointer<HistogramType>

Definition at line 66 of file mitkStatisticsImageFilter.h.

◆ HistogramType

template<typename TInputImage >
using mitk::StatisticsImageFilter< TInputImage >::HistogramType = typename itk::Statistics::Histogram<RealType>

Definition at line 65 of file mitkStatisticsImageFilter.h.

◆ PixelObjectType

template<typename TInputImage >
using mitk::StatisticsImageFilter< TInputImage >::PixelObjectType = SimpleDataObjectDecorator<PixelType>

Definition at line 74 of file mitkStatisticsImageFilter.h.

◆ PixelType

template<typename TInputImage >
using mitk::StatisticsImageFilter< TInputImage >::PixelType = typename TInputImage::PixelType

Definition at line 61 of file mitkStatisticsImageFilter.h.

◆ Pointer

template<typename TInputImage >
using mitk::StatisticsImageFilter< TInputImage >::Pointer = itk::SmartPointer<Self>

Definition at line 53 of file mitkStatisticsImageFilter.h.

◆ ProcessObject

template<typename TInputImage >
using mitk::StatisticsImageFilter< TInputImage >::ProcessObject = itk::ProcessObject

Definition at line 75 of file mitkStatisticsImageFilter.h.

◆ RealObjectType

template<typename TInputImage >
using mitk::StatisticsImageFilter< TInputImage >::RealObjectType = SimpleDataObjectDecorator<RealType>

Definition at line 73 of file mitkStatisticsImageFilter.h.

◆ RealType

template<typename TInputImage >
using mitk::StatisticsImageFilter< TInputImage >::RealType = typename itk::NumericTraits<PixelType>::RealType

Definition at line 63 of file mitkStatisticsImageFilter.h.

◆ RegionType

template<typename TInputImage >
using mitk::StatisticsImageFilter< TInputImage >::RegionType = typename TInputImage::RegionType

Definition at line 60 of file mitkStatisticsImageFilter.h.

◆ Self

template<typename TInputImage >
using mitk::StatisticsImageFilter< TInputImage >::Self = StatisticsImageFilter

Definition at line 51 of file mitkStatisticsImageFilter.h.

◆ SimpleDataObjectDecorator

template<typename TInputImage >
template<typename T >
using mitk::StatisticsImageFilter< TInputImage >::SimpleDataObjectDecorator = itk::SimpleDataObjectDecorator<T>

Definition at line 71 of file mitkStatisticsImageFilter.h.

◆ Superclass

template<typename TInputImage >
using mitk::StatisticsImageFilter< TInputImage >::Superclass = itk::ImageSink<TInputImage>

Definition at line 52 of file mitkStatisticsImageFilter.h.

Constructor & Destructor Documentation

◆ StatisticsImageFilter()

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::StatisticsImageFilter ( )
protected

◆ ~StatisticsImageFilter()

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::~StatisticsImageFilter ( )
protected

Member Function Documentation

◆ AfterStreamedGenerateData()

template<typename TInputImage >
void mitk::StatisticsImageFilter< TInputImage >::AfterStreamedGenerateData ( )
overrideprotected

◆ BeforeStreamedGenerateData()

template<typename TInputImage >
void mitk::StatisticsImageFilter< TInputImage >::BeforeStreamedGenerateData ( )
overrideprotected

◆ GetClassName()

template<typename TInputImage >
virtual const char* mitk::StatisticsImageFilter< TInputImage >::GetClassName ( ) const
virtual

◆ itkGetDecoratedOutputMacro() [1/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkGetDecoratedOutputMacro ( Entropy  ,
RealType   
)

◆ itkGetDecoratedOutputMacro() [2/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkGetDecoratedOutputMacro ( Histogram  ,
HistogramPointer   
)

◆ itkGetDecoratedOutputMacro() [3/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkGetDecoratedOutputMacro ( Kurtosis  ,
RealType   
)

◆ itkGetDecoratedOutputMacro() [4/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkGetDecoratedOutputMacro ( Maximum  ,
PixelType   
)

◆ itkGetDecoratedOutputMacro() [5/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkGetDecoratedOutputMacro ( Mean  ,
RealType   
)

◆ itkGetDecoratedOutputMacro() [6/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkGetDecoratedOutputMacro ( Median  ,
RealType   
)

◆ itkGetDecoratedOutputMacro() [7/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkGetDecoratedOutputMacro ( Minimum  ,
PixelType   
)

◆ itkGetDecoratedOutputMacro() [8/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkGetDecoratedOutputMacro ( MPP  ,
RealType   
)

◆ itkGetDecoratedOutputMacro() [9/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkGetDecoratedOutputMacro ( Sigma  ,
RealType   
)

◆ itkGetDecoratedOutputMacro() [10/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkGetDecoratedOutputMacro ( Skewness  ,
RealType   
)

◆ itkGetDecoratedOutputMacro() [11/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkGetDecoratedOutputMacro ( Sum  ,
RealType   
)

◆ itkGetDecoratedOutputMacro() [12/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkGetDecoratedOutputMacro ( SumOfCubes  ,
RealType   
)

◆ itkGetDecoratedOutputMacro() [13/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkGetDecoratedOutputMacro ( SumOfQuadruples  ,
RealType   
)

◆ itkGetDecoratedOutputMacro() [14/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkGetDecoratedOutputMacro ( SumOfSquares  ,
RealType   
)

◆ itkGetDecoratedOutputMacro() [15/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkGetDecoratedOutputMacro ( Uniformity  ,
RealType   
)

◆ itkGetDecoratedOutputMacro() [16/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkGetDecoratedOutputMacro ( UPP  ,
RealType   
)

◆ itkGetDecoratedOutputMacro() [17/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkGetDecoratedOutputMacro ( Variance  ,
RealType   
)

◆ itkSetDecoratedOutputMacro() [1/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkSetDecoratedOutputMacro ( Entropy  ,
RealType   
)
protected

◆ itkSetDecoratedOutputMacro() [2/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkSetDecoratedOutputMacro ( Histogram  ,
HistogramPointer   
)
protected

◆ itkSetDecoratedOutputMacro() [3/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkSetDecoratedOutputMacro ( Kurtosis  ,
RealType   
)
protected

◆ itkSetDecoratedOutputMacro() [4/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkSetDecoratedOutputMacro ( Maximum  ,
PixelType   
)
protected

◆ itkSetDecoratedOutputMacro() [5/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkSetDecoratedOutputMacro ( Mean  ,
RealType   
)
protected

◆ itkSetDecoratedOutputMacro() [6/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkSetDecoratedOutputMacro ( Median  ,
RealType   
)
protected

◆ itkSetDecoratedOutputMacro() [7/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkSetDecoratedOutputMacro ( Minimum  ,
PixelType   
)
protected

◆ itkSetDecoratedOutputMacro() [8/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkSetDecoratedOutputMacro ( MPP  ,
RealType   
)
protected

◆ itkSetDecoratedOutputMacro() [9/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkSetDecoratedOutputMacro ( Sigma  ,
RealType   
)
protected

◆ itkSetDecoratedOutputMacro() [10/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkSetDecoratedOutputMacro ( Skewness  ,
RealType   
)
protected

◆ itkSetDecoratedOutputMacro() [11/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkSetDecoratedOutputMacro ( Sum  ,
RealType   
)
protected

◆ itkSetDecoratedOutputMacro() [12/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkSetDecoratedOutputMacro ( SumOfCubes  ,
RealType   
)
protected

◆ itkSetDecoratedOutputMacro() [13/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkSetDecoratedOutputMacro ( SumOfQuadruples  ,
RealType   
)
protected

◆ itkSetDecoratedOutputMacro() [14/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkSetDecoratedOutputMacro ( SumOfSquares  ,
RealType   
)
protected

◆ itkSetDecoratedOutputMacro() [15/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkSetDecoratedOutputMacro ( Uniformity  ,
RealType   
)
protected

◆ itkSetDecoratedOutputMacro() [16/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkSetDecoratedOutputMacro ( UPP  ,
RealType   
)
protected

◆ itkSetDecoratedOutputMacro() [17/17]

template<typename TInputImage >
mitk::StatisticsImageFilter< TInputImage >::itkSetDecoratedOutputMacro ( Variance  ,
RealType   
)
protected

◆ MakeOutput()

template<typename TInputImage >
DataObjectPointer mitk::StatisticsImageFilter< TInputImage >::MakeOutput ( const DataObjectIdentifierType &  name)
override

Make a DataObject of the correct type to be used as the specified output.

◆ New()

template<typename TInputImage >
static Pointer mitk::StatisticsImageFilter< TInputImage >::New ( )
static

◆ PrintSelf()

template<typename TInputImage >
void mitk::StatisticsImageFilter< TInputImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

◆ SetHistogramParameters()

template<typename TInputImage >
void mitk::StatisticsImageFilter< TInputImage >::SetHistogramParameters ( unsigned int  size,
RealType  lowerBound,
RealType  upperBound 
)

Set the histogram parameters.

Parameters
[in]sizeNumber of bins for the histogram.
[in]lowerBoundLower bound of the histogram range.
[in]upperBoundUpper bound of the histogram range.

◆ ThreadedStreamedGenerateData()

template<typename TInputImage >
void mitk::StatisticsImageFilter< TInputImage >::ThreadedStreamedGenerateData ( const RegionType &  )
overrideprotected

The documentation for this class was generated from the following file: