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

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

#include <vtkvmtkRecursiveGaussian2DImageFilter.h>

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

Public Types

typedef vtkSimpleImageToImageFilter Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkvmtkRecursiveGaussian2DImageFilter * 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 vtkvmtkRecursiveGaussian2DImageFilter * New ()
static int IsTypeOf (const char *type)
static vtkvmtkRecursiveGaussian2DImageFilter * SafeDownCast (vtkObjectBase *o)

Protected Member Functions

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

Detailed Description

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

vtkvmtkRecursiveGaussian2DImageFilter smooths a 2D 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 2D float itk::Image, runs itk::RecursiveGaussianImageFilter, and converts the result back to vtkImageData.

See also
vtkvmtkRecursiveGaussianImageFilter

Definition at line 45 of file vtkvmtkRecursiveGaussian2DImageFilter.h.

Member Typedef Documentation

◆ Superclass

typedef vtkSimpleImageToImageFilter vtkvmtkRecursiveGaussian2DImageFilter::Superclass

Definition at line 49 of file vtkvmtkRecursiveGaussian2DImageFilter.h.

Constructor & Destructor Documentation

◆ vtkvmtkRecursiveGaussian2DImageFilter()

vtkvmtkRecursiveGaussian2DImageFilter::vtkvmtkRecursiveGaussian2DImageFilter ( )
protected

Definition at line 35 of file vtkvmtkRecursiveGaussian2DImageFilter.cxx.

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

◆ ~vtkvmtkRecursiveGaussian2DImageFilter()

vtkvmtkRecursiveGaussian2DImageFilter::~vtkvmtkRecursiveGaussian2DImageFilter ( )
inlineprotected

Definition at line 73 of file vtkvmtkRecursiveGaussian2DImageFilter.h.

73{};

Member Function Documentation

◆ New()

vtkvmtkRecursiveGaussian2DImageFilter * vtkvmtkRecursiveGaussian2DImageFilter::New ( )
static

◆ IsTypeOf()

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

◆ IsA()

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

◆ SafeDownCast()

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

◆ NewInstanceInternal()

virtual vtkObjectBase * vtkvmtkRecursiveGaussian2DImageFilter::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkvmtkRecursiveGaussian2DImageFilter * vtkvmtkRecursiveGaussian2DImageFilter::NewInstance ( ) const

◆ GetSigma()

virtual double vtkvmtkRecursiveGaussian2DImageFilter::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 vtkvmtkRecursiveGaussian2DImageFilter::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 vtkvmtkRecursiveGaussian2DImageFilter::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 vtkvmtkRecursiveGaussian2DImageFilter::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 vtkvmtkRecursiveGaussian2DImageFilter::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 vtkvmtkRecursiveGaussian2DImageFilter::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 vtkvmtkRecursiveGaussian2DImageFilter::SimpleExecute ( vtkImageData * input,
vtkImageData * output )
overrideprotectedvirtual

Definition at line 41 of file vtkvmtkRecursiveGaussian2DImageFilter.cxx.

42{
43 typedef float PixelType;
44 const int Dimension = 2;
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: