|
VMTK
|
Generates the upwind gradient field of fast marching arrival times. More...
#include <itkFastMarchingUpwindGradientImageFilter.h>
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) |
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.
Definition at line 57 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef FastMarchingUpwindGradientImageFilter itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::Self |
Standard class typdedefs.
Definition at line 63 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef FastMarchingImageFilter<TLevelSet,TSpeedImage> itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::Superclass |
Definition at line 64 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef SmartPointer<Self> itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::Pointer |
Definition at line 65 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef SmartPointer<const Self> itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::ConstPointer |
Definition at line 66 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef Superclass::LevelSetType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LevelSetType |
Inherited typedefs.
Definition at line 75 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef Superclass::SpeedImageType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SpeedImageType |
Definition at line 76 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef Superclass::LevelSetImageType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LevelSetImageType |
Definition at line 77 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef Superclass::LevelSetPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LevelSetPointer |
Definition at line 78 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef Superclass::SpeedImageConstPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SpeedImageConstPointer |
Definition at line 79 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef Superclass::LabelImageType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LabelImageType |
Definition at line 80 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef Superclass::PixelType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::PixelType |
Definition at line 81 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef Superclass::AxisNodeType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::AxisNodeType |
Definition at line 82 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef Superclass::NodeType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::NodeType |
Definition at line 83 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef Superclass::NodeContainer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::NodeContainer |
Definition at line 84 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef Superclass::NodeContainerPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::NodeContainerPointer |
Definition at line 85 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef Superclass::IndexType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::IndexType |
Definition at line 87 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef Superclass::OutputSpacingType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::OutputSpacingType |
Definition at line 88 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef Superclass::LevelSetIndexType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LevelSetIndexType |
Definition at line 89 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef Superclass::OutputPointType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::PointType |
Definition at line 91 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef CovariantVector<PixelType, itkGetStaticConstMacro(SetDimension)> itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GradientPixelType |
GradientPixel typedef support.
Definition at line 116 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef Image<GradientPixelType, itkGetStaticConstMacro(SetDimension)> itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GradientImageType |
GradientImage typedef support.
Definition at line 120 of file itkFastMarchingUpwindGradientImageFilter.h.
| typedef GradientImageType::Pointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GradientImagePointer |
GradientImagePointer typedef support.
Definition at line 123 of file itkFastMarchingUpwindGradientImageFilter.h.
| anonymous enum |
| Enumerator | |
|---|---|
| NoTargets | |
| OneTarget | |
| SomeTargets | |
| AllTargets | |
Definition at line 170 of file itkFastMarchingUpwindGradientImageFilter.h.
|
protected |
|
inlineprotected |
Definition at line 187 of file itkFastMarchingUpwindGradientImageFilter.h.
| itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkNewMacro | ( | Self | ) |
Method for creation through the object factory.
| itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkTypeMacro | ( | FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage > | , |
| FastMarchingImageFilter | ) |
Run-time type information (and related methods).
| itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkStaticConstMacro | ( | SetDimension | , |
| unsigned int | , | ||
| Superclass::SetDimension | ) |
The dimension of the level set.
|
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.
|
inline |
Get the container of Target Points.
Definition at line 107 of file itkFastMarchingUpwindGradientImageFilter.h.
|
inline |
Get the container of Reached Target Points.
Definition at line 111 of file itkFastMarchingUpwindGradientImageFilter.h.
|
inline |
| 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.
| itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkGetConstReferenceMacro | ( | GenerateGradientImage | , |
| bool | ) |
Get the GenerateGradientImage flag.
| itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkBooleanMacro | ( | GenerateGradientImage | ) |
| 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.
| itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkGetConstReferenceMacro | ( | TargetOffset | , |
| double | ) |
Get the TargetOffset ivar.
| 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.
| itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkGetConstReferenceMacro | ( | TargetReachedMode | , |
| int | ) |
|
inline |
Definition at line 149 of file itkFastMarchingUpwindGradientImageFilter.h.
|
inline |
Definition at line 151 of file itkFastMarchingUpwindGradientImageFilter.h.
|
inline |
Definition at line 153 of file itkFastMarchingUpwindGradientImageFilter.h.
|
inline |
Definition at line 158 of file itkFastMarchingUpwindGradientImageFilter.h.
| itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::itkGetConstReferenceMacro | ( | NumberOfTargets | , |
| long | ) |
Get the number of targets.
| 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.
|
protected |
|
protectedvirtual |
|
protected |
|
protectedvirtual |
Reimplemented in itk::FastMarchingDirectionalFreezeImageFilter< TLevelSet, TSpeedImage >.
|
protectedvirtual |