ITK
4.4.0
Insight Segmentation and Registration Toolkit
|
#include <itkGradientRecursiveGaussianImageFilter.h>
Computes the gradient of an image by convolution with the first derivative of a Gaussian.
This filter is implemented using the recursive gaussian filters.
This filter supports both scalar and vector pixel types within the input image, including VectorImage type.
Definition at line 56 of file itkGradientRecursiveGaussianImageFilter.h.
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | ImageDimension = TInputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Private Member Functions | |
GradientRecursiveGaussianImageFilter (const Self &) | |
void | operator= (const Self &) |
template<class TValueType > | |
void | TransformOutputPixel (ImageRegionIterator< VectorImage< TValueType, ImageDimension > > &it) |
template<class T > | |
void | TransformOutputPixel (ImageRegionIterator< T > &it) |
template<template< class, unsigned int > class P, class T , unsigned int N> | |
void | TransformOutputPixel (ImageRegionIterator< Image< P< T, N >, N > > &it) |
Private Attributes | |
DerivativeFilterPointer | m_DerivativeFilter |
OutputImageAdaptorPointer | m_ImageAdaptor |
bool | m_NormalizeAcrossScale |
std::vector < GaussianFilterPointer > | m_SmoothingFilters |
bool | m_UseImageDirection |
Additional Inherited Members | |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(OutputImageDimension), itkGetStaticConstMacro(InputImageDimension) > | InputToOutputRegionCopierType |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) > | OutputToInputRegionCopierType |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_TYPE | ThreaderCallback (void *arg) |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
typedef SmartPointer< const Self > itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::ConstPointer |
Definition at line 64 of file itkGradientRecursiveGaussianImageFilter.h.
typedef CovariantVector< OutputComponentType, ImageDimension > itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::CovariantVectorType |
Definition at line 127 of file itkGradientRecursiveGaussianImageFilter.h.
typedef DerivativeFilterType::Pointer itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::DerivativeFilterPointer |
Pointer to a derivative filter.
Definition at line 117 of file itkGradientRecursiveGaussianImageFilter.h.
typedef RecursiveGaussianImageFilter< InputImageType, RealImageType > itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::DerivativeFilterType |
Derivative filter type, it will be the first in the pipeline
Definition at line 111 of file itkGradientRecursiveGaussianImageFilter.h.
typedef GaussianFilterType::Pointer itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GaussianFilterPointer |
Pointer to a gaussian filter.
Definition at line 114 of file itkGradientRecursiveGaussianImageFilter.h.
typedef RecursiveGaussianImageFilter< RealImageType, RealImageType > itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GaussianFilterType |
Smoothing filter type
Definition at line 105 of file itkGradientRecursiveGaussianImageFilter.h.
typedef CovariantVector<ScalarRealType, ImageDimension > itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GradientVectorType |
Gradient vector typedef
Definition at line 83 of file itkGradientRecursiveGaussianImageFilter.h.
typedef TInputImage itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::InputImageType |
Pixel Type of the input image. May be scalar or vector.
Definition at line 67 of file itkGradientRecursiveGaussianImageFilter.h.
typedef NumericTraits< RealType >::FloatType itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::InternalRealType |
Define the image type for internal computations RealType is usually 'double' in NumericTraits. Here we prefer float in order to save memory.
Definition at line 75 of file itkGradientRecursiveGaussianImageFilter.h.
typedef NumericTraits< InternalRealType >::ValueType itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::InternalScalarRealType |
Definition at line 76 of file itkGradientRecursiveGaussianImageFilter.h.
typedef NumericTraits< OutputPixelType >::ValueType itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputComponentType |
Definition at line 125 of file itkGradientRecursiveGaussianImageFilter.h.
typedef OutputImageAdaptorType::Pointer itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputImageAdaptorPointer |
Definition at line 99 of file itkGradientRecursiveGaussianImageFilter.h.
typedef NthElementImageAdaptor< TOutputImage, InternalScalarRealType > itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputImageAdaptorType |
Output Image Nth Element Adaptor This adaptor allows to use conventional scalar smoothing filters to compute each one of the components of the gradient image pixels.
Definition at line 97 of file itkGradientRecursiveGaussianImageFilter.h.
typedef TOutputImage::Pointer itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputImagePointer |
Pointer to the Output Image
Definition at line 120 of file itkGradientRecursiveGaussianImageFilter.h.
typedef TOutputImage itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputImageType |
Type of the output Image
Definition at line 123 of file itkGradientRecursiveGaussianImageFilter.h.
typedef OutputImageType::PixelType itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputPixelType |
Definition at line 124 of file itkGradientRecursiveGaussianImageFilter.h.
typedef TInputImage::PixelType itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::PixelType |
Definition at line 68 of file itkGradientRecursiveGaussianImageFilter.h.
typedef SmartPointer< Self > itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::Pointer |
Definition at line 63 of file itkGradientRecursiveGaussianImageFilter.h.
typedef Image< InternalRealType, itkGetStaticConstMacro(ImageDimension) > itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::RealImageType |
Define the image type for internal computations RealType is usually 'double' in NumericTraits. Here we prefer float in order to save memory.
Definition at line 89 of file itkGradientRecursiveGaussianImageFilter.h.
typedef NumericTraits< PixelType >::RealType itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::RealType |
Definition at line 69 of file itkGradientRecursiveGaussianImageFilter.h.
typedef NumericTraits< PixelType >::ScalarRealType itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::ScalarRealType |
Definition at line 70 of file itkGradientRecursiveGaussianImageFilter.h.
typedef GradientRecursiveGaussianImageFilter itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::Self |
Standard class typedefs.
Definition at line 61 of file itkGradientRecursiveGaussianImageFilter.h.
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::Superclass |
Definition at line 62 of file itkGradientRecursiveGaussianImageFilter.h.
|
protected |
End concept checking
|
inlineprotectedvirtual |
Definition at line 181 of file itkGradientRecursiveGaussianImageFilter.h.
|
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.
|
protectedvirtual |
Give the process object a chance to indictate that it will produce more output than it was requested to produce. For example, many imaging filters must compute the entire output at once or can only produce output in complete slices. Such filters cannot handle smaller requested regions. These filters must provide an implementation of this method, setting the output requested region to the size they will produce. By default, a process object does not modify the size of the output requested region.
Reimplemented from itk::ProcessObject.
|
protectedvirtual |
Generate Data
Reimplemented from itk::ImageSource< TOutputImage >.
|
virtual |
GradientRecursiveGaussianImageFilter needs all of the input to produce an output. Therefore, GradientRecursiveGaussianImageFilter needs to provide an implementation for GenerateInputRequestedRegion in order to inform the pipeline execution model.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
protectedvirtual |
Generate the information describing the output data. The default implementation of this method will copy information from the input to the output. A filter may override this method if its output will have different information than its input. For instance, a filter that shrinks an image will need to provide an implementation for this method that changes the spacing of the pixels. Such filters should call their superclass' implementation of this method prior to changing the information values they need (i.e. GenerateOutputInformation() should call Superclass::GenerateOutputInformation() prior to changing the information.
Reimplemented from itk::ProcessObject.
|
virtual |
Runtime information support.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Define which normalization factor will be used for the Gaussian
RealType itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GetSigma | ( | ) | const |
Set Sigma value. Sigma is measured in the units of image spacing.
|
virtual |
The UseImageDirection flag determines whether the gradients are computed with respect to the image grid or with respect to the physical space. When this flag is ON the gradients are computed with respect to the coodinate system of physical space. The difference is whether we take into account the image Direction or not. The flag ON will take into account the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is OFF. The default value of this flag is On.
|
static |
Method for creation through the object factory.
|
private |
|
protectedvirtual |
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 >.
void itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::SetNormalizeAcrossScale | ( | bool | normalizeInScaleSpace | ) |
Define which normalization factor will be used for the Gaussian
void itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::SetSigma | ( | ScalarRealType | sigma | ) |
Set Sigma value. Sigma is measured in the units of image spacing.
|
virtual |
The UseImageDirection flag determines whether the gradients are computed with respect to the image grid or with respect to the physical space. When this flag is ON the gradients are computed with respect to the coodinate system of physical space. The difference is whether we take into account the image Direction or not. The flag ON will take into account the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is OFF. The default value of this flag is On.
|
inlineprivate |
Definition at line 195 of file itkGradientRecursiveGaussianImageFilter.h.
|
inlineprivate |
Definition at line 206 of file itkGradientRecursiveGaussianImageFilter.h.
References itk::ImageConstIterator< TImage >::Get(), itk::ImageConstIterator< TImage >::GetImage(), itk::NumericTraits< T >::GetLength(), itk::DefaultConvertPixelTraits< PixelType >::GetNthComponent(), itk::ImageRegionIterator< TImage >::Set(), and itk::DefaultConvertPixelTraits< PixelType >::SetNthComponent().
|
inlineprivate |
Definition at line 232 of file itkGradientRecursiveGaussianImageFilter.h.
itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::HasNumericTraits< PixelType > | ) |
Begin concept checking This class requires InputHasNumericTraitsCheck in the form of ( Concept::HasNumericTraits< PixelType > )
|
virtual |
The UseImageDirection flag determines whether the gradients are computed with respect to the image grid or with respect to the physical space. When this flag is ON the gradients are computed with respect to the coodinate system of physical space. The difference is whether we take into account the image Direction or not. The flag ON will take into account the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is OFF. The default value of this flag is On.
|
virtual |
The UseImageDirection flag determines whether the gradients are computed with respect to the image grid or with respect to the physical space. When this flag is ON the gradients are computed with respect to the coodinate system of physical space. The difference is whether we take into account the image Direction or not. The flag ON will take into account the image direction and will result in an extra matrix multiplication compared to the amount of computation performed when the flag is OFF. The default value of this flag is On.
|
static |
Image dimension.
Definition at line 80 of file itkGradientRecursiveGaussianImageFilter.h.
|
private |
Definition at line 247 of file itkGradientRecursiveGaussianImageFilter.h.
|
private |
Definition at line 248 of file itkGradientRecursiveGaussianImageFilter.h.
|
private |
Normalize the image across scale space
Definition at line 251 of file itkGradientRecursiveGaussianImageFilter.h.
|
private |
Definition at line 246 of file itkGradientRecursiveGaussianImageFilter.h.
|
private |
Take into account image orientation when computing the Gradient
Definition at line 254 of file itkGradientRecursiveGaussianImageFilter.h.