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

Wraps itk::VesselEnhancingDiffusion3DImageFilter. More...

#include <vtkvmtkVesselEnhancingDiffusion3DImageFilter.h>

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

Public Types

enum  { EQUISPACED_STEPS , LOGARITHMIC_STEPS }
typedef vtkvmtkITKImageToImageFilterFF Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkvmtkVesselEnhancingDiffusion3DImageFilter * NewInstance () const
void SetSigmaStepMethodToEquispaced ()
void SetSigmaStepMethodToLogarithmic ()
void SetTimeStep (double value)
void SetEpsilon (double value)
void SetOmega (double value)
void SetSensitivity (double value)
void SetNumberOfIterations (int value)
void SetAlpha (double value)
void SetBeta (double value)
void SetGamma (double value)
void SetRecalculateVesselness (int value)
double ComputeSigmaValue (int scaleLevel)
void Update ()
virtual void SetSigmaMin (double)
virtual double GetSigmaMin ()
virtual void SetSigmaMax (double)
virtual double GetSigmaMax ()
virtual void SetNumberOfSigmaSteps (int)
virtual int GetNumberOfSigmaSteps ()

Static Public Member Functions

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

Protected Types

typedef itk::VesselEnhancingDiffusion3DImageFilter< Superclass::InputImageType::PixelType > ImageFilterType

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 vtkvmtkVesselEnhancingDiffusion3DImageFilter ()
 ~vtkvmtkVesselEnhancingDiffusion3DImageFilter ()
ImageFilterType * GetImageFilterPointer ()

Protected Attributes

double SigmaMin
double SigmaMax
int NumberOfSigmaSteps
int SigmaStepMethod

Detailed Description

Wraps itk::VesselEnhancingDiffusion3DImageFilter.

vtkvmtkVesselEnhancingDiffusion3DImageFilter iteratively enhances tubular (vessel) structures by solving the vessel-enhancing anisotropic diffusion equation of Manniesing et al. ("Vessel Enhancing Diffusion: A Scale Space Representation of Vessel Structures", Medical Image Analysis, 2006): at each iteration it recomputes the Hessian-based vesselness response at multiple scales (see SigmaMin/SigmaMax/NumberOfSigmaSteps), builds a diffusion tensor from the locally dominant vessel orientation, and diffuses the image with that tensor, smoothing across the vessel while preserving/enhancing it along its axis. It is one of the vessel enhancement methods selectable (as "vedm") by the vmtkimagevesselenhancement pype script, alongside the simpler, non-tensor-based vtkvmtkVesselEnhancingDiffusionImageFilter (the "ved" method). Unlike the other filters in this module, it is not a vtkSimpleImageToImageFilter but a vtkvmtkITKImageToImageFilterFF, which keeps the underlying itk::VesselEnhancingDiffusion3DImageFilter alive across executions and exposes its parameters through DelegateITKInputMacro-based setters; SigmaMin/SigmaMax/NumberOfSigmaSteps are cached locally and converted to the underlying filter's Scales vector by ComputeSigmaValue when Update() is called.

See also
vtkvmtkVesselEnhancingDiffusionImageFilter, vtkvmtkVesselnessMeasureImageFilter

Definition at line 54 of file vtkvmtkVesselEnhancingDiffusion3DImageFilter.h.

Member Typedef Documentation

◆ Superclass

typedef vtkvmtkITKImageToImageFilterFF vtkvmtkVesselEnhancingDiffusion3DImageFilter::Superclass

◆ ImageFilterType

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Values for SigmaStepMethod (set via SetSigmaStepMethodToEquispaced / SetSigmaStepMethodToLogarithmic).

Enumerator
EQUISPACED_STEPS 
LOGARITHMIC_STEPS 

Definition at line 255 of file vtkvmtkVesselEnhancingDiffusion3DImageFilter.h.

Constructor & Destructor Documentation

◆ vtkvmtkVesselEnhancingDiffusion3DImageFilter()

◆ ~vtkvmtkVesselEnhancingDiffusion3DImageFilter()

vtkvmtkVesselEnhancingDiffusion3DImageFilter::~vtkvmtkVesselEnhancingDiffusion3DImageFilter ( )
inlineprotected

Definition at line 276 of file vtkvmtkVesselEnhancingDiffusion3DImageFilter.h.

276{};

Member Function Documentation

◆ New()

vtkvmtkVesselEnhancingDiffusion3DImageFilter * vtkvmtkVesselEnhancingDiffusion3DImageFilter::New ( )
static

◆ IsTypeOf()

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

◆ IsA()

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

◆ SafeDownCast()

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

◆ NewInstanceInternal()

virtual vtkObjectBase * vtkvmtkVesselEnhancingDiffusion3DImageFilter::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkvmtkVesselEnhancingDiffusion3DImageFilter * vtkvmtkVesselEnhancingDiffusion3DImageFilter::NewInstance ( ) const

◆ SetSigmaMin()

virtual void vtkvmtkVesselEnhancingDiffusion3DImageFilter::SetSigmaMin ( double )
virtual

Set/Get the smallest Gaussian scale (sigma) at which the vesselness-derived diffusion tensor is evaluated, roughly corresponding to the radius of the smallest vessels to enhance. Cached locally and converted to the underlying ITK filter's Scales vector on Update(). Default: 0.0.

◆ GetSigmaMin()

virtual double vtkvmtkVesselEnhancingDiffusion3DImageFilter::GetSigmaMin ( )
virtual

Set/Get the smallest Gaussian scale (sigma) at which the vesselness-derived diffusion tensor is evaluated, roughly corresponding to the radius of the smallest vessels to enhance. Cached locally and converted to the underlying ITK filter's Scales vector on Update(). Default: 0.0.

◆ SetSigmaMax()

virtual void vtkvmtkVesselEnhancingDiffusion3DImageFilter::SetSigmaMax ( double )
virtual

Set/Get the largest Gaussian scale (sigma) at which the vesselness-derived diffusion tensor is evaluated, roughly corresponding to the radius of the largest vessels to enhance. Cached locally and converted to the underlying ITK filter's Scales vector on Update(). Default: 0.0.

◆ GetSigmaMax()

virtual double vtkvmtkVesselEnhancingDiffusion3DImageFilter::GetSigmaMax ( )
virtual

Set/Get the largest Gaussian scale (sigma) at which the vesselness-derived diffusion tensor is evaluated, roughly corresponding to the radius of the largest vessels to enhance. Cached locally and converted to the underlying ITK filter's Scales vector on Update(). Default: 0.0.

◆ SetNumberOfSigmaSteps()

virtual void vtkvmtkVesselEnhancingDiffusion3DImageFilter::SetNumberOfSigmaSteps ( int )
virtual

Set/Get the number of scales sampled between SigmaMin and SigmaMax. Cached locally and converted to the underlying ITK filter's Scales vector on Update(). Default: 0.

◆ GetNumberOfSigmaSteps()

virtual int vtkvmtkVesselEnhancingDiffusion3DImageFilter::GetNumberOfSigmaSteps ( )
virtual

Set/Get the number of scales sampled between SigmaMin and SigmaMax. Cached locally and converted to the underlying ITK filter's Scales vector on Update(). Default: 0.

◆ SetSigmaStepMethodToEquispaced()

void vtkvmtkVesselEnhancingDiffusion3DImageFilter::SetSigmaStepMethodToEquispaced ( )
inline

Convenience method: set the (protected, no public getter) SigmaStepMethod to EQUISPACED_STEPS (linear spacing between SigmaMin and SigmaMax; default).

Definition at line 93 of file vtkvmtkVesselEnhancingDiffusion3DImageFilter.h.

94 {
96 }

◆ SetSigmaStepMethodToLogarithmic()

void vtkvmtkVesselEnhancingDiffusion3DImageFilter::SetSigmaStepMethodToLogarithmic ( )
inline

Convenience method: set the (protected, no public getter) SigmaStepMethod to LOGARITHMIC_STEPS (logarithmic spacing, more scales concentrated near SigmaMin).

Definition at line 102 of file vtkvmtkVesselEnhancingDiffusion3DImageFilter.h.

103 {
105 }

◆ SetTimeStep()

void vtkvmtkVesselEnhancingDiffusion3DImageFilter::SetTimeStep ( double value)
inline

Set the diffusion time step size, delegated directly to the underlying itk::VesselEnhancingDiffusion3DImageFilter (no local caching or corresponding getter).

Definition at line 111 of file vtkvmtkVesselEnhancingDiffusion3DImageFilter.h.

112 {
114 }
#define DelegateITKInputMacro(name, arg)

◆ SetEpsilon()

void vtkvmtkVesselEnhancingDiffusion3DImageFilter::SetEpsilon ( double value)
inline

Set a small numerical regularization constant used by the underlying ITK filter to avoid division by zero, delegated directly (no local caching or corresponding getter).

Definition at line 120 of file vtkvmtkVesselEnhancingDiffusion3DImageFilter.h.

◆ SetOmega()

void vtkvmtkVesselEnhancingDiffusion3DImageFilter::SetOmega ( double value)
inline

Set the diffusion tensor construction parameter controlling background (non-vessel) smoothing strength, delegated directly to the underlying ITK filter (no local caching or corresponding getter).

Definition at line 130 of file vtkvmtkVesselEnhancingDiffusion3DImageFilter.h.

◆ SetSensitivity()

void vtkvmtkVesselEnhancingDiffusion3DImageFilter::SetSensitivity ( double value)
inline

Set the sensitivity of the diffusion tensor construction to the local vesselness response, delegated directly to the underlying ITK filter (no local caching or corresponding getter).

Definition at line 139 of file vtkvmtkVesselEnhancingDiffusion3DImageFilter.h.

◆ SetNumberOfIterations()

void vtkvmtkVesselEnhancingDiffusion3DImageFilter::SetNumberOfIterations ( int value)
inline

Set the number of diffusion iterations, delegated directly to the underlying ITK filter's SetIterations (no local caching or corresponding getter).

Definition at line 148 of file vtkvmtkVesselEnhancingDiffusion3DImageFilter.h.

149 {
150 DelegateITKInputMacro(SetIterations,value);
151 }

◆ SetAlpha()

void vtkvmtkVesselEnhancingDiffusion3DImageFilter::SetAlpha ( double value)
inline

Set the vesselness sensitivity to the ratio between the two smallest Hessian eigenvalues, delegated directly to the underlying ITK filter (no local caching or corresponding getter).

Definition at line 157 of file vtkvmtkVesselEnhancingDiffusion3DImageFilter.h.

◆ SetBeta()

void vtkvmtkVesselEnhancingDiffusion3DImageFilter::SetBeta ( double value)
inline

Set the vesselness sensitivity to the ratio between the largest and the geometric mean of the two smallest Hessian eigenvalues, delegated directly to the underlying ITK filter (no local caching or corresponding getter).

Definition at line 167 of file vtkvmtkVesselEnhancingDiffusion3DImageFilter.h.

◆ SetGamma()

void vtkvmtkVesselEnhancingDiffusion3DImageFilter::SetGamma ( double value)
inline

Set the vesselness sensitivity to the overall Hessian eigenvalue magnitude, delegated directly to the underlying ITK filter (no local caching or corresponding getter).

Definition at line 176 of file vtkvmtkVesselEnhancingDiffusion3DImageFilter.h.

◆ SetRecalculateVesselness()

void vtkvmtkVesselEnhancingDiffusion3DImageFilter::SetRecalculateVesselness ( int value)
inline

Set whether the vesselness response (and diffusion tensor) is recomputed at every iteration (rather than only once), delegated directly to the underlying ITK filter (no local caching or corresponding getter).

Definition at line 186 of file vtkvmtkVesselEnhancingDiffusion3DImageFilter.h.

◆ ComputeSigmaValue()

double vtkvmtkVesselEnhancingDiffusion3DImageFilter::ComputeSigmaValue ( int scaleLevel)
inline

Compute the sigma value for the given 0-based scale level, according to SigmaStepMethod, between SigmaMin and SigmaMax over NumberOfSigmaSteps steps. Used internally by Update() to build the underlying ITK filter's Scales vector.

Definition at line 196 of file vtkvmtkVesselEnhancingDiffusion3DImageFilter.h.

197 {
198 double sigmaValue;
199
200 if (this->NumberOfSigmaSteps < 2)
201 {
202 return this->SigmaMin;
203 }
204
205 switch (this->SigmaStepMethod)
206 {
207 case EQUISPACED_STEPS:
208 {
209 double stepSize = ( SigmaMax - SigmaMin ) / (NumberOfSigmaSteps-1);
210 if (stepSize < 1e-10)
211 {
212 stepSize = 1e-10;
213 }
214 sigmaValue = SigmaMin + stepSize * scaleLevel;
215 break;
216 }
218 {
219 double stepSize = ( vcl_log(SigmaMax) - vcl_log(SigmaMin) ) / (NumberOfSigmaSteps-1);
220 if (stepSize < 1e-10)
221 {
222 stepSize = 1e-10;
223 }
224 sigmaValue = vcl_exp( vcl_log (SigmaMin) + stepSize * scaleLevel);
225 break;
226 }
227 default:
228 vtkErrorMacro("Error: undefined sigma step method.");
229 sigmaValue = 0.0;
230 break;
231 }
232
233 return sigmaValue;
234 }

◆ Update()

void vtkvmtkVesselEnhancingDiffusion3DImageFilter::Update ( )
inline

Build the underlying ITK filter's Scales vector from SigmaMin/SigmaMax/NumberOfSigmaSteps/ SigmaStepMethod via ComputeSigmaValue, then execute the filter.

Definition at line 240 of file vtkvmtkVesselEnhancingDiffusion3DImageFilter.h.

241 {
242 std::vector<float> scales;
243 for (int i=0; i<this->NumberOfSigmaSteps; i++)
244 {
245 scales.push_back(this->ComputeSigmaValue(i));
246 }
247 this->GetImageFilterPointer()->SetScales(scales);
248 }

◆ GetImageFilterPointer()

ImageFilterType * vtkvmtkVesselEnhancingDiffusion3DImageFilter::GetImageFilterPointer ( )
inlineprotected

Definition at line 277 of file vtkvmtkVesselEnhancingDiffusion3DImageFilter.h.

277{ return dynamic_cast<ImageFilterType*>(m_Filter.GetPointer()); }
itk::VesselEnhancingDiffusion3DImageFilter< Superclass::InputImageType::PixelType > ImageFilterType

Member Data Documentation

◆ SigmaMin

double vtkvmtkVesselEnhancingDiffusion3DImageFilter::SigmaMin
protected

◆ SigmaMax

double vtkvmtkVesselEnhancingDiffusion3DImageFilter::SigmaMax
protected

◆ NumberOfSigmaSteps

int vtkvmtkVesselEnhancingDiffusion3DImageFilter::NumberOfSigmaSteps
protected

◆ SigmaStepMethod

int vtkvmtkVesselEnhancingDiffusion3DImageFilter::SigmaStepMethod
protected

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