ITK
5.2.0
Insight 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, 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:
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 109 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::ConstPointer = SmartPointer<const Self> |
Definition at line 116 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::CooccurrenceMatrixFilterType = ScalarImageToCooccurrenceMatrixFilter<ImageType, FrequencyContainerType> |
Definition at line 134 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::DataObjectPointer = DataObject::Pointer |
Smart Pointer type to a DataObject.
Definition at line 150 of file itkScalarImageToTextureFeaturesFilter.h.
|
protected |
Make a DataObject to be used for output output.
Definition at line 231 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVector = VectorContainer<unsigned char, TextureFeatureName> |
Definition at line 142 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVectorConstPointer = typename FeatureNameVector::ConstPointer |
Definition at line 145 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVectorPointer = typename FeatureNameVector::Pointer |
Definition at line 144 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVector = VectorContainer<unsigned char, double> |
Definition at line 146 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVectorDataObjectType = DataObjectDecorator<FeatureValueVector> |
Type of DataObjects used for scalar outputs
Definition at line 153 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVectorPointer = typename FeatureValueVector::Pointer |
Definition at line 147 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::FrequencyContainerType = THistogramFrequencyContainer |
Definition at line 124 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::HistogramType = typename CooccurrenceMatrixFilterType::HistogramType |
Definition at line 136 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::ImagePointer = typename ImageType::Pointer |
Definition at line 126 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::ImageType = TImageType |
Definition at line 125 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetType = typename ImageType::OffsetType |
Definition at line 129 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVector = VectorContainer<unsigned char, OffsetType> |
Definition at line 130 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVectorConstPointer = typename OffsetVector::ConstPointer |
Definition at line 132 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVectorPointer = typename OffsetVector::Pointer |
Definition at line 131 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::PixelType = typename ImageType::PixelType |
Definition at line 128 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::Pointer = SmartPointer<Self> |
Definition at line 115 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::Self = ScalarImageToTextureFeaturesFilter |
Standard type alias
Definition at line 113 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::Superclass = ProcessObject |
Definition at line 114 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::TextureFeatureName = uint8_t |
Definition at line 141 of file itkScalarImageToTextureFeaturesFilter.h.
using itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::TextureFeaturesFilterType = HistogramToTextureFeaturesFilter<HistogramType> |
Definition at line 137 of file itkScalarImageToTextureFeaturesFilter.h.
|
protected |
Make a DataObject to be used for output output.
|
overrideprotecteddefault |
Make a DataObject to be used for output output.
|
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 |
Make a DataObject to be used for output output.
|
virtual |
Make a DataObject to be used for output output.
|
protected |
Make a DataObject to be used for output output.
|
protected |
Make a DataObject to be used for output output.
|
overrideprotectedvirtual |
This method causes the filter to generate its output.
Reimplemented from itk::ProcessObject.
|
virtual |
Make a DataObject to be used for output output.
|
virtual |
Return the feature means and deviations.
const FeatureValueVectorDataObjectType* itk::Statistics::ScalarImageToTextureFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureMeansOutput | ( | ) | const |
|
virtual |
Make a DataObject to be used for output output.
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 |
Make a DataObject to be used for output output.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ProcessObject.
|
virtual |
Make a DataObject to be used for output output.
|
virtual |
Make a DataObject to be used for output output.
|
overrideprotectedvirtual |
Make a DataObject to be used for output output.
Reimplemented from itk::ProcessObject.
|
static |
standard New() method support
|
overrideprotectedvirtual |
Make a DataObject to be used for output output.
Reimplemented from itk::ProcessObject.
|
virtual |
Make a DataObject to be used for output output.
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 |
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 |
Set the desired feature set. Optional, for default value see above.
|
private |
Make a DataObject to be used for output output.
Definition at line 244 of file itkScalarImageToTextureFeaturesFilter.h.
|
private |
Make a DataObject to be used for output output.
Definition at line 240 of file itkScalarImageToTextureFeaturesFilter.h.
|
private |
Make a DataObject to be used for output output.
Definition at line 241 of file itkScalarImageToTextureFeaturesFilter.h.
|
private |
Make a DataObject to be used for output output.
Definition at line 238 of file itkScalarImageToTextureFeaturesFilter.h.
|
private |
Make a DataObject to be used for output output.
Definition at line 236 of file itkScalarImageToTextureFeaturesFilter.h.
|
private |
Make a DataObject to be used for output output.
Definition at line 243 of file itkScalarImageToTextureFeaturesFilter.h.
|
private |
Make a DataObject to be used for output output.
Definition at line 242 of file itkScalarImageToTextureFeaturesFilter.h.