#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.
For algorithmic details see [39], [24] and [29].
IJ article: https://doi.org/10.54294/ex0itu
Definition at line 86 of file itkScalarImageToRunLengthFeaturesFilter.h.
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
Protected Types | |
using | DataObjectPointerArraySizeType = ProcessObject::DataObjectPointerArraySizeType |
Additional Inherited Members | |
![]() | |
template<typename TSourceObject> | |
static void | MakeRequiredOutputs (TSourceObject &sourceObject, const DataObjectPointerArraySizeType numberOfRequiredOutputs) |
static constexpr float | progressFixedToFloat (uint32_t fixed) |
static uint32_t | progressFloatToFixed (float f) |
![]() | |
TimeStamp | m_OutputInformationMTime {} |
bool | m_Updating {} |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::ConstPointer = SmartPointer<const Self> |
Definition at line 93 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::DataObjectPointer = DataObject::Pointer |
Smart Pointer type to a DataObject.
Definition at line 127 of file itkScalarImageToRunLengthFeaturesFilter.h.
|
protected |
Make a DataObject to be used for output output.
Definition at line 214 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVector = VectorContainer<unsigned char, RunLengthFeatureName> |
Definition at line 120 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVectorConstPointer = typename FeatureNameVector::ConstPointer |
Definition at line 122 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureNameVectorPointer = typename FeatureNameVector::Pointer |
Definition at line 121 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVector = VectorContainer<unsigned char, double> |
Definition at line 123 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVectorDataObjectType = DataObjectDecorator<FeatureValueVector> |
Type of DataObjects used for scalar outputs
Definition at line 130 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FeatureValueVectorPointer = typename FeatureValueVector::Pointer |
Definition at line 124 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::FrequencyContainerType = THistogramFrequencyContainer |
Definition at line 101 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::HistogramType = typename RunLengthMatrixFilterType::HistogramType |
Definition at line 113 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::ImagePointer = typename ImageType::Pointer |
Definition at line 103 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::ImageType = TImageType |
Definition at line 102 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetType = typename ImageType::OffsetType |
Definition at line 106 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVector = VectorContainer<unsigned char, OffsetType> |
Definition at line 107 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVectorConstPointer = typename OffsetVector::ConstPointer |
Definition at line 109 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::OffsetVectorPointer = typename OffsetVector::Pointer |
Definition at line 108 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::PixelType = typename ImageType::PixelType |
Definition at line 105 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::Pointer = SmartPointer<Self> |
Definition at line 92 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::RunLengthFeatureName = uint8_t |
Definition at line 119 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::RunLengthFeaturesFilterType = HistogramToRunLengthFeaturesFilter<HistogramType> |
Definition at line 115 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::RunLengthMatrixFilterType = ScalarImageToRunLengthMatrixFilter<ImageType, FrequencyContainerType> |
Definition at line 111 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::Self = ScalarImageToRunLengthFeaturesFilter |
Standard type alias
Definition at line 90 of file itkScalarImageToRunLengthFeaturesFilter.h.
using itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::Superclass = ProcessObject |
Definition at line 91 of file itkScalarImageToRunLengthFeaturesFilter.h.
|
protected |
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
|
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 |
|
virtual |
|
protected |
|
protected |
|
overrideprotectedvirtual |
This method causes the filter to generate its output.
Reimplemented from itk::ProcessObject.
|
virtual |
|
virtual |
Return the feature means and deviations.
const FeatureValueVectorDataObjectType * itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureMeansOutput | ( | ) | const |
|
virtual |
Return the feature means and deviations.
const FeatureValueVectorDataObjectType * itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetFeatureStandardDeviationsOutput | ( | ) | const |
References itk::ProcessObject::SetInput().
const ImageType * itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetInput | ( | ) | const |
const ImageType * itk::Statistics::ScalarImageToRunLengthFeaturesFilter< TImageType, THistogramFrequencyContainer >::GetMaskImage | ( | ) | const |
|
overridevirtual |
Reimplemented from itk::ProcessObject.
References ScalarImageToRunLengthFeaturesFilter().
|
virtual |
Set the offsets over which the co-occurrence pairs will be computed. Optional; for default value see above.
|
virtual |
Set the desired feature set. Optional, for default value see above.
|
protectedvirtual |
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.
|
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
|
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::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 |
|
virtual |
Connects the input image for which the features are going to be computed
Reimplemented from itk::ProcessObject.
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 |
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 |
Set the desired feature set. Optional, for default value see above.
|
private |
Definition at line 225 of file itkScalarImageToRunLengthFeaturesFilter.h.
|
private |
Definition at line 221 of file itkScalarImageToRunLengthFeaturesFilter.h.
|
private |
Definition at line 222 of file itkScalarImageToRunLengthFeaturesFilter.h.
|
private |
Definition at line 224 of file itkScalarImageToRunLengthFeaturesFilter.h.
|
private |
Definition at line 223 of file itkScalarImageToRunLengthFeaturesFilter.h.
|
private |
Definition at line 219 of file itkScalarImageToRunLengthFeaturesFilter.h.