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

Wraps itk::VesselEnhancingDiffusionImageFilter. More...

#include <vtkvmtkVesselEnhancingDiffusionImageFilter.h>

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

Public Types

enum  { EQUISPACED , LOGARITHMIC }
typedef vtkSimpleImageToImageFilter Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkvmtkVesselEnhancingDiffusionImageFilter * NewInstance () const
void SetSigmaStepMethodToEquispaced ()
void SetSigmaStepMethodToLogarithmic ()
virtual double GetSigmaMin ()
virtual void SetSigmaMin (double)
virtual double GetSigmaMax ()
virtual void SetSigmaMax (double)
virtual int GetNumberOfSigmaSteps ()
virtual void SetNumberOfSigmaSteps (int)
virtual int GetSigmaStepMethod ()
virtual void SetSigmaStepMethod (int)
virtual double GetAlpha ()
virtual void SetAlpha (double)
virtual double GetBeta ()
virtual void SetBeta (double)
virtual double GetGamma ()
virtual void SetGamma (double)
virtual double GetC ()
virtual void SetC (double)
virtual int GetNumberOfIterations ()
virtual void SetNumberOfIterations (int)
virtual int GetNumberOfDiffusionSubIterations ()
virtual void SetNumberOfDiffusionSubIterations (int)
virtual double GetTimeStep ()
virtual void SetTimeStep (double)
virtual double GetEpsilon ()
virtual void SetEpsilon (double)
virtual double GetWStrength ()
virtual void SetWStrength (double)
virtual double GetSensitivity ()
virtual void SetSensitivity (double)

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

Wraps itk::VesselEnhancingDiffusionImageFilter.

A simpler, scalar (non-tensor) alternative to vtkvmtkVesselEnhancingDiffusion3DImageFilter: iteratively enhances tubular structures by combining, at each of NumberOfIterations outer iterations, a multiscale Hessian-based vesselness response (evaluated at NumberOfSigmaSteps scales between SigmaMin and SigmaMax, shaped by Alpha/Beta/Gamma/C) with NumberOfDiffusionSubIterations steps of conductance-weighted diffusion (TimeStep, Epsilon, WStrength, Sensitivity). This is the simpler "ved" vessel enhancement method offered by the vmtkimagevesselenhancement pype script, as opposed to the full tensor-based "vedm" method.

See also
vtkvmtkVesselEnhancingDiffusion3DImageFilter, vtkvmtkVesselnessMeasureImageFilter

Definition at line 44 of file vtkvmtkVesselEnhancingDiffusionImageFilter.h.

Member Typedef Documentation

◆ Superclass

typedef vtkSimpleImageToImageFilter vtkvmtkVesselEnhancingDiffusionImageFilter::Superclass

Definition at line 48 of file vtkvmtkVesselEnhancingDiffusionImageFilter.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Constructor & Destructor Documentation

◆ vtkvmtkVesselEnhancingDiffusionImageFilter()

vtkvmtkVesselEnhancingDiffusionImageFilter::vtkvmtkVesselEnhancingDiffusionImageFilter ( )
protected

Definition at line 37 of file vtkvmtkVesselEnhancingDiffusionImageFilter.cxx.

38{
39 this->SigmaMin = 1.0;
40 this->SigmaMax = 1.0;
41 this->NumberOfSigmaSteps = 1;
42 this->SigmaStepMethod = EQUISPACED;
43 this->NumberOfIterations = 1;
44 this->NumberOfDiffusionSubIterations = 1;
45 this->TimeStep = 0.01;
46 this->Epsilon = 1E-6;
47 this->WStrength = 1.0;
48 this->Sensitivity = 1.0;
49 this->Alpha = 1.0;
50 this->Beta = 1.0;
51 this->Gamma = 1.0;
52 this->C = 1.0;
53}

◆ ~vtkvmtkVesselEnhancingDiffusionImageFilter()

vtkvmtkVesselEnhancingDiffusionImageFilter::~vtkvmtkVesselEnhancingDiffusionImageFilter ( )
inlineprotected

Definition at line 204 of file vtkvmtkVesselEnhancingDiffusionImageFilter.h.

204{};

Member Function Documentation

◆ New()

vtkvmtkVesselEnhancingDiffusionImageFilter * vtkvmtkVesselEnhancingDiffusionImageFilter::New ( )
static

◆ IsTypeOf()

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

◆ IsA()

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

◆ SafeDownCast()

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

◆ NewInstanceInternal()

virtual vtkObjectBase * vtkvmtkVesselEnhancingDiffusionImageFilter::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkvmtkVesselEnhancingDiffusionImageFilter * vtkvmtkVesselEnhancingDiffusionImageFilter::NewInstance ( ) const

◆ GetSigmaMin()

virtual double vtkvmtkVesselEnhancingDiffusionImageFilter::GetSigmaMin ( )
virtual

Set/Get the smallest Gaussian scale (sigma) at which the Hessian-based vesselness driving the diffusion is evaluated, roughly corresponding to the radius of the smallest vessels to enhance. Default: 1.0.

◆ SetSigmaMin()

virtual void vtkvmtkVesselEnhancingDiffusionImageFilter::SetSigmaMin ( double )
virtual

Set/Get the smallest Gaussian scale (sigma) at which the Hessian-based vesselness driving the diffusion is evaluated, roughly corresponding to the radius of the smallest vessels to enhance. Default: 1.0.

◆ GetSigmaMax()

virtual double vtkvmtkVesselEnhancingDiffusionImageFilter::GetSigmaMax ( )
virtual

Set/Get the largest Gaussian scale (sigma) at which the Hessian-based vesselness is evaluated, roughly corresponding to the radius of the largest vessels to enhance. Default: 1.0.

◆ SetSigmaMax()

virtual void vtkvmtkVesselEnhancingDiffusionImageFilter::SetSigmaMax ( double )
virtual

Set/Get the largest Gaussian scale (sigma) at which the Hessian-based vesselness is evaluated, roughly corresponding to the radius of the largest vessels to enhance. Default: 1.0.

◆ GetNumberOfSigmaSteps()

virtual int vtkvmtkVesselEnhancingDiffusionImageFilter::GetNumberOfSigmaSteps ( )
virtual

Set/Get the number of scales sampled between SigmaMin and SigmaMax. Default: 1.

◆ SetNumberOfSigmaSteps()

virtual void vtkvmtkVesselEnhancingDiffusionImageFilter::SetNumberOfSigmaSteps ( int )
virtual

Set/Get the number of scales sampled between SigmaMin and SigmaMax. Default: 1.

◆ GetSigmaStepMethod()

virtual int vtkvmtkVesselEnhancingDiffusionImageFilter::GetSigmaStepMethod ( )
virtual

Set/Get how intermediate scales between SigmaMin and SigmaMax are spaced: EQUISPACED (default, linear spacing) or LOGARITHMIC (logarithmic spacing, more scales concentrated near SigmaMin). See also SetSigmaStepMethodToEquispaced / SetSigmaStepMethodToLogarithmic.

◆ SetSigmaStepMethod()

virtual void vtkvmtkVesselEnhancingDiffusionImageFilter::SetSigmaStepMethod ( int )
virtual

Set/Get how intermediate scales between SigmaMin and SigmaMax are spaced: EQUISPACED (default, linear spacing) or LOGARITHMIC (logarithmic spacing, more scales concentrated near SigmaMin). See also SetSigmaStepMethodToEquispaced / SetSigmaStepMethodToLogarithmic.

◆ SetSigmaStepMethodToEquispaced()

void vtkvmtkVesselEnhancingDiffusionImageFilter::SetSigmaStepMethodToEquispaced ( )
inline

Convenience method: set SigmaStepMethod to EQUISPACED (default).

Definition at line 90 of file vtkvmtkVesselEnhancingDiffusionImageFilter.h.

91 {
93 }

◆ SetSigmaStepMethodToLogarithmic()

void vtkvmtkVesselEnhancingDiffusionImageFilter::SetSigmaStepMethodToLogarithmic ( )
inline

Convenience method: set SigmaStepMethod to LOGARITHMIC.

Definition at line 98 of file vtkvmtkVesselEnhancingDiffusionImageFilter.h.

99 {
101 }

◆ GetAlpha()

virtual double vtkvmtkVesselEnhancingDiffusionImageFilter::GetAlpha ( )
virtual

Set/Get the vesselness sensitivity to the ratio between the two smallest Hessian eigenvalues (discriminates plate-like from line-like structures). Default: 1.0.

◆ SetAlpha()

virtual void vtkvmtkVesselEnhancingDiffusionImageFilter::SetAlpha ( double )
virtual

Set/Get the vesselness sensitivity to the ratio between the two smallest Hessian eigenvalues (discriminates plate-like from line-like structures). Default: 1.0.

◆ GetBeta()

virtual double vtkvmtkVesselEnhancingDiffusionImageFilter::GetBeta ( )
virtual

Set/Get the vesselness sensitivity to the ratio between the largest and the geometric mean of the two smallest Hessian eigenvalues (discriminates blob-like from line-like structures). Default: 1.0.

◆ SetBeta()

virtual void vtkvmtkVesselEnhancingDiffusionImageFilter::SetBeta ( double )
virtual

Set/Get the vesselness sensitivity to the ratio between the largest and the geometric mean of the two smallest Hessian eigenvalues (discriminates blob-like from line-like structures). Default: 1.0.

◆ GetGamma()

virtual double vtkvmtkVesselEnhancingDiffusionImageFilter::GetGamma ( )
virtual

Set/Get the vesselness sensitivity to the overall Hessian eigenvalue magnitude (discriminates structure from background noise). Default: 1.0.

◆ SetGamma()

virtual void vtkvmtkVesselEnhancingDiffusionImageFilter::SetGamma ( double )
virtual

Set/Get the vesselness sensitivity to the overall Hessian eigenvalue magnitude (discriminates structure from background noise). Default: 1.0.

◆ GetC()

virtual double vtkvmtkVesselEnhancingDiffusionImageFilter::GetC ( )
virtual

Set/Get the diffusion tensor construction parameter controlling how strongly the vesselness response suppresses diffusion across the vessel wall. Default: 1.0.

◆ SetC()

virtual void vtkvmtkVesselEnhancingDiffusionImageFilter::SetC ( double )
virtual

Set/Get the diffusion tensor construction parameter controlling how strongly the vesselness response suppresses diffusion across the vessel wall. Default: 1.0.

◆ GetNumberOfIterations()

virtual int vtkvmtkVesselEnhancingDiffusionImageFilter::GetNumberOfIterations ( )
virtual

Set/Get the number of outer iterations, each recomputing the multiscale vesselness response and then applying NumberOfDiffusionSubIterations diffusion steps. Default: 1.

◆ SetNumberOfIterations()

virtual void vtkvmtkVesselEnhancingDiffusionImageFilter::SetNumberOfIterations ( int )
virtual

Set/Get the number of outer iterations, each recomputing the multiscale vesselness response and then applying NumberOfDiffusionSubIterations diffusion steps. Default: 1.

◆ GetNumberOfDiffusionSubIterations()

virtual int vtkvmtkVesselEnhancingDiffusionImageFilter::GetNumberOfDiffusionSubIterations ( )
virtual

Set/Get the number of diffusion sub-steps performed per outer iteration, each of size TimeStep. Default: 1.

◆ SetNumberOfDiffusionSubIterations()

virtual void vtkvmtkVesselEnhancingDiffusionImageFilter::SetNumberOfDiffusionSubIterations ( int )
virtual

Set/Get the number of diffusion sub-steps performed per outer iteration, each of size TimeStep. Default: 1.

◆ GetTimeStep()

virtual double vtkvmtkVesselEnhancingDiffusionImageFilter::GetTimeStep ( )
virtual

Set/Get the time step size of each diffusion sub-iteration. Default: 0.01.

◆ SetTimeStep()

virtual void vtkvmtkVesselEnhancingDiffusionImageFilter::SetTimeStep ( double )
virtual

Set/Get the time step size of each diffusion sub-iteration. Default: 0.01.

◆ GetEpsilon()

virtual double vtkvmtkVesselEnhancingDiffusionImageFilter::GetEpsilon ( )
virtual

Set/Get a small numerical regularization constant used when evaluating the diffusion conductance to avoid division by zero. Default: 1E-6.

◆ SetEpsilon()

virtual void vtkvmtkVesselEnhancingDiffusionImageFilter::SetEpsilon ( double )
virtual

Set/Get a small numerical regularization constant used when evaluating the diffusion conductance to avoid division by zero. Default: 1E-6.

◆ GetWStrength()

virtual double vtkvmtkVesselEnhancingDiffusionImageFilter::GetWStrength ( )
virtual

Set/Get the strength of the diffusion conductance weighting. Default: 1.0.

◆ SetWStrength()

virtual void vtkvmtkVesselEnhancingDiffusionImageFilter::SetWStrength ( double )
virtual

Set/Get the strength of the diffusion conductance weighting. Default: 1.0.

◆ GetSensitivity()

virtual double vtkvmtkVesselEnhancingDiffusionImageFilter::GetSensitivity ( )
virtual

Set/Get the sensitivity of the diffusion conductance to the local vesselness response. Default: 1.0.

◆ SetSensitivity()

virtual void vtkvmtkVesselEnhancingDiffusionImageFilter::SetSensitivity ( double )
virtual

Set/Get the sensitivity of the diffusion conductance to the local vesselness response. Default: 1.0.

◆ SimpleExecute()

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

Definition at line 55 of file vtkvmtkVesselEnhancingDiffusionImageFilter.cxx.

56{
57 typedef itk::Image<float,3> ImageType;
58
59 ImageType::Pointer inImage = ImageType::New();
60
62
63 typedef itk::AnisotropicDiffusionVesselEnhancementImageFilter<ImageType, ImageType> AnisotropicDiffusionFilterType;
64 typedef AnisotropicDiffusionFilterType::MultiScaleVesselnessFilterType MultiScaleFilterType;
65 typedef AnisotropicDiffusionFilterType::VesselnessFilterType VesselnessFilterType;
66
67 AnisotropicDiffusionFilterType::Pointer anisotropicDiffusionFilter = AnisotropicDiffusionFilterType::New();
68
69 MultiScaleFilterType::Pointer multiScaleFilter = anisotropicDiffusionFilter->GetMultiScaleVesselnessFilter();
70 multiScaleFilter->SetSigmaMinimum(this->SigmaMin);
71 multiScaleFilter->SetSigmaMaximum(this->SigmaMax);
72 multiScaleFilter->SetNumberOfSigmaSteps(this->NumberOfSigmaSteps);
73 if (this->SigmaStepMethod == EQUISPACED)
74 {
75 multiScaleFilter->SetSigmaStepMethodToEquispaced();
76 }
77 else if (this->SigmaStepMethod == LOGARITHMIC)
78 {
79 multiScaleFilter->SetSigmaStepMethodToLogarithmic();
80 }
81
82 VesselnessFilterType* vesselnessFilter = dynamic_cast<VesselnessFilterType*>(multiScaleFilter->GetHessianToMeasureFilter());
83 vesselnessFilter->SetAlpha(this->Alpha);
84 vesselnessFilter->SetBeta(this->Beta);
85 vesselnessFilter->SetGamma(this->Gamma);
86 vesselnessFilter->SetC(this->C);
87
88 anisotropicDiffusionFilter->SetInput(inImage);
89 anisotropicDiffusionFilter->SetTimeStep(this->TimeStep);
90 anisotropicDiffusionFilter->SetEpsilon(this->Epsilon);
91 anisotropicDiffusionFilter->SetWStrength(this->WStrength);
92 anisotropicDiffusionFilter->SetSensitivity(this->Sensitivity);
93 anisotropicDiffusionFilter->SetNumberOfIterations(this->NumberOfIterations);
94 anisotropicDiffusionFilter->SetNumberOfDiffusionSubIterations(this->NumberOfDiffusionSubIterations);
95 anisotropicDiffusionFilter->Update();
96
97 vtkvmtkITKFilterUtilities::ITKToVTKImage<ImageType>(anisotropicDiffusionFilter->GetOutput(),output);
98}
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: