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

Wraps itk::GradientAnisotropicDiffusionImageFilter. More...

#include <vtkvmtkAnisotropicDiffusionImageFilter.h>

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

Public Types

typedef vtkSimpleImageToImageFilter Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkvmtkAnisotropicDiffusionImageFilter * NewInstance () const
virtual int GetNumberOfIterations ()
virtual void SetNumberOfIterations (int)
virtual double GetTimeStep ()
virtual void SetTimeStep (double)
virtual double GetConductance ()
virtual void SetConductance (double)

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

Wraps itk::GradientAnisotropicDiffusionImageFilter.

vtkvmtkAnisotropicDiffusionImageFilter runs ITK's gradient anisotropic diffusion on a scalar vtkImageData (2D or 3D, any of the usual integer/floating-point scalar types when ITK < 5; only float/double when ITK >= 5, since the ITK filter requires a floating-point pixel type). Diffusion smooths within homogeneous regions while preserving edges, controlled by the number of iterations, the time step of each iteration, and the conductance parameter of the underlying diffusion equation. This is one of the vessel-enhancement methods offered by the vmtkimagesmoothing pype script (its "anisotropic" Method).

See also
vtkvmtkVesselEnhancingDiffusionImageFilter, vtkvmtkVesselEnhancingDiffusion3DImageFilter

Definition at line 46 of file vtkvmtkAnisotropicDiffusionImageFilter.h.

Member Typedef Documentation

◆ Superclass

typedef vtkSimpleImageToImageFilter vtkvmtkAnisotropicDiffusionImageFilter::Superclass

Definition at line 50 of file vtkvmtkAnisotropicDiffusionImageFilter.h.

Constructor & Destructor Documentation

◆ vtkvmtkAnisotropicDiffusionImageFilter()

vtkvmtkAnisotropicDiffusionImageFilter::vtkvmtkAnisotropicDiffusionImageFilter ( )
protected

Definition at line 40 of file vtkvmtkAnisotropicDiffusionImageFilter.cxx.

41{
42 this->Conductance = 1.0;
43 this->TimeStep = 0.0625;
44 this->NumberOfIterations = 5;
45}

◆ ~vtkvmtkAnisotropicDiffusionImageFilter()

vtkvmtkAnisotropicDiffusionImageFilter::~vtkvmtkAnisotropicDiffusionImageFilter ( )
inlineprotected

Definition at line 85 of file vtkvmtkAnisotropicDiffusionImageFilter.h.

85{};

Member Function Documentation

◆ New()

vtkvmtkAnisotropicDiffusionImageFilter * vtkvmtkAnisotropicDiffusionImageFilter::New ( )
static

◆ IsTypeOf()

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

◆ IsA()

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

◆ SafeDownCast()

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

◆ NewInstanceInternal()

virtual vtkObjectBase * vtkvmtkAnisotropicDiffusionImageFilter::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkvmtkAnisotropicDiffusionImageFilter * vtkvmtkAnisotropicDiffusionImageFilter::NewInstance ( ) const

◆ GetNumberOfIterations()

virtual int vtkvmtkAnisotropicDiffusionImageFilter::GetNumberOfIterations ( )
virtual

Set/get the number of anisotropic diffusion iterations applied to the image. Default: 5.

◆ SetNumberOfIterations()

virtual void vtkvmtkAnisotropicDiffusionImageFilter::SetNumberOfIterations ( int )
virtual

Set/get the number of anisotropic diffusion iterations applied to the image. Default: 5.

◆ GetTimeStep()

virtual double vtkvmtkAnisotropicDiffusionImageFilter::GetTimeStep ( )
virtual

Set/get the time step of each diffusion iteration. Must be small enough relative to the image spacing and dimensionality to remain numerically stable (vmtkimagesmoothing computes a stable value automatically as pixel spacing / 2^(dimensionality+1) when its AutoCalculateTimeStep option is on). Default: 0.0625.

◆ SetTimeStep()

virtual void vtkvmtkAnisotropicDiffusionImageFilter::SetTimeStep ( double )
virtual

Set/get the time step of each diffusion iteration. Must be small enough relative to the image spacing and dimensionality to remain numerically stable (vmtkimagesmoothing computes a stable value automatically as pixel spacing / 2^(dimensionality+1) when its AutoCalculateTimeStep option is on). Default: 0.0625.

◆ GetConductance()

virtual double vtkvmtkAnisotropicDiffusionImageFilter::GetConductance ( )
virtual

Set/get the conductance parameter of the underlying gradient anisotropic diffusion equation, controlling the sensitivity of the diffusion to image gradients (lower values preserve sharper edges). Default: 1.0.

◆ SetConductance()

virtual void vtkvmtkAnisotropicDiffusionImageFilter::SetConductance ( double )
virtual

Set/get the conductance parameter of the underlying gradient anisotropic diffusion equation, controlling the sensitivity of the diffusion to image gradients (lower values preserve sharper edges). Default: 1.0.

◆ SimpleExecute()

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

Definition at line 210 of file vtkvmtkAnisotropicDiffusionImageFilter.cxx.

211{
212 int imageDimension = input->GetDataDimension();
213 int componentType = input->GetScalarType();
214
215 if( imageDimension == 2 )
216 {
217 FilterScalarImage< 2 >( input, output, componentType );
218 }
219 else if( imageDimension == 3 )
220 {
221 FilterScalarImage< 3 >(input, output, componentType );
222 }
223
224}

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