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" );
210 #endif // itkFastMarchingThresholdStoppingCriterion_h
TargetConditionType m_TargetCondition
std::vector< NodeType > m_TargetNodes
Light weight base class for most itk classes.
std::string GetDescription() const override
Get a short description of the stopping criterion.
SmartPointer< const Self > ConstPointer
void SetCurrentNode(const NodeType &iNode) override
Set the current node.
~FastMarchingReachedTargetNodesStoppingCriterion() override
bool IsSatisfied() const override
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()
OutputPixelType m_CurrentValue
Superclass::NodeType NodeType
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