#include <itkVectorGradientMagnitudeImageFilter.h>
Inheritance diagram for itk::VectorGradientMagnitudeImageFilter:
Public Types | |
typedef VectorGradientMagnitudeImageFilter | Self |
typedef ImageToImageFilter< TInputImage, TOutputImage > | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TOutputImage::PixelType | OutputPixelType |
typedef TInputImage::PixelType | InputPixelType |
typedef TInputImage | InputImageType |
typedef TOutputImage | OutputImageType |
typedef InputImageType::Pointer | InputImagePointer |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef TRealType | RealType |
typedef Vector< TRealType, ::itk::GetVectorDimension< InputPixelType >::VectorDimension > | RealVectorType |
typedef Image< RealVectorType, ::itk::GetImageDimension< TInputImage >::ImageDimension > | RealVectorImageType |
typedef ConstNeighborhoodIterator< RealVectorImageType > | ConstNeighborhoodIteratorType |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
Public Methods | |
virtual const char * | GetClassName () const |
itkStaticConstMacro (ImageDimension, unsigned int, TOutputImage::ImageDimension) | |
itkStaticConstMacro (VectorDimension, unsigned int, InputPixelType::Dimension) | |
virtual void | GenerateInputRequestedRegion () throw (InvalidRequestedRegionError) |
void | SetUseImageSpacingOn () |
void | SetUseImageSpacingOff () |
void | SetUseImageSpacing (bool) |
virtual bool | GetUseImageSpacing () |
void | SetDerivativeWeights (TRealType data[]) |
virtual const TRealType * | GetDerivativeWeights () const |
virtual void | SetComponentWeights (TRealType data[]) |
virtual const TRealType * | GetComponentWeights () const |
virtual void | SetUsePrincipleComponents (bool _arg) |
virtual bool | GetUsePrincipleComponents () |
void | SetUsePrincipleComponentsOn () |
void | SetUsePrincipleComponentsOff () |
Static Public Methods | |
Pointer | New () |
Protected Methods | |
VectorGradientMagnitudeImageFilter () | |
virtual | ~VectorGradientMagnitudeImageFilter () |
void | BeforeThreadedGenerateData () |
void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, int threadId) |
void | PrintSelf (std::ostream &os, Indent indent) const |
TRealType | NonPCEvaluateAtNeighborhood (const ConstNeighborhoodIteratorType &it) const |
TRealType | EvaluateAtNeighborhood (const ConstNeighborhoodIteratorType &it) const |
Protected Attributes | |
TRealType | m_DerivativeWeights [itk::GetImageDimension< TInputImage >::ImageDimension] |
TRealType | m_ComponentWeights [itk::GetVectorDimension< InputPixelType >::VectorDimension] |
The second mode is computationally much faster than the first and has the advantage that it is automatically multi-threaded (some vnl functions used in the first mode are not thread-safe). The first mode, however, tends to give intuitively better results with less (or no) parameter tuning.
The third template parameter is the output image type. The third parameter will be automatically constructed from the first and second parameters, so it is not necessary (or advisable) to set this parameter explicitly. Given an M-channel input image with dimensionality N, and a numerical type specified as TRealType, the output image will be of type itk::Image<itk::Vector<TRealType, M>, N>.
Weights can be applied to the derivatives directly using the SetDerivativeWeights method. Note that if UseImageSpacing is set to TRUE (ON), then these weights will be overridden by weights derived from the image spacing when the filter is updated. The argument to this method is a C array of TRealValue type.
If using the second calculation mode (SetUsePrincipleComponentsOff), weights can be applied to each vector component of the image when the component derivative values are summed during computation. Specify these weights using the SetComponentWeights method. The argument to this method is a C array of TRealValue type.
Definition at line 128 of file itkVectorGradientMagnitudeImageFilter.h.
|
Type of the iterator that will be used to move through the image. Also the type which will be passed to the evaluate function Definition at line 171 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 136 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 152 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Image typedef support Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 150 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Definition at line 147 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Reimplemented from itk::ImageSource< TOutputImage >. Definition at line 153 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Superclass typedefs. Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 174 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Some convenient typedefs. Reimplemented from itk::ImageSource< TOutputImage >. Definition at line 151 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Extract some information from the image types. Dimensionality of the two images is assumed to be the same. Definition at line 146 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 135 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Define the data type and the vector of data type used in calculations. Definition at line 164 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Definition at line 166 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Definition at line 165 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Standard class typedefs. Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 133 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. Definition at line 134 of file itkVectorGradientMagnitudeImageFilter.h. |
|
|
|
Definition at line 236 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Do any necessary casting/copying of the input data. Input pixel types whose value types are not real number types must be cast to real number types. Reimplemented from itk::ImageSource< TOutputImage >. |
|
Definition at line 280 of file itkVectorGradientMagnitudeImageFilter.h. |
|
VectorGradientMagnitudeImageFilter needs a larger input requested region than the output requested region (larger by the kernel size to calculate derivatives). As such, VectorGradientMagnitudeImageFilter needs to provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. |
|
Run-time type information (and related methods) Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >. |
|
Set/Get the array of weightings for the different components of the vector. Default values are 1.0. When UsePrincipleComponents = true, then these weights are not used |
|
Directly Set/Get the array of weights used in the gradient calculations. Note that calling UseImageSpacingOn will clobber these values. |
|
Set/Get whether or not the filter will use the spacing of the input image in its calculations |
|
Set/Get principle components calculation mode. When this is set to TRUE/ON, the gradient calculation will involve a priniciple component analysis of the partial derivatives of the color components. When this value is set to FALSE/OFF, the calculation is done as a square root of weighted sum of the derivatives squared. Default is UsePrincipleComponents = true. |
|
Length of the vector pixel type of the input image. |
|
The dimensionality of the input and output images. |
|
Method for creation through the object factory. Reimplemented from itk::Object. |
|
Definition at line 259 of file itkVectorGradientMagnitudeImageFilter.h. |
|
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::ImageToImageFilter< TInputImage, TOutputImage >. |
|
Set/Get the array of weightings for the different components of the vector. Default values are 1.0. When UsePrincipleComponents = true, then these weights are not used |
|
Directly Set/Get the array of weights used in the gradient calculations. Note that calling UseImageSpacingOn will clobber these values. |
|
Set/Get whether or not the filter will use the spacing of the input image in its calculations |
|
Reset the derivative weights to ignore image spacing. Use this option if you want to calculate the gradient in the image space. Default is ImageSpacingOff. Definition at line 195 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Set the derivative weights according to the spacing of the input image (1/spacing). Use this option if you want to calculate the gradient in the space in which the data was acquired. Definition at line 189 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Set/Get principle components calculation mode. When this is set to TRUE/ON, the gradient calculation will involve a priniciple component analysis of the partial derivatives of the color components. When this value is set to FALSE/OFF, the calculation is done as a square root of weighted sum of the derivatives squared. Default is UsePrincipleComponents = true. |
|
Set/Get principle components calculation mode. When this is set to TRUE/ON, the gradient calculation will involve a priniciple component analysis of the partial derivatives of the color components. When this value is set to FALSE/OFF, the calculation is done as a square root of weighted sum of the derivatives squared. Default is UsePrincipleComponents = true. Definition at line 228 of file itkVectorGradientMagnitudeImageFilter.h. |
|
Set/Get principle components calculation mode. When this is set to TRUE/ON, the gradient calculation will involve a priniciple component analysis of the partial derivatives of the color components. When this value is set to FALSE/OFF, the calculation is done as a square root of weighted sum of the derivatives squared. Default is UsePrincipleComponents = true. Definition at line 224 of file itkVectorGradientMagnitudeImageFilter.h. |
|
VectorGradientMagnitudeImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a ThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling ThreadedGenerateData(). ThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"
Reimplemented from itk::ImageSource< TOutputImage >. |
|
If UsePrincipleComponents = off, then these weights are used to scale vector component values when they are combined to produce a scalar. Definition at line 319 of file itkVectorGradientMagnitudeImageFilter.h. |
|
The weights used to scale derivatives during processing Definition at line 315 of file itkVectorGradientMagnitudeImageFilter.h. |