ITK
4.9.0
Insight Segmentation and Registration Toolkit
|
#include <itkHistogramToTextureFeaturesFilter.h>
This class computes texture feature coefficients from a grey level co-occurrence matrix.
This class computes features that summarize image texture, given a grey level co-occurrence matrix (generated by a ScalarImageToCooccurrenceMatrixFilter or related class).
The features calculated are as follows (where is the element in cell i, j of a a normalized GLCM):
"Energy"
"Entropy" , or 0 if
"Correlation"
"Difference Moment"
"Inertia" (sometimes called "contrast.")
"Cluster Shade"
"Cluster Prominence"
"Haralick's Correlation" where and are the mean and standard deviation of the row (or column, due to symmetry) sums.
Above, (weighted pixel average) (due to matrix summetry), and
(weighted pixel variance) (due to matrix summetry)
A good texture feature set to use is the Conners, Trivedi and Harlow set: features 1, 2, 4, 5, 6, and 7. There is some correlation between the various features, so using all of them at the same time is not necessarialy a good idea.
NOTA BENE: The input histogram will be forcably normalized! This algorithm takes three passes through the input histogram if the histogram was already normalized, and four if not.
Web references:
http://www.cssip.uq.edu.au/meastex/www/algs/algs/algs.html http://www.ucalgary.ca/~mhallbey/texture/texture_tutorial.html
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 102 of file itkHistogramToTextureFeaturesFilter.h.
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Protected Types | |
typedef ProcessObject::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
Private Member Functions | |
void | ComputeMeansAndVariances (double &pixelMean, double &marginalMean, double &marginalDevSquared, double &pixelVariance) |
HistogramToTextureFeaturesFilter (const Self &) ITK_DELETE_FUNCTION | |
void | operator= (const Self &) ITK_DELETE_FUNCTION |
Private Attributes | |
RelativeFrequencyContainerType | m_RelativeFrequencyContainer |
Additional Inherited Members | |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
Protected Attributes inherited from itk::LightObject | |
AtomicInt< int > | m_ReferenceCount |
typedef HistogramType::AbsoluteFrequencyType itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::AbsoluteFrequencyType |
Definition at line 123 of file itkHistogramToTextureFeaturesFilter.h.
typedef SmartPointer< const Self > itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::ConstPointer |
Definition at line 109 of file itkHistogramToTextureFeaturesFilter.h.
typedef DataObject::Pointer itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::DataObjectPointer |
Smart Pointer type to a DataObject.
Definition at line 142 of file itkHistogramToTextureFeaturesFilter.h.
|
protected |
Make a DataObject to be used for output output.
Definition at line 209 of file itkHistogramToTextureFeaturesFilter.h.
typedef HistogramType::ConstPointer itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::HistogramConstPointer |
Definition at line 119 of file itkHistogramToTextureFeaturesFilter.h.
typedef HistogramType::Pointer itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::HistogramPointer |
Definition at line 118 of file itkHistogramToTextureFeaturesFilter.h.
typedef THistogram itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::HistogramType |
Definition at line 115 of file itkHistogramToTextureFeaturesFilter.h.
typedef HistogramType::IndexType itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::IndexType |
Definition at line 122 of file itkHistogramToTextureFeaturesFilter.h.
typedef SimpleDataObjectDecorator< MeasurementType > itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::MeasurementObjectType |
Type of DataObjects used for scalar outputs
Definition at line 145 of file itkHistogramToTextureFeaturesFilter.h.
typedef HistogramType::MeasurementType itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::MeasurementType |
Definition at line 120 of file itkHistogramToTextureFeaturesFilter.h.
typedef HistogramType::MeasurementVectorType itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::MeasurementVectorType |
Definition at line 121 of file itkHistogramToTextureFeaturesFilter.h.
typedef SmartPointer< Self > itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::Pointer |
Definition at line 108 of file itkHistogramToTextureFeaturesFilter.h.
typedef std::vector< RelativeFrequencyType > itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::RelativeFrequencyContainerType |
Container to hold relative frequencies of the histogram
Definition at line 133 of file itkHistogramToTextureFeaturesFilter.h.
typedef HistogramType::RelativeFrequencyType itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::RelativeFrequencyType |
Definition at line 124 of file itkHistogramToTextureFeaturesFilter.h.
typedef HistogramToTextureFeaturesFilter itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::Self |
Standard typedefs
Definition at line 106 of file itkHistogramToTextureFeaturesFilter.h.
typedef ProcessObject itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::Superclass |
Definition at line 107 of file itkHistogramToTextureFeaturesFilter.h.
typedef HistogramType::TotalAbsoluteFrequencyType itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::TotalAbsoluteFrequencyType |
Definition at line 127 of file itkHistogramToTextureFeaturesFilter.h.
typedef HistogramType::TotalRelativeFrequencyType itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::TotalRelativeFrequencyType |
Definition at line 130 of file itkHistogramToTextureFeaturesFilter.h.
enum itk::Statistics::HistogramToTextureFeaturesFilter::TextureFeatureName |
Texture feature types
Enumerator | |
---|---|
Energy | |
Entropy | |
Correlation | |
InverseDifferenceMoment | |
Inertia | |
ClusterShade | |
ClusterProminence | |
HaralickCorrelation | |
InvalidFeatureName |
Definition at line 188 of file itkHistogramToTextureFeaturesFilter.h.
|
protected |
|
inlineprotected |
Definition at line 205 of file itkHistogramToTextureFeaturesFilter.h.
|
private |
|
private |
|
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.
|
overrideprotectedvirtual |
This method causes the filter to generate its output.
Reimplemented from itk::ProcessObject.
MeasurementType itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetClusterProminence | ( | ) | const |
Return cluster prominence texture value.
const MeasurementObjectType* itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetClusterProminenceOutput | ( | ) | const |
MeasurementType itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetClusterShade | ( | ) | const |
Return cluster shade texture value.
const MeasurementObjectType* itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetClusterShadeOutput | ( | ) | const |
MeasurementType itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetCorrelation | ( | ) | const |
return correlation texture value.
const MeasurementObjectType* itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetCorrelationOutput | ( | ) | const |
MeasurementType itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetEnergy | ( | ) | const |
Return energy texture value.
const MeasurementObjectType* itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetEnergyOutput | ( | ) | const |
MeasurementType itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetEntropy | ( | ) | const |
Return entropy texture value.
const MeasurementObjectType* itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetEntropyOutput | ( | ) | const |
MeasurementType itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetFeature | ( | TextureFeatureName | name | ) |
convenience method to access the texture values
MeasurementType itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetHaralickCorrelation | ( | ) | const |
Return Haralick correlation texture value.
const MeasurementObjectType* itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetHaralickCorrelationOutput | ( | ) | const |
MeasurementType itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetInertia | ( | ) | const |
Return inertia texture value.
const MeasurementObjectType* itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetInertiaOutput | ( | ) | const |
const HistogramType* itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetInput | ( | ) | const |
MeasurementType itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetInverseDifferenceMoment | ( | ) | const |
Return inverse difference moment texture value.
const MeasurementObjectType* itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::GetInverseDifferenceMomentOutput | ( | ) | const |
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ProcessObject.
|
overrideprotectedvirtual |
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 |
standard New() method support
|
private |
|
overrideprotectedvirtual |
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.
void itk::Statistics::HistogramToTextureFeaturesFilter< THistogram >::SetInput | ( | const HistogramType * | histogram | ) |
|
private |
Definition at line 222 of file itkHistogramToTextureFeaturesFilter.h.