Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage > Class Template Reference

Extension of the itkLabelStatisticsImageFilter that also calculates the Skewness,Kurtosis,Entropy,Uniformity. More...

#include <mitkExtendedLabelStatisticsImageFilter.h>

Inheritance diagram for itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >:
Collaboration diagram for itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >:

Classes

class  CoefficientsClass
 Internal class which stores the calculated coefficients Skewness,Kurtosis,Uniformity,UPP,MPP,Entropy. More...
 
class  LabelStatistics
 Statistics stored per label. More...
 

Public Types

typedef ExtendedLabelStatisticsImageFilter Self
 
typedef LabelStatisticsImageFilter< TInputImage, TLabelImage > Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef Superclass::LabelPixelType LabelPixelType
 
typedef Superclass::RealType RealType
 
typedef Superclass::PixelType PixelType
 
typedef Superclass::MapIterator MapIterator
 
typedef Superclass::BoundingBoxType BoundingBoxType
 
typedef Superclass::RegionType RegionType
 
typedef itk::Statistics::Histogram< double > HistogramType
 
typedef itksys::hash_map< LabelPixelType, LabelStatisticsMapType
 
typedef itksys::hash_map< LabelPixelType, LabelStatistics >::const_iterator StatisticsMapConstIterator
 
typedef itksys::hash_map< LabelPixelType, LabelStatistics >::iterator StatisticsMapIterator
 
typedef IdentifierType MapSizeType
 
typedef std::vector< LabelPixelTypeValidLabelValuesContainerType
 
typedef ExtendedLabelStatisticsImageFilter Self
 
typedef LabelStatisticsImageFilter< TInputImage, TLabelImage > Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef Superclass::LabelPixelType LabelPixelType
 
typedef Superclass::RealType RealType
 
typedef Superclass::PixelType PixelType
 
typedef Superclass::MapIterator MapIterator
 
typedef itk::Statistics::Histogram< double > HistogramType
 

Public Member Functions

Pointer Clone () const
 
virtual const char * GetClassName () const
 
RealType GetMinimum (LabelPixelType label) const
 
RealType GetMaximum (LabelPixelType label) const
 
RealType GetMean (LabelPixelType label) const
 
RealType GetSigma (LabelPixelType label) const
 
RealType GetVariance (LabelPixelType label) const
 
BoundingBoxType GetBoundingBox (LabelPixelType label) const
 
RegionType GetRegion (LabelPixelType label) const
 
RealType GetSum (LabelPixelType label) const
 
MapSizeType GetCount (LabelPixelType label) const
 
HistogramType::Pointer GetHistogram (LabelPixelType label) const
 
RealType GetSkewness (LabelPixelType label) const
 
RealType GetKurtosis (LabelPixelType label) const
 
RealType GetUniformity (LabelPixelType label) const
 
RealType GetMedian (LabelPixelType label) const
 
RealType GetEntropy (LabelPixelType label) const
 
RealType GetMPP (LabelPixelType label) const
 
RealType GetUPP (LabelPixelType label) const
 
bool GetMaskingNonEmpty () const
 
std::list< int > GetRelevantLabels () const
 
void SetHistogramParameters (const int numBins, RealType lowerBound, RealType upperBound)
 
void SetHistogramParametersForLabels (std::map< LabelPixelType, unsigned int > numBins, std::map< LabelPixelType, PixelType > lowerBound, std::map< LabelPixelType, PixelType > upperBound)
 
Pointer Clone () const
 
virtual const char * GetClassName () const
 
RealType GetSkewness (LabelPixelType label) const
 
RealType GetKurtosis (LabelPixelType label) const
 
RealType GetUniformity (LabelPixelType label) const
 
RealType GetEntropy (LabelPixelType label) const
 
RealType GetMPP (LabelPixelType label) const
 
RealType GetUPP (LabelPixelType label) const
 
std::list< int > GetRelevantLabels () const
 
bool GetMaskingNonEmpty () const
 

Static Public Member Functions

static Pointer New ()
 
static Pointer New ()
 

Protected Types

typedef std::map< LabelPixelType, CoefficientsClassCoefficientsMap
 
typedef CoefficientsMap::const_iterator CoefficientsMapConstIterator
 

Protected Member Functions

 ExtendedLabelStatisticsImageFilter ()
 
virtual ~ExtendedLabelStatisticsImageFilter ()
 
void AfterThreadedGenerateData ()
 
void BeforeThreadedGenerateData ()
 
void ThreadedGenerateData (const typename TInputImage::RegionType &outputRegionForThread, ThreadIdType threadId)
 
bool HasLabel (LabelPixelType label) const
 
 ExtendedLabelStatisticsImageFilter ()
 
virtual ~ExtendedLabelStatisticsImageFilter ()
 
void ComputeSkewnessKurtosisAndMPP ()
 ComputeSkewnessKurtosisAndMPP(),ComputeEntropyUniformityAndUPP() will be called after superclass both methods are seprated because one is build up on the pixel values and one is build up a step after on a histogram. More...
 
void AfterThreadedGenerateData ()
 
void ComputeEntropyUniformityAndUPP ()
 
void CalculateSettingsForLabels ()
 

Detailed Description

template<class TInputImage, class TLabelImage>
class itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >

Extension of the itkLabelStatisticsImageFilter that also calculates the Skewness,Kurtosis,Entropy,Uniformity.

This class inherits from the itkLabelStatisticsImageFilter and uses its results for the calculation of seven additional coefficients: the Skewness, Kurtosis, Uniformity, UPP, MPP, Entropy and Median

This class inherits from the itkLabelStatisticsImageFilter and uses its results for the calculation of six additional coefficients: the Skewness,Kurtosis,Uniformity,UPP,MPP,Entropy

As these coefficient are based on the mean and the sigma which are both calculated by the LabelStatisticsImageFilter, the method AfterThreadedGenerateData() is overwritten and calls ComputeSkewnessKurtosisAndMPP() and ComputeEntropyUniformityAndUPP after the AfterThreadedGenerateData() while the second coefficient Method is only called when the the method useHistogram is on!!! implementation of the superclass is called.

Definition at line 34 of file mitkExtendedLabelStatisticsImageFilter.h.

Member Typedef Documentation

template<class TInputImage , class TLabelImage >
typedef Superclass::BoundingBoxType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::BoundingBoxType

Definition at line 46 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef std::map< LabelPixelType, CoefficientsClass > itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::CoefficientsMap
protected

Definition at line 99 of file old/mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef CoefficientsMap::const_iterator itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::CoefficientsMapConstIterator
protected
template<class TInputImage , class TLabelImage >
typedef SmartPointer< const Self > itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::ConstPointer

Definition at line 41 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef SmartPointer< const Self > itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::ConstPointer

Definition at line 46 of file old/mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef itk::Statistics::Histogram<double> itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::HistogramType

Definition at line 48 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef itk::Statistics::Histogram<double> itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::HistogramType

Definition at line 51 of file old/mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef Superclass::LabelPixelType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::LabelPixelType

Definition at line 42 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef Superclass::LabelPixelType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::LabelPixelType

Definition at line 47 of file old/mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef Superclass::MapIterator itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::MapIterator

Definition at line 45 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef Superclass::MapIterator itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::MapIterator

Definition at line 50 of file old/mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef IdentifierType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::MapSizeType

Definition at line 238 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef itksys::hash_map< LabelPixelType, LabelStatistics > itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::MapType

Type of the map used to store data per label

Definition at line 235 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef Superclass::PixelType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::PixelType

Definition at line 44 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef Superclass::PixelType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::PixelType

Definition at line 49 of file old/mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef SmartPointer< Self > itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::Pointer

Definition at line 40 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef SmartPointer< Self > itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::Pointer

Definition at line 45 of file old/mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef Superclass::RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::RealType

Definition at line 43 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef Superclass::RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::RealType

Definition at line 48 of file old/mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef Superclass::RegionType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::RegionType

Definition at line 47 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef ExtendedLabelStatisticsImageFilter itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::Self

Definition at line 38 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef ExtendedLabelStatisticsImageFilter itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::Self

Definition at line 43 of file old/mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef itksys::hash_map< LabelPixelType, LabelStatistics >::const_iterator itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::StatisticsMapConstIterator

Definition at line 236 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef itksys::hash_map< LabelPixelType, LabelStatistics >::iterator itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::StatisticsMapIterator

Definition at line 237 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef LabelStatisticsImageFilter< TInputImage, TLabelImage > itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::Superclass

Definition at line 39 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef LabelStatisticsImageFilter< TInputImage, TLabelImage > itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::Superclass

Definition at line 44 of file old/mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
typedef std::vector<LabelPixelType> itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::ValidLabelValuesContainerType

Type of the container used to store valid label values

Definition at line 241 of file mitkExtendedLabelStatisticsImageFilter.h.

Constructor & Destructor Documentation

template<class TInputImage , class TLabelImage >
itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::ExtendedLabelStatisticsImageFilter ( )
inlineprotected

Definition at line 296 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
virtual itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::~ExtendedLabelStatisticsImageFilter ( )
inlineprotectedvirtual

Definition at line 304 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::ExtendedLabelStatisticsImageFilter ( )
protected
template<class TInputImage , class TLabelImage >
virtual itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::~ExtendedLabelStatisticsImageFilter ( )
inlineprotectedvirtual

Member Function Documentation

template<class TInputImage , class TLabelImage >
void itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::AfterThreadedGenerateData ( )
protected
template<class TInputImage , class TLabelImage >
void itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::AfterThreadedGenerateData ( )
protected
template<class TInputImage , class TLabelImage >
void itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::BeforeThreadedGenerateData ( )
protected

Initialize some accumulators before the threads run.

template<class TInputImage , class TLabelImage >
void itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::CalculateSettingsForLabels ( )
protected
template<class TInputImage , class TLabelImage >
Pointer itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::Clone ( ) const
template<class TInputImage , class TLabelImage >
Pointer itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::Clone ( ) const
template<class TInputImage , class TLabelImage >
void itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::ComputeEntropyUniformityAndUPP ( )
protected
template<class TInputImage , class TLabelImage >
void itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::ComputeSkewnessKurtosisAndMPP ( )
protected

ComputeSkewnessKurtosisAndMPP(),ComputeEntropyUniformityAndUPP() will be called after superclass both methods are seprated because one is build up on the pixel values and one is build up a step after on a histogram.

template<class TInputImage , class TLabelImage >
BoundingBoxType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetBoundingBox ( LabelPixelType  label) const

Return the computed bounding box for a label.

template<class TInputImage , class TLabelImage >
virtual const char* itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetClassName ( ) const
virtual
template<class TInputImage , class TLabelImage >
virtual const char* itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetClassName ( ) const
virtual
template<class TInputImage , class TLabelImage >
MapSizeType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetCount ( LabelPixelType  label) const

Return the number of pixels for a label.

template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetEntropy ( LabelPixelType  label) const
template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetEntropy ( LabelPixelType  label) const
template<class TInputImage , class TLabelImage >
HistogramType::Pointer itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetHistogram ( LabelPixelType  label) const

Return the histogram for a label

template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetKurtosis ( LabelPixelType  label) const
template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetKurtosis ( LabelPixelType  label) const
template<class TInputImage , class TLabelImage >
bool itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetMaskingNonEmpty ( ) const
template<class TInputImage , class TLabelImage >
bool itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetMaskingNonEmpty ( ) const
template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetMaximum ( LabelPixelType  label) const

Return the computed Maximum for a label.

template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetMean ( LabelPixelType  label) const

Return the computed Mean for a label.

template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetMedian ( LabelPixelType  label) const
template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetMinimum ( LabelPixelType  label) const

Return the computed Minimum for a label.

template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetMPP ( LabelPixelType  label) const
template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetMPP ( LabelPixelType  label) const
template<class TInputImage , class TLabelImage >
RegionType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetRegion ( LabelPixelType  label) const

Return the computed region.

template<class TInputImage , class TLabelImage >
std::list< int> itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetRelevantLabels ( ) const
template<class TInputImage , class TLabelImage >
std::list<int> itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetRelevantLabels ( ) const
template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetSigma ( LabelPixelType  label) const

Return the computed Standard Deviation for a label.

template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetSkewness ( LabelPixelType  label) const
template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetSkewness ( LabelPixelType  label) const
template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetSum ( LabelPixelType  label) const

Return the compute Sum for a label.

template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetUniformity ( LabelPixelType  label) const
template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetUniformity ( LabelPixelType  label) const
template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetUPP ( LabelPixelType  label) const
template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetUPP ( LabelPixelType  label) const
template<class TInputImage , class TLabelImage >
RealType itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::GetVariance ( LabelPixelType  label) const

Return the computed Variance for a label.

template<class TInputImage , class TLabelImage >
bool itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::HasLabel ( LabelPixelType  label) const
inlineprotected

Does the specified label exist? Can only be called after a call a call to Update().

Definition at line 318 of file mitkExtendedLabelStatisticsImageFilter.h.

template<class TInputImage , class TLabelImage >
static Pointer itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::New ( )
static
template<class TInputImage , class TLabelImage >
static Pointer itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::New ( )
static
template<class TInputImage , class TLabelImage >
void itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::SetHistogramParameters ( const int  numBins,
RealType  lowerBound,
RealType  upperBound 
)

specify global Histogram parameters. If the histogram parameters are set with this function, the same min and max value are used for all histograms.

template<class TInputImage , class TLabelImage >
void itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::SetHistogramParametersForLabels ( std::map< LabelPixelType, unsigned int >  numBins,
std::map< LabelPixelType, PixelType lowerBound,
std::map< LabelPixelType, PixelType upperBound 
)

specify Histogram parameters for each label individually. Labels in the label image that are not represented in the std::maps here will receive global parameters (if available)

template<class TInputImage , class TLabelImage >
void itk::ExtendedLabelStatisticsImageFilter< TInputImage, TLabelImage >::ThreadedGenerateData ( const typename TInputImage::RegionType &  outputRegionForThread,
ThreadIdType  threadId 
)
protected

Multi-thread version GenerateData.


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