VMTK
Loading...
Searching...
No Matches
vtkvmtkRecursiveGaussianImageFilter Class Reference

Wraps itk::RecursiveGaussianImageFilter, applied to a 3D image. More...

#include <vtkvmtkRecursiveGaussianImageFilter.h>

Inheritance diagram for vtkvmtkRecursiveGaussianImageFilter:
[legend]
Collaboration diagram for vtkvmtkRecursiveGaussianImageFilter:
[legend]

Public Types

typedef vtkSimpleImageToImageFilter Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkvmtkRecursiveGaussianImageFilter * NewInstance () const
virtual double GetSigma ()
virtual void SetSigma (double)
virtual int GetNormalizeAcrossScale ()
virtual void SetNormalizeAcrossScale (int)
virtual void NormalizeAcrossScaleOn ()
virtual void NormalizeAcrossScaleOff ()

Static Public Member Functions

static vtkvmtkRecursiveGaussianImageFilter * New ()
static int IsTypeOf (const char *type)
static vtkvmtkRecursiveGaussianImageFilter * SafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 vtkvmtkRecursiveGaussianImageFilter ()
 ~vtkvmtkRecursiveGaussianImageFilter ()
virtual void SimpleExecute (vtkImageData *input, vtkImageData *output) override

Detailed Description

Wraps itk::RecursiveGaussianImageFilter, applied to a 3D image.

vtkvmtkRecursiveGaussianImageFilter smooths a 3D input image with a Gaussian kernel of standard deviation Sigma, using ITK's IIR (recursive) approximation, which is efficient for large Sigma values compared to a direct convolution. Note that itk::RecursiveGaussianImageFilter smooths along a single direction (the default, direction 0 / X); this wrapper does not expose the direction, so it only blurs along the first image axis. Like the other ITK wrappers in this module, it is a thin vtkSimpleImageToImageFilter: SimpleExecute() converts the VTK input to a 3D float itk::Image, runs itk::RecursiveGaussianImageFilter, and converts the result back to vtkImageData.

See also
vtkvmtkRecursiveGaussian2DImageFilter

Definition at line 45 of file vtkvmtkRecursiveGaussianImageFilter.h.

Member Typedef Documentation

◆ Superclass

typedef vtkSimpleImageToImageFilter vtkvmtkRecursiveGaussianImageFilter::Superclass

Definition at line 49 of file vtkvmtkRecursiveGaussianImageFilter.h.

Constructor & Destructor Documentation

◆ vtkvmtkRecursiveGaussianImageFilter()

vtkvmtkRecursiveGaussianImageFilter::vtkvmtkRecursiveGaussianImageFilter ( )
protected

Definition at line 35 of file vtkvmtkRecursiveGaussianImageFilter.cxx.

36{
37 this->Sigma = 1.0;
38 this->NormalizeAcrossScale = 0;
39}

◆ ~vtkvmtkRecursiveGaussianImageFilter()

vtkvmtkRecursiveGaussianImageFilter::~vtkvmtkRecursiveGaussianImageFilter ( )
inlineprotected

Definition at line 73 of file vtkvmtkRecursiveGaussianImageFilter.h.

73{};

Member Function Documentation

◆ New()

vtkvmtkRecursiveGaussianImageFilter * vtkvmtkRecursiveGaussianImageFilter::New ( )
static

◆ IsTypeOf()

int vtkvmtkRecursiveGaussianImageFilter::IsTypeOf ( const char * type)
static

◆ IsA()

virtual int vtkvmtkRecursiveGaussianImageFilter::IsA ( const char * type)
virtual

◆ SafeDownCast()

vtkvmtkRecursiveGaussianImageFilter * vtkvmtkRecursiveGaussianImageFilter::SafeDownCast ( vtkObjectBase * o)
static

◆ NewInstanceInternal()

virtual vtkObjectBase * vtkvmtkRecursiveGaussianImageFilter::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkvmtkRecursiveGaussianImageFilter * vtkvmtkRecursiveGaussianImageFilter::NewInstance ( ) const

◆ GetSigma()

virtual double vtkvmtkRecursiveGaussianImageFilter::GetSigma ( )
virtual

Set/get the standard deviation, in physical units, of the Gaussian smoothing kernel applied along the first image axis. Default: 1.0.

◆ SetSigma()

virtual void vtkvmtkRecursiveGaussianImageFilter::SetSigma ( double )
virtual

Set/get the standard deviation, in physical units, of the Gaussian smoothing kernel applied along the first image axis. Default: 1.0.

◆ GetNormalizeAcrossScale()

virtual int vtkvmtkRecursiveGaussianImageFilter::GetNormalizeAcrossScale ( )
virtual

Toggle normalization of the Gaussian kernel across scale (ITK's NormalizeAcrossScale option), which keeps the response comparable across different Sigma values, at the cost of no longer exactly preserving the input's DC (mean) value. Default: off.

◆ SetNormalizeAcrossScale()

virtual void vtkvmtkRecursiveGaussianImageFilter::SetNormalizeAcrossScale ( int )
virtual

Toggle normalization of the Gaussian kernel across scale (ITK's NormalizeAcrossScale option), which keeps the response comparable across different Sigma values, at the cost of no longer exactly preserving the input's DC (mean) value. Default: off.

◆ NormalizeAcrossScaleOn()

virtual void vtkvmtkRecursiveGaussianImageFilter::NormalizeAcrossScaleOn ( )
virtual

Toggle normalization of the Gaussian kernel across scale (ITK's NormalizeAcrossScale option), which keeps the response comparable across different Sigma values, at the cost of no longer exactly preserving the input's DC (mean) value. Default: off.

◆ NormalizeAcrossScaleOff()

virtual void vtkvmtkRecursiveGaussianImageFilter::NormalizeAcrossScaleOff ( )
virtual

Toggle normalization of the Gaussian kernel across scale (ITK's NormalizeAcrossScale option), which keeps the response comparable across different Sigma values, at the cost of no longer exactly preserving the input's DC (mean) value. Default: off.

◆ SimpleExecute()

void vtkvmtkRecursiveGaussianImageFilter::SimpleExecute ( vtkImageData * input,
vtkImageData * output )
overrideprotectedvirtual

Definition at line 41 of file vtkvmtkRecursiveGaussianImageFilter.cxx.

42{
43 typedef float PixelType;
44 const int Dimension = 3;
45 typedef itk::Image<PixelType, Dimension> ImageType;
46
47 ImageType::Pointer inImage = ImageType::New();
48
50
51 typedef itk::RecursiveGaussianImageFilter<ImageType,ImageType> GaussianFilterType;
52
53 GaussianFilterType::Pointer gaussianFilter = GaussianFilterType::New();
54 gaussianFilter->SetInput(inImage);
55 gaussianFilter->SetSigma(this->Sigma);
56 gaussianFilter->SetNormalizeAcrossScale(this->NormalizeAcrossScale);
57 gaussianFilter->Update();
58
59 ImageType::Pointer outputImage = gaussianFilter->GetOutput();
60
62}
static void ITKToVTKImage(typename TImage::Pointer input, vtkImageData *output)
static void VTKToITKImage(vtkImageData *input, typename TImage::Pointer output)

The documentation for this class was generated from the following files: