bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / graph / _mcp / MCP / goal_reached
cython_function_or_method
skimage.graph._mcp:MCP.goal_reached
Signature
def goal_reached ( self , index , cumcost ) Summary
int goal_reached(int index, float cumcost) This method is called each iteration after popping an index from the heap, before examining the neighbors.
Extended Summary
This method can be overloaded to modify the behavior of the MCP algorithm. An example might be to stop the algorithm when a certain cumulative cost is reached, or when the front is a certain distance away from the seed point.
This method should return 1 if the algorithm should not check the current point's neighbors and 2 if the algorithm is now done.
Aliases
-
skimage.graph.MCP.goal_reached