Medical Imaging Interaction Toolkit  2016.11.0
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::Pointer & GetFeatureMeans () const
 
virtual const FeatureValueVector::Pointer & GetFeatureStandardDeviations () 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 ()
 
virtual ~EnhancedScalarImageToTextureFeaturesFilter ()
 
virtual void PrintSelf (std::ostream &os, Indent indent) const ITK_OVERRIDE
 
void FastCompute ()
 
void FullCompute ()
 
virtual void GenerateData () ITK_OVERRIDE
 
virtual 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, texure 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: http://www.fp.ucalgary.ca/mhallbey/tutorial.htm

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 Comaprison 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 122 of file itkEnhancedScalarImageToTextureFeaturesFilter.h.

Member Typedef Documentation

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef SmartPointer< const Self > itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::ConstPointer
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef ScalarImageToCooccurrenceMatrixFilter< ImageType, FrequencyContainerType > itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::CooccurrenceMatrixFilterType
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef DataObject::Pointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::DataObjectPointer

Smart Pointer type to a DataObject.

Definition at line 162 of file itkEnhancedScalarImageToTextureFeaturesFilter.h.

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 227 of file itkEnhancedScalarImageToTextureFeaturesFilter.h.

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef VectorContainer< unsigned char, TextureFeatureName > itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVector
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef FeatureNameVector::ConstPointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVectorConstPointer
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef FeatureNameVector::Pointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVectorPointer
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef VectorContainer< unsigned char, double > itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVector
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 166 of file itkEnhancedScalarImageToTextureFeaturesFilter.h.

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef FeatureValueVector::Pointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVectorPointer
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef THistogramFrequencyContainer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FrequencyContainerType
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef CooccurrenceMatrixFilterType::HistogramType itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::HistogramType
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef ImageType::Pointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::ImagePointer
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef TImageType itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::ImageType
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef ImageType::OffsetType itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetType
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef VectorContainer< unsigned char, OffsetType > itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVector
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef OffsetVector::ConstPointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVectorConstPointer
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef OffsetVector::Pointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVectorPointer
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef ImageType::PixelType itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::PixelType
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef SmartPointer< Self > itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::Pointer
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef EnhancedScalarImageToTextureFeaturesFilter itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::Self

Standard typedefs

Definition at line 126 of file itkEnhancedScalarImageToTextureFeaturesFilter.h.

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

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FastCalculationsOff ( )
virtual
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FastCalculationsOn ( )
virtual
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FastCompute ( )
protected
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FullCompute ( )
protected
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GenerateData ( )
protectedvirtual

This method causes the filter to generate its output.

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

Run-time type information (and related methods).

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

Return the feature means and deviations.

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
const FeatureValueVectorDataObjectType* itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureMeansOutput ( ) const
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual const FeatureValueVector ::Pointer& itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureStandardDeviations ( ) const
virtual
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
const FeatureValueVectorDataObjectType* itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureStandardDeviationsOutput ( ) const
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
const ImageType* itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetInput ( ) const
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
const ImageType* itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetMaskImage ( ) const
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual const OffsetVector* itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetOffsets ( )
virtual
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual const FeatureNameVector* itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetRequestedFeatures ( )
virtual
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual DataObjectPointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::MakeOutput ( DataObjectPointerArraySizeType  )
protectedvirtual
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
static Pointer itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::New ( )
static

standard New() method support

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protectedvirtual
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
virtual void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetFastCalculations ( bool  _arg)
virtual
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
void itk::Statistics::EnhancedScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetInput ( const ImageType )
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.

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.

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.

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.

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.

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: