Introduction - If you have any usage issues, please Google them yourself
Completed contours correspond to ridges of an extension (ext) of the characteristic function of the uncompleted curve.
Anisotropic extension is performed on the characteristic function fbound of an image set given by
the binary map boundary to the whole image domain. Extension is initially driven by
\xi=(EigVect{1}, EigVect{2}) (which should match with the contour tangent direction)
computed as the direction of maximum coherence of the distance map to the contour to close.
It is updated every N iterations with DCV over the distance map to the ridges/thinning of the
evolved image.
Two different stop criteria are supported:
Number of Connected Components ( numcomp ). Contour Completion. Stop when the extended
contour (curve of level 1) has exactly Ncomp connected components.
Difference between two consecutive iterations ( tol )
Speed Stabilizes ( speed_stab ).
[extended]=ContourCompletion(BoundCond,f,DCVParam,StopParam,SaveParam)