ITK
4.1.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.
Definition at line 61 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::AxisNodeType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::AxisNodeType |
Definition at line 85 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef SmartPointer< const Self > itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::ConstPointer |
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 69 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef GradientImageType::Pointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GradientImagePointer |
GradientImagePointer typedef support.
Definition at line 126 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Image< GradientPixelType, itkGetStaticConstMacro(SetDimension) > itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GradientImageType |
GradientImage typedef support.
Definition at line 123 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef CovariantVector< PixelType, itkGetStaticConstMacro(SetDimension) > itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GradientPixelType |
GradientPixel typedef support.
Definition at line 119 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::IndexType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::IndexType |
Index typedef support.
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 90 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::LabelImageType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LabelImageType |
LabelImage typedef support.
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 83 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::LevelSetImageType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LevelSetImageType |
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 80 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::LevelSetIndexType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LevelSetIndexType |
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 92 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::LevelSetPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LevelSetPointer |
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 81 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::LevelSetType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::LevelSetType |
Inherited typedefs.
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 75 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::NodeContainer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::NodeContainer |
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 87 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::NodeContainerPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::NodeContainerPointer |
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 88 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::NodeType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::NodeType |
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 86 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::OutputSpacingType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::OutputSpacingType |
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 91 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::PixelType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::PixelType |
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 84 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef SmartPointer< Self > itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::Pointer |
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 68 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::OutputPointType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::PointType |
Definition at line 94 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef FastMarchingUpwindGradientImageFilter itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::Self |
Standard class typdedefs.
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 66 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::SpeedImageConstPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SpeedImageConstPointer |
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 82 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef Superclass::SpeedImageType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SpeedImageType |
SpeedImage typedef support.
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 79 of file itkFastMarchingUpwindGradientImageFilter.h.
typedef FastMarchingImageFilter< TLevelSet, TSpeedImage > itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::Superclass |
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 67 of file itkFastMarchingUpwindGradientImageFilter.h.
anonymous enum |
Definition at line 177 of file itkFastMarchingUpwindGradientImageFilter.h.
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::FastMarchingUpwindGradientImageFilter | ( | ) | [protected] |
End concept checking
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::~FastMarchingUpwindGradientImageFilter | ( | ) | [inline, protected] |
End concept checking
Definition at line 195 of file itkFastMarchingUpwindGradientImageFilter.h.
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::FastMarchingUpwindGradientImageFilter | ( | const Self & | ) | [private] |
virtual void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::ComputeGradient | ( | const IndexType & | index, |
const LevelSetImageType * | output, | ||
const LabelImageType * | labelImage, | ||
GradientImageType * | gradientImage | ||
) | [protected, virtual] |
virtual::itk::LightObject::Pointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::CreateAnother | ( | void | ) | const [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 >.
void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GenerateData | ( | void | ) | [protected, virtual] |
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 void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GenerateGradientImageOff | ( | ) | [virtual] |
Get the GenerateGradientImage flag.
virtual void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GenerateGradientImageOn | ( | ) | [virtual] |
Get the GenerateGradientImage flag.
virtual const bool& itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GetGenerateGradientImage | ( | ) | [virtual] |
Get the GenerateGradientImage flag.
GradientImagePointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GetGradientImage | ( | ) | const [inline] |
Get the gradient image.
Definition at line 129 of file itkFastMarchingUpwindGradientImageFilter.h.
virtual const char* itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
virtual const SizeValueType& itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GetNumberOfTargets | ( | ) | [virtual] |
Get the number of targets.
NodeContainerPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GetReachedTargetPoints | ( | ) | [inline] |
Get the container of Reached Target Points.
Definition at line 114 of file itkFastMarchingUpwindGradientImageFilter.h.
virtual const double& itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GetTargetOffset | ( | ) | [virtual] |
Get the TargetOffset ivar.
NodeContainerPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GetTargetPoints | ( | ) | [inline] |
Get the container of Target Points.
Definition at line 110 of file itkFastMarchingUpwindGradientImageFilter.h.
virtual const int& itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GetTargetReachedMode | ( | ) | [virtual] |
Choose whether the front must stop when the first target has been reached or all targets have been reached.
virtual const double& itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::GetTargetValue | ( | ) | [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.
virtual void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::Initialize | ( | LevelSetImageType * | ) | [protected, virtual] |
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
static Pointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::operator= | ( | const Self & | ) | [private] |
PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
End concept checking
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
virtual void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SetGenerateGradientImage | ( | bool | _arg | ) | [virtual] |
Set the GenerateGradientImage flag. Instrument the algorithm to generate the gradient of the Eikonal equation solution while fast marching.
virtual void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SetTargetOffset | ( | double | _arg | ) | [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.
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 102 of file itkFastMarchingUpwindGradientImageFilter.h.
virtual void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SetTargetReachedMode | ( | int | _arg | ) | [virtual] |
Choose whether the front must stop when the first target has been reached or all targets have been reached.
void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SetTargetReachedModeToAllTargets | ( | ) | [inline] |
Definition at line 165 of file itkFastMarchingUpwindGradientImageFilter.h.
void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SetTargetReachedModeToNoTargets | ( | ) | [inline] |
Choose whether the front must stop when the first target has been reached or all targets have been reached.
Definition at line 154 of file itkFastMarchingUpwindGradientImageFilter.h.
void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SetTargetReachedModeToOneTarget | ( | ) | [inline] |
Choose whether the front must stop when the first target has been reached or all targets have been reached.
Definition at line 156 of file itkFastMarchingUpwindGradientImageFilter.h.
void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SetTargetReachedModeToSomeTargets | ( | SizeValueType | numberOfTargets | ) | [inline] |
Choose whether the front must stop when the first target has been reached or all targets have been reached.
Definition at line 158 of file itkFastMarchingUpwindGradientImageFilter.h.
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::typedef | ( | Concept::DivisionOperators< typename TLevelSet::PixelType, double > | ) |
Begin concept checking This class requires LevelSetDoubleDivisionOperatorsCheck in the form of ( Concept::DivisionOperators< typename TLevelSet::PixelType, double > )
itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::typedef | ( | Concept::DivisionAndAssignOperators< typename TLevelSet::PixelType, double > | ) |
This class requires LevelSetDoubleDivisionAndAssignOperatorsCheck in the form of ( Concept::DivisionAndAssignOperators< typename TLevelSet::PixelType, double > )
virtual void itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::UpdateNeighbors | ( | const IndexType & | index, |
const SpeedImageType * | , | ||
LevelSetImageType * | |||
) | [protected, virtual] |
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
bool itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::m_GenerateGradientImage [private] |
Definition at line 222 of file itkFastMarchingUpwindGradientImageFilter.h.
GradientImagePointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::m_GradientImage [private] |
Definition at line 220 of file itkFastMarchingUpwindGradientImageFilter.h.
SizeValueType itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::m_NumberOfTargets [private] |
Definition at line 230 of file itkFastMarchingUpwindGradientImageFilter.h.
NodeContainerPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::m_ReachedTargetPoints [private] |
Definition at line 218 of file itkFastMarchingUpwindGradientImageFilter.h.
double itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::m_TargetOffset [private] |
Definition at line 224 of file itkFastMarchingUpwindGradientImageFilter.h.
NodeContainerPointer itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::m_TargetPoints [private] |
Definition at line 217 of file itkFastMarchingUpwindGradientImageFilter.h.
int itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::m_TargetReachedMode [private] |
Definition at line 226 of file itkFastMarchingUpwindGradientImageFilter.h.
double itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::m_TargetValue [private] |
Definition at line 228 of file itkFastMarchingUpwindGradientImageFilter.h.
const unsigned int itk::FastMarchingUpwindGradientImageFilter< TLevelSet, TSpeedImage >::SetDimension = Superclass::SetDimension [static] |
The dimension of the level set.
Reimplemented from itk::FastMarchingImageFilter< TLevelSet, TSpeedImage >.
Definition at line 97 of file itkFastMarchingUpwindGradientImageFilter.h.