ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkScalarImageToTextureFeaturesFilter.h>
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:
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.
Author: Zachary Pincus
Definition at line 106 of file itkScalarImageToTextureFeaturesFilter.h.
typedef SmartPointer< const Self > itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::ConstPointer |
Reimplemented from itk::ProcessObject.
Definition at line 113 of file itkScalarImageToTextureFeaturesFilter.h.
typedef ScalarImageToCooccurrenceMatrixFilter< ImageType, FrequencyContainerType > itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::CooccurrenceMatrixFilterType |
Definition at line 132 of file itkScalarImageToTextureFeaturesFilter.h.
typedef DataObject::Pointer itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::DataObjectPointer |
Smart Pointer type to a DataObject.
Reimplemented from itk::ProcessObject.
Definition at line 149 of file itkScalarImageToTextureFeaturesFilter.h.
typedef ProcessObject::DataObjectPointerArraySizeType itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::DataObjectPointerArraySizeType [protected] |
Make a DataObject to be used for output output.
Reimplemented from itk::ProcessObject.
Definition at line 217 of file itkScalarImageToTextureFeaturesFilter.h.
typedef VectorContainer< unsigned char, TextureFeatureName > itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVector |
Definition at line 141 of file itkScalarImageToTextureFeaturesFilter.h.
typedef FeatureNameVector::ConstPointer itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVectorConstPointer |
Definition at line 144 of file itkScalarImageToTextureFeaturesFilter.h.
typedef FeatureNameVector::Pointer itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVectorPointer |
Definition at line 143 of file itkScalarImageToTextureFeaturesFilter.h.
typedef VectorContainer< unsigned char, double > itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVector |
Definition at line 145 of file itkScalarImageToTextureFeaturesFilter.h.
typedef DataObjectDecorator< FeatureValueVector > itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVectorDataObjectType |
Type of DataObjects used for scalar outputs
Definition at line 153 of file itkScalarImageToTextureFeaturesFilter.h.
typedef FeatureValueVector::Pointer itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVectorPointer |
Definition at line 146 of file itkScalarImageToTextureFeaturesFilter.h.
typedef THistogramFrequencyContainer itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FrequencyContainerType |
Definition at line 119 of file itkScalarImageToTextureFeaturesFilter.h.
typedef CooccurrenceMatrixFilterType::HistogramType itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::HistogramType |
Definition at line 135 of file itkScalarImageToTextureFeaturesFilter.h.
typedef ImageType::Pointer itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::ImagePointer |
Definition at line 123 of file itkScalarImageToTextureFeaturesFilter.h.
typedef TImageType itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::ImageType |
Definition at line 122 of file itkScalarImageToTextureFeaturesFilter.h.
typedef ImageType::OffsetType itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetType |
Definition at line 126 of file itkScalarImageToTextureFeaturesFilter.h.
typedef VectorContainer< unsigned char, OffsetType > itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVector |
Definition at line 127 of file itkScalarImageToTextureFeaturesFilter.h.
typedef OffsetVector::ConstPointer itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVectorConstPointer |
Definition at line 129 of file itkScalarImageToTextureFeaturesFilter.h.
typedef OffsetVector::Pointer itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVectorPointer |
Definition at line 128 of file itkScalarImageToTextureFeaturesFilter.h.
typedef ImageType::PixelType itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::PixelType |
Definition at line 125 of file itkScalarImageToTextureFeaturesFilter.h.
typedef SmartPointer< Self > itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::Pointer |
Reimplemented from itk::ProcessObject.
Definition at line 112 of file itkScalarImageToTextureFeaturesFilter.h.
typedef ScalarImageToTextureFeaturesFilter itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::Self |
Standard typedefs
Reimplemented from itk::ProcessObject.
Definition at line 110 of file itkScalarImageToTextureFeaturesFilter.h.
typedef ProcessObject itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::Superclass |
Reimplemented from itk::ProcessObject.
Definition at line 111 of file itkScalarImageToTextureFeaturesFilter.h.
typedef short itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::TextureFeatureName |
Definition at line 140 of file itkScalarImageToTextureFeaturesFilter.h.
typedef HistogramToTextureFeaturesFilter< HistogramType > itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::TextureFeaturesFilterType |
Definition at line 138 of file itkScalarImageToTextureFeaturesFilter.h.
itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::ScalarImageToTextureFeaturesFilter | ( | ) | [protected] |
virtual itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::~ScalarImageToTextureFeaturesFilter | ( | ) | [inline, protected, virtual] |
Definition at line 206 of file itkScalarImageToTextureFeaturesFilter.h.
virtual::itk::LightObject::Pointer itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::CreateAnother | ( | void | ) | const [virtual] |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
virtual void itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FastCalculationsOff | ( | ) | [virtual] |
virtual void itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FastCalculationsOn | ( | ) | [virtual] |
void itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FastCompute | ( | ) | [protected] |
void itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FullCompute | ( | ) | [protected] |
virtual void itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GenerateData | ( | ) | [protected, virtual] |
This method causes the filter to generate its output.
Reimplemented from itk::ProcessObject.
virtual bool itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFastCalculations | ( | ) | const [virtual] |
virtual const FeatureValueVector ::Pointer& itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureMeans | ( | ) | const [virtual] |
Return the feature means and deviations.
const FeatureValueVectorDataObjectType* itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureMeansOutput | ( | ) | const |
virtual const FeatureValueVector ::Pointer& itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureStandardDeviations | ( | ) | const [virtual] |
Return the feature means and deviations.
const FeatureValueVectorDataObjectType* itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureStandardDeviationsOutput | ( | ) | const |
const ImageType* itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetInput | ( | ) | const |
const ImageType* itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetMaskImage | ( | ) | const |
virtual const char* itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::ProcessObject.
virtual const OffsetVector* itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetOffsets | ( | ) | [virtual] |
Set the offsets over which the co-occurrence pairs will be computed. Optional; for default value see above.
virtual const FeatureNameVector* itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetRequestedFeatures | ( | ) | [virtual] |
Set the desired feature set. Optional, for default value see above.
virtual DataObjectPointer itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::MakeOutput | ( | DataObjectPointerArraySizeType | idx | ) | [protected, virtual] |
Make a DataObject of the correct type to used as the specified output. Every ProcessObject subclass must be able to create a DataObject that can be used as a specified output. This method is automatically called when DataObject::DisconnectPipeline() is called. DataObject::DisconnectPipeline, disconnects a data object from being an output of its current source. When the data object is disconnected, the ProcessObject needs to construct a replacement output data object so that the ProcessObject is in a valid state. So DataObject::DisconnectPipeline eventually calls ProcessObject::MakeOutput. Note that MakeOutput always returns a itkSmartPointer to a DataObject. ImageSource and MeshSource override this method to create the correct type of image and mesh respectively. If a filter has multiple outputs of different types, then that filter must provide an implementation of MakeOutput().
Reimplemented from itk::ProcessObject.
static Pointer itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::New | ( | ) | [static] |
standard New() method support
Reimplemented from itk::Object.
void itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::ProcessObject.
virtual void itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetFastCalculations | ( | bool | _arg | ) | [virtual] |
void itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetInput | ( | const ImageType * | ) |
void itk::Statistics::ScalarImageToTextureFeaturesFilter< 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.
void itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetMaskImage | ( | const ImageType * | ) |
Connects the mask image for which the histogram is going to be computed. Optional; for default value see above.
void itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetNumberOfBinsPerAxis | ( | unsigned | int | ) |
Set number of histogram bins along each axis. Optional; for default value see above.
virtual void itk::Statistics::ScalarImageToTextureFeaturesFilter< 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.
void itk::Statistics::ScalarImageToTextureFeaturesFilter< 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.
virtual void itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetRequestedFeatures | ( | const FeatureNameVector * | _arg | ) | [virtual] |
Set the desired feature set. Optional, for default value see above.
bool itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::m_FastCalculations [private] |
Definition at line 228 of file itkScalarImageToTextureFeaturesFilter.h.
FeatureValueVectorPointer itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::m_FeatureMeans [private] |
Definition at line 224 of file itkScalarImageToTextureFeaturesFilter.h.
FeatureValueVectorPointer itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::m_FeatureStandardDeviations [private] |
Definition at line 225 of file itkScalarImageToTextureFeaturesFilter.h.
CooccurrenceMatrixFilterType::Pointer itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::m_GLCMGenerator [private] |
Definition at line 222 of file itkScalarImageToTextureFeaturesFilter.h.
OffsetVectorConstPointer itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::m_Offsets [private] |
Definition at line 227 of file itkScalarImageToTextureFeaturesFilter.h.
FeatureNameVectorConstPointer itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::m_RequestedFeatures [private] |
Definition at line 226 of file itkScalarImageToTextureFeaturesFilter.h.