ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkScalarImageToRunLengthFeaturesFilter.h>
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:
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
Definition at line 96 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef SmartPointer< const Self > itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::ConstPointer |
Reimplemented from itk::ProcessObject.
Definition at line 103 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef DataObject::Pointer itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::DataObjectPointer |
Smart Pointer type to a DataObject.
Reimplemented from itk::ProcessObject.
Definition at line 139 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef ProcessObject::DataObjectPointerArraySizeType itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::DataObjectPointerArraySizeType [protected] |
Make a DataObject to be used for output output.
Reimplemented from itk::ProcessObject.
Definition at line 213 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef VectorContainer<unsigned char, RunLengthFeatureName> itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVector |
Definition at line 132 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef FeatureNameVector::ConstPointer itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVectorConstPointer |
Definition at line 134 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef FeatureNameVector::Pointer itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVectorPointer |
Definition at line 133 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef VectorContainer< unsigned char, double > itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVector |
Definition at line 135 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef DataObjectDecorator< FeatureValueVector > itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVectorDataObjectType |
Type of DataObjects used for scalar outputs
Definition at line 143 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef FeatureValueVector::Pointer itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVectorPointer |
Definition at line 136 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef THistogramFrequencyContainer itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FrequencyContainerType |
Definition at line 109 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef RunLengthMatrixFilterType::HistogramType itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::HistogramType |
Definition at line 125 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef ImageType::Pointer itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::ImagePointer |
Definition at line 113 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef TImageType itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::ImageType |
Definition at line 112 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef ImageType::OffsetType itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetType |
Definition at line 116 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef VectorContainer< unsigned char, OffsetType > itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVector |
Definition at line 117 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef OffsetVector::ConstPointer itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVectorConstPointer |
Definition at line 119 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef OffsetVector::Pointer itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVectorPointer |
Definition at line 118 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef ImageType::PixelType itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::PixelType |
Definition at line 115 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef SmartPointer< Self > itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::Pointer |
Reimplemented from itk::ProcessObject.
Definition at line 102 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef short itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::RunLengthFeatureName |
Definition at line 130 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef HistogramToRunLengthFeaturesFilter< HistogramType > itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::RunLengthFeaturesFilterType |
Definition at line 128 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef ScalarImageToRunLengthMatrixFilter< ImageType, FrequencyContainerType > itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::RunLengthMatrixFilterType |
Definition at line 122 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef ScalarImageToRunLengthFeaturesFilter itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::Self |
Standard typedefs
Reimplemented from itk::ProcessObject.
Definition at line 100 of file itkScalarImageToRunLengthFeaturesFilter.h.
typedef ProcessObject itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::Superclass |
Reimplemented from itk::ProcessObject.
Definition at line 101 of file itkScalarImageToRunLengthFeaturesFilter.h.
itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::ScalarImageToRunLengthFeaturesFilter | ( | ) | [protected] |
virtual itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::~ScalarImageToRunLengthFeaturesFilter | ( | ) | [inline, protected, virtual] |
Definition at line 202 of file itkScalarImageToRunLengthFeaturesFilter.h.
virtual::itk::LightObject::Pointer itk::Statistics::ScalarImageToRunLengthFeaturesFilter< 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::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FastCalculationsOff | ( | ) | [virtual] |
virtual void itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FastCalculationsOn | ( | ) | [virtual] |
void itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FastCompute | ( | ) | [protected] |
void itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FullCompute | ( | ) | [protected] |
virtual void itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::GenerateData | ( | ) | [protected, virtual] |
This method causes the filter to generate its output.
Reimplemented from itk::ProcessObject.
virtual bool itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFastCalculations | ( | ) | const [virtual] |
virtual const FeatureValueVector ::Pointer& itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureMeans | ( | ) | const [virtual] |
Return the feature means and deviations.
const FeatureValueVectorDataObjectType* itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureMeansOutput | ( | ) | const |
virtual const FeatureValueVector ::Pointer& itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureStandardDeviations | ( | ) | const [virtual] |
Return the feature means and deviations.
const FeatureValueVectorDataObjectType* itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureStandardDeviationsOutput | ( | ) | const |
const ImageType* itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetInput | ( | ) | const |
const ImageType* itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetMaskImage | ( | ) | const |
virtual const char* itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::ProcessObject.
virtual const OffsetVector* itk::Statistics::ScalarImageToRunLengthFeaturesFilter< 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::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetRequestedFeatures | ( | ) | [virtual] |
Set the desired feature set. Optional, for default value see above.
virtual DataObjectPointer itk::Statistics::ScalarImageToRunLengthFeaturesFilter< 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::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::New | ( | ) | [static] |
standard New() method support
Reimplemented from itk::Object.
void itk::Statistics::ScalarImageToRunLengthFeaturesFilter< 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.
void itk::Statistics::ScalarImageToRunLengthFeaturesFilter< 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.
virtual void itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetFastCalculations | ( | bool | _arg | ) | [virtual] |
void itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetInput | ( | const ImageType * | ) |
void itk::Statistics::ScalarImageToRunLengthFeaturesFilter< 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::ScalarImageToRunLengthFeaturesFilter< 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::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetNumberOfBinsPerAxis | ( | unsigned | int | ) |
Set number of histogram bins along each axis. Optional; for default value see above.
virtual void itk::Statistics::ScalarImageToRunLengthFeaturesFilter< 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::ScalarImageToRunLengthFeaturesFilter< 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::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::SetRequestedFeatures | ( | const FeatureNameVector * | _arg | ) | [virtual] |
Set the desired feature set. Optional, for default value see above.
bool itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::m_FastCalculations [private] |
Definition at line 224 of file itkScalarImageToRunLengthFeaturesFilter.h.
FeatureValueVectorPointer itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::m_FeatureMeans [private] |
Definition at line 220 of file itkScalarImageToRunLengthFeaturesFilter.h.
FeatureValueVectorPointer itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::m_FeatureStandardDeviations [private] |
Definition at line 221 of file itkScalarImageToRunLengthFeaturesFilter.h.
OffsetVectorConstPointer itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::m_Offsets [private] |
Definition at line 223 of file itkScalarImageToRunLengthFeaturesFilter.h.
FeatureNameVectorConstPointer itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::m_RequestedFeatures [private] |
Definition at line 222 of file itkScalarImageToRunLengthFeaturesFilter.h.
RunLengthMatrixFilterType::Pointer itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::m_RunLengthMatrixGenerator [private] |
Definition at line 218 of file itkScalarImageToRunLengthFeaturesFilter.h.