template<typename TLevelSet, typename 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.
For an alternative implementation, see itk::FastMarchingUpwindGradientImageFilterBase.
- Author
- Luca Antiga Ph.D. Biomedical Technologies Laboratory, Bioengineering Department, Mario Negri Institute, Italy.
Definition at line 62 of file itkFastMarchingUpwindGradientImageFilter.h.
|
enum | {
NoTargets,
OneTarget,
SomeTargets,
AllTargets
} |
|
using | AxisNodeType = typename Superclass::AxisNodeType |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | GradientImagePointer = typename GradientImageType::Pointer |
|
using | GradientImageType = Image< GradientPixelType, Self::SetDimension > |
|
using | GradientPixelType = CovariantVector< PixelType, Self::SetDimension > |
|
using | IndexType = typename Superclass::IndexType |
|
using | LabelImageType = typename Superclass::LabelImageType |
|
using | LevelSetImageType = typename Superclass::LevelSetImageType |
|
using | LevelSetIndexType = typename Superclass::LevelSetIndexType |
|
using | LevelSetPointer = typename Superclass::LevelSetPointer |
|
using | LevelSetType = typename Superclass::LevelSetType |
|
using | NodeContainer = typename Superclass::NodeContainer |
|
using | NodeContainerPointer = typename Superclass::NodeContainerPointer |
|
using | NodeType = typename Superclass::NodeType |
|
using | OutputSpacingType = typename Superclass::OutputSpacingType |
|
using | PixelType = typename Superclass::PixelType |
|
using | Pointer = SmartPointer< Self > |
|
using | PointType = typename Superclass::OutputPointType |
|
using | Self = FastMarchingUpwindGradientImageFilter |
|
using | SpeedImageConstPointer = typename Superclass::SpeedImageConstPointer |
|
using | SpeedImageType = typename Superclass::SpeedImageType |
|
using | Superclass = FastMarchingImageFilter< TLevelSet, TSpeedImage > |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | IndexType = Index< Self::SetDimension > |
|
using | LabelImagePointer = typename LabelImageType::Pointer |
|
using | LabelImageType = Image< unsigned char, Self::SetDimension > |
|
enum | LabelType {
FarPoint = 0,
AlivePoint,
TrialPoint,
InitialTrialPoint,
OutsidePoint
} |
|
using | LevelSetImageType = typename LevelSetType::LevelSetImageType |
|
using | LevelSetPointer = typename LevelSetType::LevelSetPointer |
|
using | LevelSetType = LevelSetTypeDefault< TLevelSet > |
|
using | NodeContainer = typename LevelSetType::NodeContainer |
|
using | NodeContainerPointer = typename LevelSetType::NodeContainerPointer |
|
using | NodeIndexType = typename NodeType::IndexType |
|
using | NodeType = typename LevelSetType::NodeType |
|
using | OutputDirectionType = typename LevelSetImageType::DirectionType |
|
using | OutputPointType = typename LevelSetImageType::PointType |
|
using | OutputRegionType = typename LevelSetImageType::RegionType |
|
using | OutputSizeType = typename LevelSetImageType::SizeType |
|
using | OutputSpacingType = typename LevelSetImageType::SpacingType |
|
using | PixelType = typename LevelSetType::PixelType |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = FastMarchingImageFilter |
|
using | SpeedImageConstPointer = typename SpeedImageType::ConstPointer |
|
using | SpeedImagePointer = typename SpeedImageType::Pointer |
|
using | SpeedImageType = TSpeedImage |
|
using | Superclass = ImageToImageFilter< TSpeedImage, TLevelSet > |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | InputImageConstPointer = typename InputImageType::ConstPointer |
|
using | InputImagePixelType = typename InputImageType::PixelType |
|
using | InputImagePointer = typename InputImageType::Pointer |
|
using | InputImageRegionType = typename InputImageType::RegionType |
|
using | InputImageType = TSpeedImage |
|
using | OutputImagePixelType = typename Superclass::OutputImagePixelType |
|
using | OutputImageRegionType = typename Superclass::OutputImageRegionType |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = ImageToImageFilter |
|
using | Superclass = ImageSource< TLevelSet > |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | DataObjectIdentifierType = Superclass::DataObjectIdentifierType |
|
using | DataObjectPointer = DataObject::Pointer |
|
using | DataObjectPointerArraySizeType = Superclass::DataObjectPointerArraySizeType |
|
using | OutputImagePixelType = typename OutputImageType::PixelType |
|
using | OutputImagePointer = typename OutputImageType::Pointer |
|
using | OutputImageRegionType = typename OutputImageType::RegionType |
|
using | OutputImageType = TLevelSet |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = ImageSource |
|
using | Superclass = ProcessObject |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | DataObjectIdentifierType = DataObject::DataObjectIdentifierType |
|
using | DataObjectPointer = DataObject::Pointer |
|
using | DataObjectPointerArray = std::vector< DataObjectPointer > |
|
using | DataObjectPointerArraySizeType = DataObjectPointerArray::size_type |
|
using | MultiThreaderType = MultiThreaderBase |
|
using | NameArray = std::vector< DataObjectIdentifierType > |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = ProcessObject |
|
using | Superclass = Object |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = Object |
|
using | Superclass = LightObject |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = LightObject |
|
|
virtual void | ComputeGradient (const IndexType &index, const LevelSetImageType *output, const LabelImageType *labelImage, GradientImageType *gradientImage) |
|
| FastMarchingUpwindGradientImageFilter () |
|
void | GenerateData () override |
|
void | Initialize (LevelSetImageType *) override |
|
void | PrintSelf (std::ostream &os, Indent indent) const override |
|
void | UpdateNeighbors (const IndexType &index, const SpeedImageType *, LevelSetImageType *) override |
|
| ~FastMarchingUpwindGradientImageFilter () override=default |
|
void | EnlargeOutputRequestedRegion (DataObject *output) override |
|
| FastMarchingImageFilter () |
|
void | GenerateOutputInformation () override |
|
virtual const PixelType & | GetLargeValue () const |
|
virtual const LevelSetIndexType & | GetLastIndex () const |
|
const AxisNodeType & | GetNodeUsedInCalculation (unsigned int idx) const |
|
virtual const LevelSetIndexType & | GetStartIndex () const |
|
virtual double | UpdateValue (const IndexType &index, const SpeedImageType *, LevelSetImageType *) |
|
| ~FastMarchingImageFilter () override=default |
|
virtual void | CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion) |
|
virtual void | CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion) |
|
void | GenerateInputRequestedRegion () override |
|
| ImageToImageFilter () |
|
void | PrintSelf (std::ostream &os, Indent indent) const override |
|
void | VerifyInputInformation () ITKv5_CONST override |
|
| ~ImageToImageFilter () override |
|
void | PushBackInput (const DataObject *input) override |
|
void | PushFrontInput (const DataObject *input) override |
|
virtual void | AfterThreadedGenerateData () |
|
virtual void | AllocateOutputs () |
|
virtual void | BeforeThreadedGenerateData () |
|
void | ClassicMultiThread (ThreadFunctionType callbackFunction) |
|
void | GenerateData () override |
|
virtual const
ImageRegionSplitterBase * | GetImageRegionSplitter () const |
|
| ImageSource () |
|
virtual unsigned int | SplitRequestedRegion (unsigned int i, unsigned int pieces, OutputImageRegionType &splitRegion) |
|
| ~ImageSource () override=default |
|
virtual void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) |
|
virtual void | DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread) |
|
virtual bool | GetDynamicMultiThreading () const |
|
virtual void | SetDynamicMultiThreading (bool _arg) |
|
virtual void | DynamicMultiThreadingOn () |
|
virtual void | DynamicMultiThreadingOff () |
|
virtual void | AddInput (DataObject *input) |
|
void | AddOptionalInputName (const DataObjectIdentifierType &) |
|
void | AddOptionalInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx) |
|
virtual void | AddOutput (DataObject *output) |
|
bool | AddRequiredInputName (const DataObjectIdentifierType &) |
|
bool | AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx) |
|
virtual void | CacheInputReleaseDataFlags () |
|
virtual void | GenerateOutputRequestedRegion (DataObject *output) |
|
DataObject * | GetInput (const DataObjectIdentifierType &key) |
|
const DataObject * | GetInput (const DataObjectIdentifierType &key) const |
|
virtual const
DataObjectPointerArraySizeType & | GetNumberOfRequiredInputs () const |
|
virtual const
DataObjectPointerArraySizeType & | GetNumberOfRequiredOutputs () const |
|
bool | IsIndexedInputName (const DataObjectIdentifierType &) const |
|
bool | IsIndexedOutputName (const DataObjectIdentifierType &) const |
|
bool | IsRequiredInputName (const DataObjectIdentifierType &) const |
|
DataObjectPointerArraySizeType | MakeIndexFromInputName (const DataObjectIdentifierType &name) const |
|
DataObjectPointerArraySizeType | MakeIndexFromOutputName (const DataObjectIdentifierType &name) const |
|
DataObjectIdentifierType | MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const |
|
DataObjectIdentifierType | MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const |
|
| ProcessObject () |
|
virtual void | PropagateResetPipeline () |
|
virtual void | ReleaseInputs () |
|
virtual void | RemoveInput (const DataObjectIdentifierType &key) |
|
virtual void | RemoveInput (DataObjectPointerArraySizeType) |
|
virtual void | RemoveOutput (const DataObjectIdentifierType &key) |
|
virtual void | RemoveOutput (DataObjectPointerArraySizeType idx) |
|
bool | RemoveRequiredInputName (const DataObjectIdentifierType &) |
|
virtual void | RestoreInputReleaseDataFlags () |
|
virtual void | SetInput (const DataObjectIdentifierType &key, DataObject *input) |
|
virtual void | SetNthInput (DataObjectPointerArraySizeType num, DataObject *input) |
|
virtual void | SetNthOutput (DataObjectPointerArraySizeType num, DataObject *output) |
|
void | SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num) |
|
void | SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num) |
|
virtual void | SetNumberOfRequiredInputs (DataObjectPointerArraySizeType) |
|
virtual void | SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg) |
|
virtual void | SetOutput (const DataObjectIdentifierType &key, DataObject *output) |
|
virtual void | SetPrimaryInput (DataObject *input) |
|
virtual void | SetPrimaryOutput (DataObject *output) |
|
void | SetRequiredInputNames (const NameArray &) |
|
virtual void | VerifyPreconditions () ITKv5_CONST |
|
| ~ProcessObject () override |
|
DataObject * | GetInput (DataObjectPointerArraySizeType idx) |
|
const DataObject * | GetInput (DataObjectPointerArraySizeType idx) const |
|
DataObject * | GetPrimaryInput () |
|
const DataObject * | GetPrimaryInput () const |
|
virtual void | SetPrimaryInputName (const DataObjectIdentifierType &key) |
|
virtual const char * | GetPrimaryInputName () const |
|
DataObject * | GetOutput (const DataObjectIdentifierType &key) |
|
const DataObject * | GetOutput (const DataObjectIdentifierType &key) const |
|
virtual void | SetPrimaryOutputName (const DataObjectIdentifierType &key) |
|
virtual const char * | GetPrimaryOutputName () const |
|
DataObject * | GetOutput (DataObjectPointerArraySizeType idx) |
|
const DataObject * | GetOutput (DataObjectPointerArraySizeType idx) const |
|
DataObject * | GetPrimaryOutput () |
|
const DataObject * | GetPrimaryOutput () const |
|
| Object () |
|
bool | PrintObservers (std::ostream &os, Indent indent) const |
|
virtual void | SetTimeStamp (const TimeStamp &time) |
|
| ~Object () override |
|
virtual LightObject::Pointer | InternalClone () const |
|
| LightObject () |
|
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
|
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
|
virtual | ~LightObject () |
|