Constructs a nonconvex boundary for a point set using morphological operations.
1 2 3 4 5 6 7 8 9 10
2D point coordinates (2-column matrix).
The desired extension radius. Also determines the smallest allowed convex curvature radius. Negative values are interpreted as fractions of the approximate initial set diameter.
The desired minimal concave curvature radius. Default is
The internal computation resolution. A warning will be issued when this needs to be increased for higher accuracy, with the required resolution stated.
The polygonal curve simplification tolerance used for simplifying the
resulting boundary curve. See
Morphological dilation by
convex, followed by closing by
concave, with minimum concave curvature radius
If the dilated set has no gaps of width between
2*convex*(sqrt(1+2*concave/convex) - 1)
then the minimum convex curvature radius is
concave=0 delegates to
The implementation is based on the identity
dilation(a) & closing(b) = dilation(a+b) & erosion(b)
where all operations are with respect to disks with the specified radii.
nndistF from the
Finn Lindgren email@example.com
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.