VMTK
Loading...
Searching...
No Matches
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage > Class Template Reference

Generates the upwind gradient field of fast marching arrival times. More...

#include <itkFastMarchingUpwindGradientImageFilter.h>

Inheritance diagram for itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >:
[legend]
Collaboration diagram for itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >:
[legend]

Public Types

enum  { NoTargets , OneTarget , SomeTargets , AllTargets }
typedef FastMarchingUpwindGradientImageFilter Self
typedef FastMarchingImageFilter< TLevelSet, TSpeedImage > Superclass
typedef SmartPointer< Self > Pointer
typedef SmartPointer< const Self > ConstPointer
typedef Superclass::LevelSetType LevelSetType
typedef Superclass::SpeedImageType SpeedImageType
typedef Superclass::LevelSetImageType LevelSetImageType
typedef Superclass::LevelSetPointer LevelSetPointer
typedef Superclass::SpeedImageConstPointer SpeedImageConstPointer
typedef Superclass::LabelImageType LabelImageType
typedef Superclass::PixelType PixelType
typedef Superclass::AxisNodeType AxisNodeType
typedef Superclass::NodeType NodeType
typedef Superclass::NodeContainer NodeContainer
typedef Superclass::NodeContainerPointer NodeContainerPointer
typedef Superclass::IndexType IndexType
typedef Superclass::OutputSpacingType OutputSpacingType
typedef Superclass::LevelSetIndexType LevelSetIndexType
typedef Superclass::OutputPointType PointType
typedef CovariantVector< PixelType, itkGetStaticConstMacro(SetDimension)> GradientPixelType
typedef Image< GradientPixelType, itkGetStaticConstMacro(SetDimension)> GradientImageType
typedef GradientImageType::Pointer GradientImagePointer

Public Member Functions

 itkNewMacro (Self)
 itkTypeMacro (FastMarchingUpwindGradientImageFilter, FastMarchingImageFilter)
 itkStaticConstMacro (SetDimension, unsigned int, Superclass::SetDimension)
void SetTargetPoints (NodeContainer *points)
NodeContainerPointer GetTargetPoints ()
NodeContainerPointer GetReachedTargetPoints ()
GradientImagePointer GetGradientImage () const
 itkSetMacro (GenerateGradientImage, bool)
 itkGetConstReferenceMacro (GenerateGradientImage, bool)
 itkBooleanMacro (GenerateGradientImage)
 itkSetMacro (TargetOffset, double)
 itkGetConstReferenceMacro (TargetOffset, double)
 itkSetMacro (TargetReachedMode, int)
 itkGetConstReferenceMacro (TargetReachedMode, int)
void SetTargetReachedModeToNoTargets ()
void SetTargetReachedModeToOneTarget ()
void SetTargetReachedModeToSomeTargets (long numberOfTargets)
void SetTargetReachedModeToAllTargets ()
 itkGetConstReferenceMacro (NumberOfTargets, long)
 itkGetConstReferenceMacro (TargetValue, double)

Protected Member Functions

 FastMarchingUpwindGradientImageFilter ()
 ~FastMarchingUpwindGradientImageFilter ()
void PrintSelf (std::ostream &os, Indent indent) const ITK_OVERRIDE
virtual void Initialize (LevelSetImageType *) ITK_OVERRIDE
void GenerateData () ITK_OVERRIDE
virtual void UpdateNeighbors (const IndexType &index, const SpeedImageType *, LevelSetImageType *) ITK_OVERRIDE
virtual void ComputeGradient (const IndexType &index, const LevelSetImageType *output, const LabelImageType *labelImage, GradientImageType *gradientImage)

Detailed Description

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
class itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >

Generates the upwind gradient field of fast marching arrival times.

This filter adds some extra functionality to its base class. While the solution T(x) of the Eikonal equation is being generated by the base class with the fast marching method, the filter generates the upwind gradient vectors of T(x), storing them in an image.

Since the Eikonal equation generates the arrival times of a wave travelling at a given speed, the generated gradient vectors can be interpreted as the slowness (1/velocity) vectors of the front (the quantity inside the modulus operator in the Eikonal equation).

Gradient vectors are computed using upwind finite differences, that is, information only propagates from points where the wavefront has already passed. This is consistent with how the fast marching method works.

One more extra feature is the possibility to define a set of Target points where the propagation stops. This can be used to avoid computing the Eikonal solution for the whole domain. The front can be stopped either when one Target point is reached or all Target points are reached. The propagation can stop after a time TargetOffset has passed since the stop condition is met. This way the solution is computed a bit downstream the Target points, so that the level sets of T(x) corresponding to the Target are smooth.

Author
Luca Antiga Ph.D. Biomedical Technologies Laboratory, Bioengineering Department, Mario Negri Institute, Italy.

Definition at line 57 of file itkFastMarchingUpwindGradientImageFilter.h.

Member Typedef Documentation

◆ Self

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef FastMarchingUpwindGradientImageFilter itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::Self

Standard class typdedefs.

Definition at line 63 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ Superclass

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef FastMarchingImageFilter<TLevelSet,TSpeedImage> itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::Superclass

Definition at line 64 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ Pointer

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef SmartPointer<Self> itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::Pointer

Definition at line 65 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ ConstPointer

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef SmartPointer<const Self> itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::ConstPointer

Definition at line 66 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ LevelSetType

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef Superclass::LevelSetType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LevelSetType

Inherited typedefs.

Definition at line 75 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ SpeedImageType

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef Superclass::SpeedImageType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SpeedImageType

Definition at line 76 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ LevelSetImageType

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef Superclass::LevelSetImageType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LevelSetImageType

Definition at line 77 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ LevelSetPointer

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef Superclass::LevelSetPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LevelSetPointer

Definition at line 78 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ SpeedImageConstPointer

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef Superclass::SpeedImageConstPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SpeedImageConstPointer

Definition at line 79 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ LabelImageType

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef Superclass::LabelImageType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LabelImageType

Definition at line 80 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ PixelType

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef Superclass::PixelType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::PixelType

Definition at line 81 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ AxisNodeType

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef Superclass::AxisNodeType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::AxisNodeType

Definition at line 82 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ NodeType

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef Superclass::NodeType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::NodeType

Definition at line 83 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ NodeContainer

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef Superclass::NodeContainer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::NodeContainer

Definition at line 84 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ NodeContainerPointer

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef Superclass::NodeContainerPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::NodeContainerPointer

Definition at line 85 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ IndexType

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef Superclass::IndexType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::IndexType

Definition at line 87 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ OutputSpacingType

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef Superclass::OutputSpacingType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::OutputSpacingType

Definition at line 88 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ LevelSetIndexType

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef Superclass::LevelSetIndexType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LevelSetIndexType

Definition at line 89 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ PointType

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef Superclass::OutputPointType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::PointType

Definition at line 91 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ GradientPixelType

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef CovariantVector<PixelType, itkGetStaticConstMacro(SetDimension)> itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GradientPixelType

GradientPixel typedef support.

Definition at line 116 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ GradientImageType

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef Image<GradientPixelType, itkGetStaticConstMacro(SetDimension)> itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GradientImageType

GradientImage typedef support.

Definition at line 120 of file itkFastMarchingUpwindGradientImageFilter.h.

◆ GradientImagePointer

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
typedef GradientImageType::Pointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GradientImagePointer

GradientImagePointer typedef support.

Definition at line 123 of file itkFastMarchingUpwindGradientImageFilter.h.

Member Enumeration Documentation

◆ anonymous enum

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
anonymous enum
Enumerator
NoTargets 
OneTarget 
SomeTargets 
AllTargets 

Definition at line 170 of file itkFastMarchingUpwindGradientImageFilter.h.

171 {
172 NoTargets,
173 OneTarget,
176 };
Generates the upwind gradient field of fast marching arrival times.

Constructor & Destructor Documentation

◆ FastMarchingUpwindGradientImageFilter()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::FastMarchingUpwindGradientImageFilter ( )
protected

◆ ~FastMarchingUpwindGradientImageFilter()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::~FastMarchingUpwindGradientImageFilter ( )
inlineprotected

Definition at line 187 of file itkFastMarchingUpwindGradientImageFilter.h.

187{};

Member Function Documentation

◆ itkNewMacro()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkNewMacro ( Self )

Method for creation through the object factory.

◆ itkTypeMacro()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkTypeMacro ( FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage > ,
FastMarchingImageFilter  )

Run-time type information (and related methods).

◆ itkStaticConstMacro()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkStaticConstMacro ( SetDimension ,
unsigned int ,
Superclass::SetDimension  )

The dimension of the level set.

◆ SetTargetPoints()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SetTargetPoints ( NodeContainer * points)
inline

Set the container of Target Points. If a target point is reached, the propagation stops. Trial points are represented as a VectorContainer of LevelSetNodes.

Definition at line 100 of file itkFastMarchingUpwindGradientImageFilter.h.

101 {
103 this->Modified();
104 };

◆ GetTargetPoints()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
NodeContainerPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GetTargetPoints ( )
inline

Get the container of Target Points.

Definition at line 107 of file itkFastMarchingUpwindGradientImageFilter.h.

108 { return m_TargetPoints; }

◆ GetReachedTargetPoints()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
NodeContainerPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GetReachedTargetPoints ( )
inline

Get the container of Reached Target Points.

Definition at line 111 of file itkFastMarchingUpwindGradientImageFilter.h.

112 { return m_ReachedTargetPoints; }

◆ GetGradientImage()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
GradientImagePointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GetGradientImage ( ) const
inline

Get the gradient image.

Definition at line 126 of file itkFastMarchingUpwindGradientImageFilter.h.

127 { return m_GradientImage; }

◆ itkSetMacro() [1/3]

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkSetMacro ( GenerateGradientImage ,
bool  )

Set the GenerateGradientImage flag. Instrument the algorithm to generate the gradient of the Eikonal equation solution while fast marching.

◆ itkGetConstReferenceMacro() [1/5]

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkGetConstReferenceMacro ( GenerateGradientImage ,
bool  )

Get the GenerateGradientImage flag.

◆ itkBooleanMacro()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkBooleanMacro ( GenerateGradientImage )

◆ itkSetMacro() [2/3]

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkSetMacro ( TargetOffset ,
double  )

Set how long (in terms of arrival times) after targets are reached the front must stop. This is useful to ensure that the level set of target arrival time is smooth.

◆ itkGetConstReferenceMacro() [2/5]

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkGetConstReferenceMacro ( TargetOffset ,
double  )

Get the TargetOffset ivar.

◆ itkSetMacro() [3/3]

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkSetMacro ( TargetReachedMode ,
int  )

Choose whether the front must stop when the first target has been reached or all targets have been reached.

◆ itkGetConstReferenceMacro() [3/5]

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkGetConstReferenceMacro ( TargetReachedMode ,
int  )

◆ SetTargetReachedModeToNoTargets()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SetTargetReachedModeToNoTargets ( )
inline

◆ SetTargetReachedModeToOneTarget()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SetTargetReachedModeToOneTarget ( )
inline

◆ SetTargetReachedModeToSomeTargets()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SetTargetReachedModeToSomeTargets ( long numberOfTargets)
inline

◆ SetTargetReachedModeToAllTargets()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SetTargetReachedModeToAllTargets ( )
inline

◆ itkGetConstReferenceMacro() [4/5]

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkGetConstReferenceMacro ( NumberOfTargets ,
long  )

Get the number of targets.

◆ itkGetConstReferenceMacro() [5/5]

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkGetConstReferenceMacro ( TargetValue ,
double  )

Get the arrival time corresponding to the last reached target. If TargetReachedMode is set to NoTargets, TargetValue contains the last (aka largest) Eikonal solution value generated.

◆ PrintSelf()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::PrintSelf ( std::ostream & os,
Indent indent ) const
protected

◆ Initialize()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
virtual void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::Initialize ( LevelSetImageType * )
protectedvirtual

◆ GenerateData()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GenerateData ( )
protected

◆ UpdateNeighbors()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
virtual void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::UpdateNeighbors ( const IndexType & index,
const SpeedImageType * ,
LevelSetImageType *  )
protectedvirtual

◆ ComputeGradient()

template<class TLevelSet, class TSpeedImage = Image<float,TLevelSet::ImageDimension>>
virtual void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::ComputeGradient ( const IndexType & index,
const LevelSetImageType * output,
const LabelImageType * labelImage,
GradientImageType * gradientImage )
protectedvirtual

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