ITK
5.0.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 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 () |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = TInputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Private Member Functions | |
template<typename TValue > | |
void | TransformOutputPixel (ImageRegionIterator< VectorImage< TValue, ImageDimension > > &it) |
template<typename T > | |
void | TransformOutputPixel (ImageRegionIterator< T > &it) |
template<template< typename, 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 |
SigmaArrayType | m_Sigma |
std::vector < GaussianFilterPointer > | m_SmoothingFilters |
bool | m_UseImageDirection |
Additional Inherited Members | |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
using | InputToOutputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::OutputImageDimension, Self::InputImageDimension > |
using | OutputToInputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::InputImageDimension, Self::OutputImageDimension > |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
Protected Attributes inherited from itk::ImageSource< TOutputImage > | |
bool | m_DynamicMultiThreading |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount |
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer< const Self > |
Definition at line 66 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::CovariantVectorType = CovariantVector< OutputComponentType, ImageDimension > |
Definition at line 128 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::DerivativeFilterPointer = typename DerivativeFilterType::Pointer |
Pointer to a derivative filter.
Definition at line 118 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::DerivativeFilterType = RecursiveGaussianImageFilter< InputImageType, RealImageType > |
Derivative filter type, it will be the first in the pipeline
Definition at line 112 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GaussianFilterPointer = typename GaussianFilterType::Pointer |
Pointer to a gaussian filter.
Definition at line 115 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GaussianFilterType = RecursiveGaussianImageFilter< RealImageType, RealImageType > |
Smoothing filter type
Definition at line 108 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GradientVectorType = CovariantVector<ScalarRealType, ImageDimension > |
Gradient vector type alias
Definition at line 84 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::InputImageType = TInputImage |
Pixel Type of the input image. May be scalar or vector.
Definition at line 69 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::InternalRealType = typename NumericTraits< RealType >::FloatType |
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 77 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::InternalScalarRealType = typename NumericTraits< InternalRealType >::ValueType |
Definition at line 78 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputComponentType = typename NumericTraits< OutputPixelType >::ValueType |
Definition at line 126 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputImageAdaptorPointer = typename OutputImageAdaptorType::Pointer |
Definition at line 100 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputImageAdaptorType = NthElementImageAdaptor< TOutputImage, InternalScalarRealType > |
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 98 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputImagePointer = typename TOutputImage::Pointer |
Pointer to the Output Image
Definition at line 121 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputImageType = TOutputImage |
Type of the output Image
Definition at line 124 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputPixelType = typename OutputImageType::PixelType |
Definition at line 125 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::PixelType = typename TInputImage::PixelType |
Definition at line 70 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::Pointer = SmartPointer< Self > |
Definition at line 65 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::RealImageType = Image< InternalRealType, Self::ImageDimension > |
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 90 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::RealType = typename NumericTraits< PixelType >::RealType |
Definition at line 71 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::ScalarRealType = typename NumericTraits< PixelType >::ScalarRealType |
Definition at line 72 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::Self = GradientRecursiveGaussianImageFilter |
Standard class type aliases.
Definition at line 63 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::SigmaArrayType = FixedArray< ScalarRealType, Self::ImageDimension > |
Define the type for the sigma array
Definition at line 104 of file itkGradientRecursiveGaussianImageFilter.h.
using itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::Superclass = ImageToImageFilter< TInputImage, TOutputImage > |
Definition at line 64 of file itkGradientRecursiveGaussianImageFilter.h.
|
protected |
|
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.
|
overrideprotectedvirtual |
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.
|
overrideprotectedvirtual |
Generate Data
Reimplemented from itk::ImageSource< TOutputImage >.
|
overridevirtual |
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 >.
|
overrideprotectedvirtual |
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
ScalarRealType itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GetSigma | ( | ) | const |
SigmaArrayType itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GetSigmaArray | ( | ) | const |
|
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 coordinate 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.
|
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::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.
void itk::GradientRecursiveGaussianImageFilter< TInputImage, TOutputImage >::SetSigmaArray | ( | const SigmaArrayType & | sigmas | ) |
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 coordinate 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 198 of file itkGradientRecursiveGaussianImageFilter.h.
|
inlineprivate |
Definition at line 209 of file itkGradientRecursiveGaussianImageFilter.h.
References itk::ImageConstIterator< TImage >::Get(), itk::ImageConstIterator< TImage >::GetImage(), itk::DefaultConvertPixelTraits< PixelType >::GetNthComponent(), itk::ImageRegionIterator< TImage >::Set(), and itk::DefaultConvertPixelTraits< PixelType >::SetNthComponent().
|
inlineprivate |
Definition at line 235 of file itkGradientRecursiveGaussianImageFilter.h.
|
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 coordinate 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 coordinate 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 81 of file itkGradientRecursiveGaussianImageFilter.h.
|
private |
Definition at line 244 of file itkGradientRecursiveGaussianImageFilter.h.
|
private |
Definition at line 245 of file itkGradientRecursiveGaussianImageFilter.h.
|
private |
Normalize the image across scale space
Definition at line 248 of file itkGradientRecursiveGaussianImageFilter.h.
|
private |
Standard deviation of the gaussian
Definition at line 254 of file itkGradientRecursiveGaussianImageFilter.h.
|
private |
Definition at line 243 of file itkGradientRecursiveGaussianImageFilter.h.
|
private |
Take into account image orientation when computing the Gradient
Definition at line 251 of file itkGradientRecursiveGaussianImageFilter.h.