ITK
4.3.0
Insight Segmentation and Registration Toolkit
|
#include <itkFastMarchingBase.h>
Abstract class to solve an Eikonal based-equation using Fast Marching Method.
Fast marching solves an Eikonal equation where the speed is always non-negative and depends on the position only. Starting from an initial position on the front, fast marching systematically moves the front forward one node at a time.
Updates are preformed using an entropy satisfy scheme where only "upwind" neighborhoods are used. This implementation of Fast Marching uses a std::priority_queue to locate the next proper node to update.
Fast Marching sweeps through N points in (N log N) steps to obtain the arrival time value as the front propagates through the domain.
The initial front is specified by two containers:
In order for the filter to evolve, at least some trial nodes must be specified. These can for instance be specified as the layer of nodes around the alive ones.
The algorithm is terminated early by setting an appropriate stopping criterion, or if there are no more nodes to process.
TTraits | traits which includes definition such as:
|
NJ Tustison, BA Avants, MF Siqueira, JC Gee. "Topological Well- Composedness and Glamorous Glue: A Digital Gluing Algorithm for Topologically Constrained Front Propagation, IEEE Transactions on Image Processing, 20(6):1756-1761, June 2011.
Essentially, one can constrain the propagating front(s) such that they either:
Whereas the majority of related work uses the digital topological concept of "simple points" to constrain the evolving front, this filter uses the concept of "well-composedness". Advantages of the latter over the former includes being able to use the standard marching cubes algorithm to produce a mesh whose genus is identical to that of the evolved front(s).
Definition at line 102 of file itkFastMarchingBase.h.
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Traits::InputDomainPointer | InputDomainPointer |
typedef Traits::InputDomainType | InputDomainType |
typedef Traits::InputPixelType | InputPixelType |
typedef Traits::LabelType | LabelType |
typedef Traits::NodePairContainerConstIterator | NodePairContainerConstIterator |
typedef Traits::NodePairContainerPointer | NodePairContainerPointer |
typedef Traits::NodePairContainerType | NodePairContainerType |
typedef Traits::NodePairType | NodePairType |
typedef Traits::NodeType | NodeType |
typedef Traits::OutputDomainPointer | OutputDomainPointer |
typedef Traits::OutputDomainType | OutputDomainType |
typedef Traits::OutputPixelType | OutputPixelType |
typedef SmartPointer< Self > | Pointer |
typedef FastMarchingBase | Self |
typedef StoppingCriterionType::Pointer | StoppingCriterionPointer |
typedef FastMarchingStoppingCriterionBase < TInput, TOutput > | StoppingCriterionType |
typedef SuperclassType | Superclass |
typedef Traits::SuperclassType | SuperclassType |
enum | TopologyCheckType { Nothing = 0, NoHandles, Strict } |
typedef FastMarchingTraits < TInput, TOutput > | Traits |
Protected Types | |
typedef std::vector< NodePairType > | HeapContainerType |
typedef std::greater < NodePairType > | NodeComparerType |
typedef std::priority_queue < NodeType, HeapContainerType, NodeComparerType > | PriorityQueueType |
Protected Member Functions | |
virtual bool | CheckTopology (OutputDomainType *oDomain, const NodeType &iNode)=0 |
FastMarchingBase () | |
void | GenerateData () |
virtual unsigned char | GetLabelValueForGivenNode (const NodeType &iNode) const =0 |
virtual const OutputPixelType | GetOutputValue (OutputDomainType *oDomain, const NodeType &iNode) const =0 |
virtual IdentifierType | GetTotalNumberOfNodes () const =0 |
void | Initialize (OutputDomainType *oDomain) |
virtual void | InitializeOutput (OutputDomainType *oDomain)=0 |
void | PrintSelf (std::ostream &os, Indent indent) const |
virtual void | SetLabelValueForGivenNode (const NodeType &iNode, const LabelType &iLabel)=0 |
virtual void | SetOutputValue (OutputDomainType *oDomain, const NodeType &iNode, const OutputPixelType &iValue)=0 |
virtual void | UpdateNeighbors (OutputDomainType *oDomain, const NodeType &iNode)=0 |
virtual void | UpdateValue (OutputDomainType *oDomain, const NodeType &iNode)=0 |
virtual | ~FastMarchingBase () |
Private Member Functions | |
FastMarchingBase (const Self &) | |
void | operator= (const Self &) |
typedef SmartPointer< const Self > itk::FastMarchingBase< TInput, TOutput >::ConstPointer |
Definition at line 112 of file itkFastMarchingBase.h.
|
protected |
Definition at line 244 of file itkFastMarchingBase.h.
typedef Traits::InputDomainPointer itk::FastMarchingBase< TInput, TOutput >::InputDomainPointer |
Definition at line 116 of file itkFastMarchingBase.h.
typedef Traits::InputDomainType itk::FastMarchingBase< TInput, TOutput >::InputDomainType |
Input Domain related definitions
Definition at line 115 of file itkFastMarchingBase.h.
typedef Traits::InputPixelType itk::FastMarchingBase< TInput, TOutput >::InputPixelType |
Definition at line 117 of file itkFastMarchingBase.h.
typedef Traits::LabelType itk::FastMarchingBase< TInput, TOutput >::LabelType |
Definition at line 134 of file itkFastMarchingBase.h.
|
protected |
Definition at line 245 of file itkFastMarchingBase.h.
typedef Traits::NodePairContainerConstIterator itk::FastMarchingBase< TInput, TOutput >::NodePairContainerConstIterator |
Definition at line 132 of file itkFastMarchingBase.h.
typedef Traits::NodePairContainerPointer itk::FastMarchingBase< TInput, TOutput >::NodePairContainerPointer |
Definition at line 130 of file itkFastMarchingBase.h.
typedef Traits::NodePairContainerType itk::FastMarchingBase< TInput, TOutput >::NodePairContainerType |
Definition at line 129 of file itkFastMarchingBase.h.
typedef Traits::NodePairType itk::FastMarchingBase< TInput, TOutput >::NodePairType |
NodePairType pair of node and corresponding value
Definition at line 128 of file itkFastMarchingBase.h.
typedef Traits::NodeType itk::FastMarchingBase< TInput, TOutput >::NodeType |
NodeType type of node
Definition at line 125 of file itkFastMarchingBase.h.
typedef Traits::OutputDomainPointer itk::FastMarchingBase< TInput, TOutput >::OutputDomainPointer |
Definition at line 121 of file itkFastMarchingBase.h.
typedef Traits::OutputDomainType itk::FastMarchingBase< TInput, TOutput >::OutputDomainType |
Output Domain related definitions
Definition at line 120 of file itkFastMarchingBase.h.
typedef Traits::OutputPixelType itk::FastMarchingBase< TInput, TOutput >::OutputPixelType |
Definition at line 122 of file itkFastMarchingBase.h.
typedef SmartPointer< Self > itk::FastMarchingBase< TInput, TOutput >::Pointer |
Definition at line 111 of file itkFastMarchingBase.h.
|
protected |
Definition at line 251 of file itkFastMarchingBase.h.
typedef FastMarchingBase itk::FastMarchingBase< TInput, TOutput >::Self |
Definition at line 109 of file itkFastMarchingBase.h.
typedef StoppingCriterionType::Pointer itk::FastMarchingBase< TInput, TOutput >::StoppingCriterionPointer |
Definition at line 138 of file itkFastMarchingBase.h.
typedef FastMarchingStoppingCriterionBase< TInput, TOutput > itk::FastMarchingBase< TInput, TOutput >::StoppingCriterionType |
StoppingCriterionType stopping criterion
Definition at line 137 of file itkFastMarchingBase.h.
typedef SuperclassType itk::FastMarchingBase< TInput, TOutput >::Superclass |
Definition at line 110 of file itkFastMarchingBase.h.
typedef Traits::SuperclassType itk::FastMarchingBase< TInput, TOutput >::SuperclassType |
Definition at line 106 of file itkFastMarchingBase.h.
typedef FastMarchingTraits<TInput, TOutput> itk::FastMarchingBase< TInput, TOutput >::Traits |
Definition at line 105 of file itkFastMarchingBase.h.
enum itk::FastMarchingBase::TopologyCheckType |
Definition at line 155 of file itkFastMarchingBase.h.
|
protected |
Constructor.
|
protectedvirtual |
Destructor.
|
private |
|
protectedpure virtual |
Check if the current node violate topological criterion.
[in] | oDomain | |
[in] | iNode |
Implemented in itk::FastMarchingImageFilterBase< TInput, TOutput >.
|
virtual |
Get the Collect Points flag.
|
virtual |
Get the Collect Points flag.
|
protected |
|
virtual |
Set/Get AlivePoints
|
virtual |
Get the Collect Points flag.
|
virtual |
Set/Get ForbiddenPoints
|
protectedpure virtual |
Get the LabelType Value for a given node.
[in] | iNode |
Implemented in itk::FastMarchingImageFilterBase< TInput, TOutput >, and itk::FastMarchingQuadEdgeMeshFilterBase< TInput, TOutput >.
|
virtual |
Set/Get NormalizationFactor.
|
protectedpure virtual |
Get the ouput value (front value) for a given node.
Implemented in itk::FastMarchingImageFilterBase< TInput, TOutput >.
|
virtual |
Set/Get ProcessedPoints
|
virtual |
Set/Get SpeedConstant.
|
virtual |
Set/Get the Stopping Criterion.
|
virtual |
Get the value reached by the front when it stops propagating.
|
virtual |
Set/Get the TopologyCheckType macro indicating whether the user wants to check topology (and which one).
|
protectedpure virtual |
Get the total number of nodes in the domain.
Implemented in itk::FastMarchingImageFilterBase< TInput, TOutput >, and itk::FastMarchingQuadEdgeMeshFilterBase< TInput, TOutput >.
|
virtual |
Set/Get TrialPoints
|
protected |
|
protectedpure virtual |
Implemented in itk::FastMarchingImageFilterBase< TInput, TOutput >.
|
private |
|
protected |
PrintSelf method.
|
virtual |
Set/Get AlivePoints
|
virtual |
Set the Collect Points flag. Instrument the algorithm to collect a container of all nodes which it has visited. Useful for creating Narrowbands for level set algorithms that supports narrow banding.
|
virtual |
Set/Get ForbiddenPoints
|
protectedpure virtual |
Set the Label Value for a given node.
[in] | iNode | |
[in] | iLabel |
Implemented in itk::FastMarchingImageFilterBase< TInput, TOutput >, and itk::FastMarchingQuadEdgeMeshFilterBase< TInput, TOutput >.
|
virtual |
|
protectedpure virtual |
Set the output value (front value) for a given node.
Implemented in itk::FastMarchingImageFilterBase< TInput, TOutput >.
|
virtual |
Set/Get ProcessedPoints
|
virtual |
|
virtual |
|
virtual |
Set/Get the TopologyCheckType macro indicating whether the user wants to check topology (and which one).
|
virtual |
Set/Get TrialPoints
|
protectedpure virtual |
Update neighbors to a given node.
[in] | oDomain | |
[in] | iNode |
Implemented in itk::FastMarchingImageFilterBase< TInput, TOutput >.
|
protectedpure virtual |
Update value for a given node.
[in] | oDomain | |
[in] | iNode |
Implemented in itk::FastMarchingImageFilterBase< TInput, TOutput >.
|
protected |
Definition at line 237 of file itkFastMarchingBase.h.
|
protected |
Definition at line 241 of file itkFastMarchingBase.h.
|
protected |
Definition at line 239 of file itkFastMarchingBase.h.
|
protected |
Definition at line 253 of file itkFastMarchingBase.h.
|
protected |
Definition at line 229 of file itkFastMarchingBase.h.
|
protected |
Definition at line 233 of file itkFastMarchingBase.h.
|
protected |
Definition at line 230 of file itkFastMarchingBase.h.
|
protected |
Definition at line 238 of file itkFastMarchingBase.h.
|
protected |
Definition at line 228 of file itkFastMarchingBase.h.
|
protected |
Definition at line 226 of file itkFastMarchingBase.h.
|
protected |
Definition at line 232 of file itkFastMarchingBase.h.
|
protected |
Definition at line 255 of file itkFastMarchingBase.h.
|
protected |
Definition at line 234 of file itkFastMarchingBase.h.
|
protected |
Definition at line 236 of file itkFastMarchingBase.h.