ITK
4.12.0
Insight Segmentation and Registration Toolkit
|
#include <itkFastMarchingUpwindGradientImageFilter.h>
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.
For an alternative implementation, see itk::FastMarchingUpwindGradientImageFilterBase.
Definition at line 62 of file itkFastMarchingUpwindGradientImageFilter.h.
Public Types | |
enum | { NoTargets, OneTarget, SomeTargets, AllTargets } |
typedef Superclass::AxisNodeType | AxisNodeType |
typedef SmartPointer< const Self > | ConstPointer |
typedef GradientImageType::Pointer | GradientImagePointer |
typedef Image < GradientPixelType, itkGetStaticConstMacro(SetDimension) > | GradientImageType |
typedef CovariantVector < PixelType, itkGetStaticConstMacro(SetDimension) > | GradientPixelType |
typedef Superclass::IndexType | IndexType |
typedef Superclass::LabelImageType | LabelImageType |
typedef Superclass::LevelSetImageType | LevelSetImageType |
typedef Superclass::LevelSetIndexType | LevelSetIndexType |
typedef Superclass::LevelSetPointer | LevelSetPointer |
typedef Superclass::LevelSetType | LevelSetType |
typedef Superclass::NodeContainer | NodeContainer |
typedef Superclass::NodeContainerPointer | NodeContainerPointer |
typedef Superclass::NodeType | NodeType |
typedef Superclass::OutputSpacingType | OutputSpacingType |
typedef Superclass::PixelType | PixelType |
typedef SmartPointer< Self > | Pointer |
typedef Superclass::OutputPointType | PointType |
typedef FastMarchingUpwindGradientImageFilter | Self |
typedef Superclass::SpeedImageConstPointer | SpeedImageConstPointer |
typedef Superclass::SpeedImageType | SpeedImageType |
typedef FastMarchingImageFilter < TLevelSet, TSpeedImage > | Superclass |
Public Types inherited from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Index < itkGetStaticConstMacro(SetDimension) > | IndexType |
typedef LabelImageType::Pointer | LabelImagePointer |
typedef Image< unsigned char, itkGetStaticConstMacro(SetDimension) > | LabelImageType |
enum | LabelType { FarPoint = 0, AlivePoint, TrialPoint, InitialTrialPoint, OutsidePoint } |
typedef LevelSetType::LevelSetImageType | LevelSetImageType |
typedef LevelSetType::LevelSetPointer | LevelSetPointer |
typedef LevelSetTypeDefault < TLevelSet > | LevelSetType |
typedef LevelSetType::NodeContainer | NodeContainer |
typedef LevelSetType::NodeContainerPointer | NodeContainerPointer |
typedef NodeType::IndexType | NodeIndexType |
typedef LevelSetType::NodeType | NodeType |
typedef LevelSetImageType::DirectionType | OutputDirectionType |
typedef LevelSetImageType::PointType | OutputPointType |
typedef LevelSetImageType::RegionType | OutputRegionType |
typedef LevelSetImageType::SizeType | OutputSizeType |
typedef LevelSetImageType::SpacingType | OutputSpacingType |
typedef LevelSetType::PixelType | PixelType |
typedef SmartPointer< Self > | Pointer |
typedef FastMarchingImageFilter | Self |
typedef SpeedImageType::ConstPointer | SpeedImageConstPointer |
typedef SpeedImageType::Pointer | SpeedImagePointer |
typedef TSpeedImage | SpeedImageType |
typedef ImageSource< TLevelSet > | Superclass |
Public Types inherited from itk::ImageToImageFilter< TSpeedImage, TLevelSet > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TSpeedImage | InputImageType |
typedef Superclass::OutputImagePixelType | OutputImagePixelType |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef SmartPointer< Self > | Pointer |
typedef ImageToImageFilter | Self |
typedef ImageSource< TLevelSet > | Superclass |
Public Types inherited from itk::ImageSource< TLevelSet > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef Superclass::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TLevelSet | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef ImageSource | Self |
typedef ProcessObject | Superclass |
Public Types inherited from itk::ProcessObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef std::vector < DataObjectPointer > | DataObjectPointerArray |
typedef DataObjectPointerArray::size_type | DataObjectPointerArraySizeType |
typedef std::vector < DataObjectIdentifierType > | NameArray |
typedef SmartPointer< Self > | Pointer |
typedef ProcessObject | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage > | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | SetDimension = Superclass::SetDimension |
Static Public Attributes inherited from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage > | |
static const unsigned int | SetDimension = LevelSetType::SetDimension |
static const unsigned int | SpeedImageDimension = SpeedImageType::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TSpeedImage, TLevelSet > | |
static const unsigned int | InputImageDimension |
static const unsigned int | OutputImageDimension |
Static Public Attributes inherited from itk::ImageSource< TLevelSet > | |
static const unsigned int | OutputImageDimension |
Private Attributes | |
bool | m_GenerateGradientImage |
GradientImagePointer | m_GradientImage |
SizeValueType | m_NumberOfTargets |
NodeContainerPointer | m_ReachedTargetPoints |
double | m_TargetOffset |
NodeContainerPointer | m_TargetPoints |
int | m_TargetReachedMode |
double | m_TargetValue |
typedef Superclass::AxisNodeType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::AxisNodeType |
Definition at line 86 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef SmartPointer< const Self > itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::ConstPointer |
Definition at line 70 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef GradientImageType::Pointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GradientImagePointer |
GradientImagePointer typedef support.
Definition at line 127 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Image< GradientPixelType, itkGetStaticConstMacro(SetDimension) > itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GradientImageType |
GradientImage typedef support.
Definition at line 124 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef CovariantVector< PixelType, itkGetStaticConstMacro(SetDimension) > itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GradientPixelType |
GradientPixel typedef support.
Definition at line 120 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::IndexType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::IndexType |
Definition at line 91 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::LabelImageType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LabelImageType |
Definition at line 84 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::LevelSetImageType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LevelSetImageType |
Definition at line 81 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::LevelSetIndexType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LevelSetIndexType |
Definition at line 93 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::LevelSetPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LevelSetPointer |
Definition at line 82 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::LevelSetType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LevelSetType |
Inherited typedefs.
Definition at line 76 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::NodeContainer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::NodeContainer |
Definition at line 88 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::NodeContainerPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::NodeContainerPointer |
Definition at line 89 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::NodeType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::NodeType |
Definition at line 87 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::OutputSpacingType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::OutputSpacingType |
Definition at line 92 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::PixelType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::PixelType |
Definition at line 85 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef SmartPointer< Self > itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::Pointer |
Definition at line 69 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::OutputPointType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::PointType |
Definition at line 95 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef FastMarchingUpwindGradientImageFilter itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::Self |
Standard class typdedefs.
Definition at line 67 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::SpeedImageConstPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SpeedImageConstPointer |
Definition at line 83 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::SpeedImageType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SpeedImageType |
Definition at line 80 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef FastMarchingImageFilter< TLevelSet, TSpeedImage > itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::Superclass |
Definition at line 68 of file itkFastMarchingUpwindGradientImageFilter.h.
anonymous enum |
Enumerator | |
---|---|
NoTargets | |
OneTarget | |
SomeTargets | |
AllTargets |
Definition at line 178 of file itkFastMarchingUpwindGradientImageFilter.h.
|
protected |
|
inlineprotected |
Definition at line 196 of file itkFastMarchingUpwindGradientImageFilter.h.
|
protectedvirtual |
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
|
overrideprotectedvirtual |
A version of GenerateData() specific for image processing filters. This implementation will split the processing across multiple threads. The buffer is allocated by this method. Then the BeforeThreadedGenerateData() method is called (if provided). Then, a series of threads are spawned each calling ThreadedGenerateData(). After all the threads have completed processing, the AfterThreadedGenerateData() method is called (if provided). If an image processing filter cannot be threaded, the filter should provide an implementation of GenerateData(). That implementation is responsible for allocating the output buffer. If a filter an be threaded, it should NOT provide a GenerateData() method but should provide a ThreadedGenerateData() instead.
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
|
virtual |
Get the GenerateGradientImage flag.
|
virtual |
Get the GenerateGradientImage flag.
|
virtual |
Get the GenerateGradientImage flag.
|
inline |
Get the gradient image.
Definition at line 130 of file itkFastMarchingUpwindGradientImageFilter.h.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
|
virtual |
Get the number of targets.
|
inline |
Get the container of Reached Target Points.
Definition at line 115 of file itkFastMarchingUpwindGradientImageFilter.h.
|
virtual |
Get the TargetOffset ivar.
|
inline |
Get the container of Target Points.
Definition at line 111 of file itkFastMarchingUpwindGradientImageFilter.h.
|
virtual |
Choose whether the front must stop when the first target has been reached or all targets have been reached.
|
virtual |
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.
|
overrideprotectedvirtual |
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
|
virtual |
Set the GenerateGradientImage flag. Instrument the algorithm to generate the gradient of the Eikonal equation solution while fast marching.
|
virtual |
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.
|
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 103 of file itkFastMarchingUpwindGradientImageFilter.h.
|
virtual |
Choose whether the front must stop when the first target has been reached or all targets have been reached.
|
inline |
Definition at line 166 of file itkFastMarchingUpwindGradientImageFilter.h.
|
inline |
Choose whether the front must stop when the first target has been reached or all targets have been reached.
Definition at line 155 of file itkFastMarchingUpwindGradientImageFilter.h.
|
inline |
Choose whether the front must stop when the first target has been reached or all targets have been reached.
Definition at line 157 of file itkFastMarchingUpwindGradientImageFilter.h.
|
inline |
Choose whether the front must stop when the first target has been reached or all targets have been reached.
Definition at line 159 of file itkFastMarchingUpwindGradientImageFilter.h.
|
overrideprotectedvirtual |
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
|
private |
Definition at line 219 of file itkFastMarchingUpwindGradientImageFilter.h.
|
private |
Definition at line 217 of file itkFastMarchingUpwindGradientImageFilter.h.
|
private |
Definition at line 227 of file itkFastMarchingUpwindGradientImageFilter.h.
|
private |
Definition at line 215 of file itkFastMarchingUpwindGradientImageFilter.h.
|
private |
Definition at line 221 of file itkFastMarchingUpwindGradientImageFilter.h.
|
private |
Definition at line 212 of file itkFastMarchingUpwindGradientImageFilter.h.
|
private |
Definition at line 223 of file itkFastMarchingUpwindGradientImageFilter.h.
|
private |
Definition at line 225 of file itkFastMarchingUpwindGradientImageFilter.h.
|
static |
The dimension of the level set.
Definition at line 98 of file itkFastMarchingUpwindGradientImageFilter.h.