19 #ifndef __itkFastMarchingReachedTargetNodesStoppingCriterion_h
20 #define __itkFastMarchingReachedTargetNodesStoppingCriterion_h
36 template<
typename TInput,
typename TOutput >
109 typename std::vector< NodeType >::const_iterator
111 typename std::vector< NodeType >::const_iterator
114 while( pointsIter != pointsEnd )
116 if ( *pointsIter == iNode )
146 return "Target Nodes Reached with possible overshoot";
193 <<
"Number of target nodes to be reached is null" );
198 <<
"Number of target nodes to be reached is above the provided number of target nodes" );
211 #endif // __itkFastMarchingThresholdStoppingCriterion_h
std::string GetDescription() const
Get a short description of the stopping criterion.
TargetConditionType m_TargetCondition
void SetCurrentNode(const NodeType &iNode)
Set the current node.
std::vector< NodeType > m_TargetNodes
Light weight base class for most itk classes.
SmartPointer< const Self > ConstPointer
bool IsSatisfied() const
returns if the stopping condition is satisfied or not.
SmartPointer< Self > Pointer
vcl_size_t m_NumberOfTargetsToBeReached
void SetTargetCondition(const TargetConditionType &iCondition)
FastMarchingTraits< TInput, TOutput > Traits
Traits::NodeType NodeType
Traits::OutputPixelType OutputPixelType
virtual void Modified() const
Superclass::Traits Traits
FastMarchingReachedTargetNodesStoppingCriterion Self
~FastMarchingReachedTargetNodesStoppingCriterion()
FastMarchingReachedTargetNodesStoppingCriterion()
OutputPixelType m_CurrentValue
Superclass::NodeType NodeType
void operator=(const Self &)
FastMarchingStoppingCriterionBase< TInput, TOutput > Superclass
Abstract Stopping Criterion dedicated for Fast Marching Methods.
Define additional traits for native types such as int or float.
OutputPixelType m_StoppingValue
Stopping criterion for FastMarchingFilterBase.
void SetNumberOfTargetsToBeReached(const vcl_size_t &iN)
Set the number of target nodes to be reached.
virtual void SetTargetNodes(const std::vector< NodeType > &iNodes)
Set Target Nodes.
std::vector< NodeType > m_ReachedTargetNodes
OutputPixelType m_TargetOffset
Superclass::OutputPixelType OutputPixelType