Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer > Class Template Reference

This class computes run length descriptions from an image. More...

#include <itkEnhancedScalarImageToRunLengthFeaturesFilter.h>

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

Public Types

typedef EnhancedScalarImageToRunLengthFeaturesFilter 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 EnhancedScalarImageToRunLengthMatrixFilter< ImageType, FrequencyContainerTypeRunLengthMatrixFilterType
 
typedef RunLengthMatrixFilterType::HistogramType HistogramType
 
typedef EnhancedHistogramToRunLengthFeaturesFilter< HistogramTypeRunLengthFeaturesFilterType
 
typedef short RunLengthFeatureName
 
typedef VectorContainer< unsigned char, RunLengthFeatureNameFeatureNameVector
 
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 SetDistanceValueMinMax (double min, double 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

 EnhancedScalarImageToRunLengthFeaturesFilter ()
 
virtual ~EnhancedScalarImageToRunLengthFeaturesFilter ()
 
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::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >

This class computes run length descriptions from an image.

By default, run length 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 for each offset given. To compute a single matrix 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 HistogramToRunLengthFeaturesFilter class.
  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.)
  8. The distance range over which the features will be calculated. (Optional, defaults to the full dynamic range of double 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.

Print references: M. M. Galloway. Texture analysis using gray level run lengths. Computer Graphics and Image Processing, 4:172-179, 1975.

A. Chu, C. M. Sehgal, and J. F. Greenleaf. Use of gray value distribution of run lengths for texture analysis. Pattern Recognition Letters, 11:415-420, 1990.

B. R. Dasarathy and E. B. Holder. Image characterizations based on joint gray-level run-length distributions. Pattern Recognition Letters, 12:490-502, 1991.

IJ article: http://hdl.handle.net/1926/1374

See also
EnhancedScalarImageToRunLengthFeaturesFilter
ScalarImageToRunLengthMatrixFilter
HistogramToRunLengthFeaturesFilter
Author
: Nick Tustison

Definition at line 112 of file itkEnhancedScalarImageToRunLengthFeaturesFilter.h.

Member Typedef Documentation

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef SmartPointer< const Self > itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::ConstPointer
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef DataObject::Pointer itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::DataObjectPointer

Smart Pointer type to a DataObject.

Definition at line 155 of file itkEnhancedScalarImageToRunLengthFeaturesFilter.h.

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

Make a DataObject to be used for output output.

Definition at line 225 of file itkEnhancedScalarImageToRunLengthFeaturesFilter.h.

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef VectorContainer<unsigned char, RunLengthFeatureName> itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVector
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef FeatureNameVector::ConstPointer itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVectorConstPointer
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef FeatureNameVector::Pointer itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVectorPointer
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef VectorContainer< unsigned char, double > itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVector
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef DataObjectDecorator< FeatureValueVector > itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVectorDataObjectType

Type of DataObjects used for scalar outputs

Definition at line 159 of file itkEnhancedScalarImageToRunLengthFeaturesFilter.h.

template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef FeatureValueVector::Pointer itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVectorPointer
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef THistogramFrequencyContainer itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FrequencyContainerType
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef RunLengthMatrixFilterType::HistogramType itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::HistogramType
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef ImageType::Pointer itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::ImagePointer
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef TImageType itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::ImageType
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef ImageType::OffsetType itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetType
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef VectorContainer< unsigned char, OffsetType > itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVector
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef OffsetVector::ConstPointer itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVectorConstPointer
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef OffsetVector::Pointer itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVectorPointer
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef ImageType::PixelType itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::PixelType
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef SmartPointer< Self > itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::Pointer
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef short itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::RunLengthFeatureName
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef EnhancedHistogramToRunLengthFeaturesFilter< HistogramType > itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::RunLengthFeaturesFilterType
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef EnhancedScalarImageToRunLengthMatrixFilter< ImageType, FrequencyContainerType > itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::RunLengthMatrixFilterType
template<typename TImageType , typename THistogramFrequencyContainer = DenseFrequencyContainer2>
typedef EnhancedScalarImageToRunLengthFeaturesFilter itk::Statistics::EnhancedScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::Self

Standard typedefs

Definition at line 116 of file itkEnhancedScalarImageToRunLengthFeaturesFilter.h.

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

This method causes the filter to generate its output.

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

Run-time type information (and related methods).

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

Return the feature means and deviations.

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

standard New() method support

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