Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer > Class Template Reference

This class computes texture descriptions from an image. More...

#include <itkEnhancedScalarImageToTextureFeaturesFilter.h>

Inheritance diagram for itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >:
Collaboration diagram for itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >:

Public Types

typedef EnhancedScalarImageToTextureFeaturesFilter Self
 
typedef ProcessObject Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef THistogramFrequencyContainer FrequencyContainerType
 
typedef TImageType ImageType
 
typedef ImageType::Pointer ImagePointer
 
typedef ImageType::PixelType PixelType
 
typedef ImageType::OffsetType OffsetType
 
typedef VectorContainer< unsigned char, OffsetTypeOffsetVector
 
typedef OffsetVector::Pointer OffsetVectorPointer
 
typedef OffsetVector::ConstPointer OffsetVectorConstPointer
 
typedef ScalarImageToCooccurrenceMatrixFilter< ImageType, FrequencyContainerTypeCooccurrenceMatrixFilterType
 
typedef CooccurrenceMatrixFilterType::HistogramType HistogramType
 
typedef EnhancedHistogramToTextureFeaturesFilter< HistogramTypeTextureFeaturesFilterType
 
typedef short TextureFeatureName
 
typedef VectorContainer< unsigned char, TextureFeatureNameFeatureNameVector
 
typedef FeatureNameVector::Pointer FeatureNameVectorPointer
 
typedef FeatureNameVector::ConstPointer FeatureNameVectorConstPointer
 
typedef VectorContainer< unsigned char, double > FeatureValueVector
 
typedef FeatureValueVector::Pointer FeatureValueVectorPointer
 
typedef DataObject::Pointer DataObjectPointer
 
typedef DataObjectDecorator< FeatureValueVectorFeatureValueVectorDataObjectType
 

Public Member Functions

virtual const char * GetClassName () const
 
const FeatureValueVectorDataObjectTypeGetFeatureMeansOutput () const
 
const FeatureValueVectorDataObjectTypeGetFeatureStandardDeviationsOutput () const
 
void SetInput (const ImageType *)
 
const ImageTypeGetInput () const
 
virtual const FeatureValueVector ::PointerGetFeatureMeans () const
 
virtual const FeatureValueVector ::PointerGetFeatureStandardDeviations () const
 
virtual void SetRequestedFeatures (const FeatureNameVector *_arg)
 
virtual const FeatureNameVectorGetRequestedFeatures ()
 
virtual void SetOffsets (const OffsetVector *_arg)
 
virtual const OffsetVectorGetOffsets ()
 
void SetNumberOfBinsPerAxis (unsigned int)
 
void SetPixelValueMinMax (PixelType min, PixelType max)
 
void SetMaskImage (const ImageType *)
 
const ImageTypeGetMaskImage () const
 
void SetInsidePixelValue (PixelType InsidePixelValue)
 
virtual bool GetFastCalculations () const
 
virtual void SetFastCalculations (bool _arg)
 
virtual void FastCalculationsOn ()
 
virtual void FastCalculationsOff ()
 

Static Public Member Functions

static Pointer New ()
 

Protected Types

typedef ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
 

Protected Member Functions

 EnhancedScalarImageToTextureFeaturesFilter ()
 
 ~EnhancedScalarImageToTextureFeaturesFilter () override
 
void PrintSelf (std::ostream &os, Indent indent) const ITK_OVERRIDE
 
void FastCompute ()
 
void FullCompute ()
 
void GenerateData () ITK_OVERRIDE
 
DataObjectPointer MakeOutput (DataObjectPointerArraySizeType) ITK_OVERRIDE
 

Detailed Description

template<typename TImageType, typename THistogramFrequencyContainer = DenseFrequencyContainer2>
class itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >

This class computes texture descriptions from an image.

This class computes features that summarize the texture of a given image. The texture features are computed a la Haralick, and have proven to be useful in image classification for biological and medical imaging. This class computes the texture features of an image (optionally in a masked region), averaged across several spatial directions so that they are invariant to rotation.

By default, texture features are computed for each spatial direction and then averaged afterward, so it is possible to access the standard deviations of the texture features. These values give a clue as to texture anisotropy. However, doing this is much more work, because it involved computing one GLCM for each offset given. To compute a single GLCM using the first offset , call FastCalculationsOn(). If this is called, then the texture standard deviations will not be computed (and will be set to zero), but texture computation will be much faster.

This class is templated over the input image type.

Template Parameters: The image type, and the type of histogram frequency container. If you are using a large number of bins per axis, a sparse frequency container may be advisable. The default is to use a dense frequency container.

Inputs and parameters:

  1. An image
  2. A mask defining the region over which texture features will be calculated. (Optional)
  3. The pixel value that defines the "inside" of the mask. (Optional, defaults to 1 if a mask is set.)
  4. The set of features to be calculated. These features are defined in the GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator class. (Optional, defaults to {Energy, Entropy, InverseDifferenceMoment, Inertia, ClusterShade, ClusterProminence}, as in Conners, Trivedi and Harlow.)
  5. The number of intensity bins. (Optional, defaults to 256.)
  6. The set of directions (offsets) to average across. (Optional, defaults to {(-1, 0), (-1, -1), (0, -1), (1, -1)} for 2D images and scales analogously for ND images.)
  7. The pixel intensity range over which the features will be calculated. (Optional, defaults to the full dynamic range of the pixel type.)

In general, the default parameter values should be sufficient.

Outputs: (1) The average value of each feature. (2) The standard deviation in the values of each feature.

Web reference: https://prism.ucalgary.ca/handle/1880/51900

Print references: Haralick, R.M., K. Shanmugam and I. Dinstein. 1973. Textural Features for Image Classification. IEEE Transactions on Systems, Man and Cybernetics. SMC-3(6):610-620.

Haralick, R.M. 1979. Statistical and Structural Approaches to Texture. Proceedings of the IEEE, 67:786-804.

R.W. Conners and C.A. Harlow. A Theoretical Comparison of Texture Algorithms. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2:204-222, 1980.

R.W. Conners, M.M. Trivedi, and C.A. Harlow. Segmentation of a High-Resolution Urban Scene using Texture Operators. Computer Vision, Graphics and Image Processing, 25:273-310, 1984.

See also
ScalarImageToCooccurrenceMatrixFilter
HistogramToTextureFeaturesFilter

Author: Zachary Pincus

Definition at line 118 of file itkEnhancedScalarImageToTextureFeaturesFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef SmartPointer< const Self > itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::ConstPointer

◆ CooccurrenceMatrixFilterType

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef ScalarImageToCooccurrenceMatrixFilter< ImageType, FrequencyContainerType > itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::CooccurrenceMatrixFilterType

◆ DataObjectPointer

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef DataObject::Pointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::DataObjectPointer

Smart Pointer type to a DataObject.

Definition at line 158 of file itkEnhancedScalarImageToTextureFeaturesFilter.h.

◆ DataObjectPointerArraySizeType

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef ProcessObject::DataObjectPointerArraySizeType itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::DataObjectPointerArraySizeType
protected

Make a DataObject to be used for output output.

Definition at line 223 of file itkEnhancedScalarImageToTextureFeaturesFilter.h.

◆ FeatureNameVector

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef VectorContainer< unsigned char, TextureFeatureName > itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVector

◆ FeatureNameVectorConstPointer

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef FeatureNameVector::ConstPointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVectorConstPointer

◆ FeatureNameVectorPointer

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef FeatureNameVector::Pointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVectorPointer

◆ FeatureValueVector

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef VectorContainer< unsigned char, double > itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVector

◆ FeatureValueVectorDataObjectType

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef DataObjectDecorator< FeatureValueVector > itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVectorDataObjectType

Type of DataObjects used for scalar outputs

Definition at line 162 of file itkEnhancedScalarImageToTextureFeaturesFilter.h.

◆ FeatureValueVectorPointer

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef FeatureValueVector::Pointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVectorPointer

◆ FrequencyContainerType

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef THistogramFrequencyContainer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FrequencyContainerType

◆ HistogramType

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef CooccurrenceMatrixFilterType::HistogramType itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::HistogramType

◆ ImagePointer

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef ImageType::Pointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::ImagePointer

◆ ImageType

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef TImageType itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::ImageType

◆ OffsetType

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef ImageType::OffsetType itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetType

◆ OffsetVector

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef VectorContainer< unsigned char, OffsetType > itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVector

◆ OffsetVectorConstPointer

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef OffsetVector::ConstPointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVectorConstPointer

◆ OffsetVectorPointer

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef OffsetVector::Pointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVectorPointer

◆ PixelType

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef ImageType::PixelType itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::PixelType

◆ Pointer

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef SmartPointer< Self > itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::Pointer

◆ Self

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef EnhancedScalarImageToTextureFeaturesFilter itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::Self

Standard typedefs

Definition at line 122 of file itkEnhancedScalarImageToTextureFeaturesFilter.h.

◆ Superclass

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef ProcessObject itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::Superclass

◆ TextureFeatureName

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef short itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::TextureFeatureName

◆ TextureFeaturesFilterType

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef EnhancedHistogramToTextureFeaturesFilter< HistogramType > itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::TextureFeaturesFilterType

Constructor & Destructor Documentation

◆ EnhancedScalarImageToTextureFeaturesFilter()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::EnhancedScalarImageToTextureFeaturesFilter ( )
protected

◆ ~EnhancedScalarImageToTextureFeaturesFilter()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::~EnhancedScalarImageToTextureFeaturesFilter ( )
inlineoverrideprotected

Member Function Documentation

◆ FastCalculationsOff()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FastCalculationsOff ( )
virtual

◆ FastCalculationsOn()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FastCalculationsOn ( )
virtual

◆ FastCompute()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FastCompute ( )
protected

◆ FullCompute()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FullCompute ( )
protected

◆ GenerateData()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GenerateData ( )
protected

This method causes the filter to generate its output.

◆ GetClassName()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual const char* itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetClassName ( ) const
virtual

Run-time type information (and related methods).

◆ GetFastCalculations()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual bool itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFastCalculations ( ) const
virtual

◆ GetFeatureMeans()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual const FeatureValueVector ::Pointer& itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureMeans ( ) const
virtual

Return the feature means and deviations.

◆ GetFeatureMeansOutput()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
const FeatureValueVectorDataObjectType* itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureMeansOutput ( ) const

◆ GetFeatureStandardDeviations()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual const FeatureValueVector ::Pointer& itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureStandardDeviations ( ) const
virtual

◆ GetFeatureStandardDeviationsOutput()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
const FeatureValueVectorDataObjectType* itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureStandardDeviationsOutput ( ) const

◆ GetInput()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
const ImageType* itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetInput ( ) const

◆ GetMaskImage()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
const ImageType* itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetMaskImage ( ) const

◆ GetOffsets()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual const OffsetVector* itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetOffsets ( )
virtual

◆ GetRequestedFeatures()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual const FeatureNameVector* itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetRequestedFeatures ( )
virtual

◆ MakeOutput()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
DataObjectPointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::MakeOutput ( DataObjectPointerArraySizeType  )
protected

◆ New()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
static Pointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::New ( )
static

standard New() method support

◆ PrintSelf()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protected

◆ SetFastCalculations()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetFastCalculations ( bool  _arg)
virtual

◆ SetInput()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetInput ( const ImageType )

◆ SetInsidePixelValue()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetInsidePixelValue ( PixelType  InsidePixelValue)

Set the pixel value of the mask that should be considered "inside" the object. Optional; for default value see above.

◆ SetMaskImage()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetMaskImage ( const ImageType )

Connects the mask image for which the histogram is going to be computed. Optional; for default value see above.

◆ SetNumberOfBinsPerAxis()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetNumberOfBinsPerAxis ( unsigned int  )

Set number of histogram bins along each axis. Optional; for default value see above.

◆ SetOffsets()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetOffsets ( const OffsetVector _arg)
virtual

Set the offsets over which the co-occurrence pairs will be computed. Optional; for default value see above.

◆ SetPixelValueMinMax()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetPixelValueMinMax ( PixelType  min,
PixelType  max 
)

Set the min and max (inclusive) pixel value that will be used for feature calculations. Optional; for default value see above.

◆ SetRequestedFeatures()

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetRequestedFeatures ( const FeatureNameVector _arg)
virtual

Set the desired feature set. Optional, for default value see above.


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