VMTK
Loading...
Searching...
No Matches
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension > Class Template Reference

Enhances tubular (vessel-like) structures in a 3D image via anisotropic diffusion guided by the local Hessian. More...

#include <itkVesselEnhancingDiffusion3DImageFilter.h>

Inheritance diagram for itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >:
[legend]
Collaboration diagram for itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >:
[legend]

Public Types

typedef float Precision
typedef Image< PixelType, Dimension > ImageType
typedef Image< Precision, Dimension > PrecisionImageType
typedef VesselEnhancingDiffusion3DImageFilter Self
typedef ImageToImageFilter< ImageType, ImageType > Superclass
typedef SmartPointer< Self > Pointer
typedef SmartPointer< const Self > ConstPointer

Public Member Functions

 itkNewMacro (Self)
 itkTypeMacro (VesselEnhancingDiffusion3DImageFilter, ImageToImageFilter)
 itkSetMacro (TimeStep, Precision)
 itkSetMacro (Iterations, unsigned int)
 itkSetMacro (RecalculateVesselness, unsigned int)
 itkSetMacro (Alpha, Precision)
 itkSetMacro (Beta, Precision)
 itkSetMacro (Gamma, Precision)
 itkSetMacro (Epsilon, Precision)
 itkSetMacro (Omega, Precision)
 itkSetMacro (Sensitivity, Precision)
void SetScales (const std::vector< Precision > scales)
 itkBooleanMacro (DarkObjectLightBackground)
 itkSetMacro (DarkObjectLightBackground, bool)
 itkBooleanMacro (Verbose)
 itkSetMacro (Verbose, bool)
void SetDefaultPars ()

Protected Member Functions

 VesselEnhancingDiffusion3DImageFilter ()
 ~VesselEnhancingDiffusion3DImageFilter ()
void PrintSelf (std::ostream &os, Indent indent) const ITK_OVERRIDE
void GenerateData () ITK_OVERRIDE

Detailed Description

template<class PixelType = short int, unsigned int Dimension = 3>
class itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >

Enhances tubular (vessel-like) structures in a 3D image via anisotropic diffusion guided by the local Hessian.

Complete rewrite of previous versions, only using itk/vnl routines for derivatives, eigensystem calculations and diffusion. Internally, the input image image is converted to internalprecision (float) for calculation, and converted back when returning the results.

Uses simple forward Euler scheme (explicit) with 3x3x3 stencil, see eg phd of Joachim Weickert for theory and implementation regarding the construction of this discretization scheme. See 'Vessel Enhancing Diffusion', Manniesing, media 2006, for information regarding the construction of the diffusion tensor.

  • Stores all elements of the Hessian of the complete image during diffusion. An alternative implementation is to only store the scale for which the vesselness has maximum response, and to recalculate the hessian (locally) during diffusion. Also stores the current image, ie at iteration i + temp image, therefore the complete memory consumption approximately peaks at 8 times the input image (input image in float)
  • The hessian is stored as six individual images, an alternative implementation is to use the itk symmetric second rank tensor as pixeltype (and eg using the class SymmetricEigenAnalysisImage Filter). However, we are lazy, and using this since we rely on vnl datatypes and its eigensystem calculations
  • note: most of computation time is spent at calculation of vesselness response
  • PixelType short, 3D Precision float, 3D
  • todo
    • using parallelism/threading eg over scales
    • completely itk-fying, eg eigenvalues calculation
    • possibly embedding within itk-diffusion framework
    • itk expert to have a look at use of iterators (there must be a potential gain there)

email: r.man.nosp@m.nies.nosp@m.ing@e.nosp@m.rasm.nosp@m.usmc..nosp@m.nl

Definition at line 65 of file itkVesselEnhancingDiffusion3DImageFilter.h.

Member Typedef Documentation

◆ Precision

template<class PixelType = short int, unsigned int Dimension = 3>
typedef float itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::Precision

Definition at line 72 of file itkVesselEnhancingDiffusion3DImageFilter.h.

◆ ImageType

template<class PixelType = short int, unsigned int Dimension = 3>
typedef Image<PixelType, Dimension> itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::ImageType

Definition at line 73 of file itkVesselEnhancingDiffusion3DImageFilter.h.

◆ PrecisionImageType

template<class PixelType = short int, unsigned int Dimension = 3>
typedef Image<Precision,Dimension> itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::PrecisionImageType

Definition at line 74 of file itkVesselEnhancingDiffusion3DImageFilter.h.

◆ Self

template<class PixelType = short int, unsigned int Dimension = 3>
typedef VesselEnhancingDiffusion3DImageFilter itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::Self

Definition at line 76 of file itkVesselEnhancingDiffusion3DImageFilter.h.

◆ Superclass

template<class PixelType = short int, unsigned int Dimension = 3>
typedef ImageToImageFilter<ImageType,ImageType> itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::Superclass

Definition at line 77 of file itkVesselEnhancingDiffusion3DImageFilter.h.

◆ Pointer

template<class PixelType = short int, unsigned int Dimension = 3>
typedef SmartPointer<Self> itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::Pointer

Definition at line 78 of file itkVesselEnhancingDiffusion3DImageFilter.h.

◆ ConstPointer

template<class PixelType = short int, unsigned int Dimension = 3>
typedef SmartPointer<const Self> itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::ConstPointer

Definition at line 79 of file itkVesselEnhancingDiffusion3DImageFilter.h.

Constructor & Destructor Documentation

◆ VesselEnhancingDiffusion3DImageFilter()

template<class PixelType = short int, unsigned int Dimension = 3>
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::VesselEnhancingDiffusion3DImageFilter ( )
protected

◆ ~VesselEnhancingDiffusion3DImageFilter()

template<class PixelType = short int, unsigned int Dimension = 3>
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::~VesselEnhancingDiffusion3DImageFilter ( )
inlineprotected

Definition at line 132 of file itkVesselEnhancingDiffusion3DImageFilter.h.

132{};

Member Function Documentation

◆ itkNewMacro()

template<class PixelType = short int, unsigned int Dimension = 3>
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::itkNewMacro ( Self )

◆ itkTypeMacro()

template<class PixelType = short int, unsigned int Dimension = 3>
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::itkTypeMacro ( VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension > ,
ImageToImageFilter  )

◆ itkSetMacro() [1/11]

template<class PixelType = short int, unsigned int Dimension = 3>
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::itkSetMacro ( TimeStep ,
Precision  )

◆ itkSetMacro() [2/11]

template<class PixelType = short int, unsigned int Dimension = 3>
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::itkSetMacro ( Iterations ,
unsigned int  )

◆ itkSetMacro() [3/11]

template<class PixelType = short int, unsigned int Dimension = 3>
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::itkSetMacro ( RecalculateVesselness ,
unsigned int  )

◆ itkSetMacro() [4/11]

template<class PixelType = short int, unsigned int Dimension = 3>
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::itkSetMacro ( Alpha ,
Precision  )

◆ itkSetMacro() [5/11]

template<class PixelType = short int, unsigned int Dimension = 3>
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::itkSetMacro ( Beta ,
Precision  )

◆ itkSetMacro() [6/11]

template<class PixelType = short int, unsigned int Dimension = 3>
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::itkSetMacro ( Gamma ,
Precision  )

◆ itkSetMacro() [7/11]

template<class PixelType = short int, unsigned int Dimension = 3>
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::itkSetMacro ( Epsilon ,
Precision  )

◆ itkSetMacro() [8/11]

template<class PixelType = short int, unsigned int Dimension = 3>
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::itkSetMacro ( Omega ,
Precision  )

◆ itkSetMacro() [9/11]

template<class PixelType = short int, unsigned int Dimension = 3>
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::itkSetMacro ( Sensitivity ,
Precision  )

◆ SetScales()

template<class PixelType = short int, unsigned int Dimension = 3>
void itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::SetScales ( const std::vector< Precision > scales)
inline

Definition at line 96 of file itkVesselEnhancingDiffusion3DImageFilter.h.

97 {
98 m_Scales = scales;
99 }
Enhances tubular (vessel-like) structures in a 3D image via anisotropic diffusion guided by the local...

◆ itkBooleanMacro() [1/2]

template<class PixelType = short int, unsigned int Dimension = 3>
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::itkBooleanMacro ( DarkObjectLightBackground )

◆ itkSetMacro() [10/11]

template<class PixelType = short int, unsigned int Dimension = 3>
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::itkSetMacro ( DarkObjectLightBackground ,
bool  )

◆ itkBooleanMacro() [2/2]

template<class PixelType = short int, unsigned int Dimension = 3>
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::itkBooleanMacro ( Verbose )

◆ itkSetMacro() [11/11]

template<class PixelType = short int, unsigned int Dimension = 3>
itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::itkSetMacro ( Verbose ,
bool  )

◆ SetDefaultPars()

template<class PixelType = short int, unsigned int Dimension = 3>
void itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::SetDefaultPars ( )
inline

Definition at line 107 of file itkVesselEnhancingDiffusion3DImageFilter.h.

108 {
109 m_TimeStep = 0.001;
110 m_Iterations = 30;
111 m_RecalculateVesselness = 100;
112 m_Alpha = 0.5;
113 m_Beta = 0.5;
114 m_Gamma = 5.0;
115 m_Epsilon = 0.01;
116 m_Omega = 25.0;
117 m_Sensitivity = 5.0;
118
119 m_Scales.resize(5);
120 m_Scales[0] = 0.300;
121 m_Scales[1] = 0.482;
122 m_Scales[2] = 0.775;
123 m_Scales[3] = 1.245;
124 m_Scales[4] = 2.000;
125
126 m_DarkObjectLightBackground = false;
127 m_Verbose = true;
128 }

◆ PrintSelf()

template<class PixelType = short int, unsigned int Dimension = 3>
void itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::PrintSelf ( std::ostream & os,
Indent indent ) const
protected

◆ GenerateData()

template<class PixelType = short int, unsigned int Dimension = 3>
void itk::VesselEnhancingDiffusion3DImageFilter< PixelType, Dimension >::GenerateData ( )
protected

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