19 #ifndef itkFastMarchingReachedTargetNodesStoppingCriterion_h
20 #define itkFastMarchingReachedTargetNodesStoppingCriterion_h
36 template<
typename TInput,
typename TOutput >
38 public FastMarchingStoppingCriterionBase< TInput, TOutput >
44 using Superclass = FastMarchingStoppingCriterionBase< TInput, TOutput >;
47 using Traits =
typename Superclass::Traits;
54 FastMarchingStoppingCriterionBase );
57 using NodeType =
typename Superclass::NodeType;
111 typename std::vector< NodeType >::const_iterator
113 typename std::vector< NodeType >::const_iterator
116 while( pointsIter != pointsEnd )
118 if ( *pointsIter == iNode )
148 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" );
207 #endif // itkFastMarchingThresholdStoppingCriterion_h
TargetConditionType m_TargetCondition
std::vector< NodeType > m_TargetNodes
std::string GetDescription() const override
Get a short description of the stopping criterion.
Define numeric traits for std::vector.
void SetCurrentNode(const NodeType &iNode) override
Set the current node.
bool IsSatisfied() const override
returns if the stopping condition is satisfied or not.
typename Superclass::OutputPixelType OutputPixelType
~FastMarchingReachedTargetNodesStoppingCriterion() override=default
vcl_size_t m_NumberOfTargetsToBeReached
void SetTargetCondition(const TargetConditionType &iCondition)
FastMarchingStoppingCriterionBase< TInput, TOutput > Superclass
typename Superclass::NodeType NodeType
typename Superclass::Traits Traits
FastMarchingReachedTargetNodesStoppingCriterion()
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