image thumbnail

updated 3 years ago

mask2poly by Nikolay S.

Finds a polygon enclosing the user defined mask. Inverse of poly2mask :). (contour, roi, mask)

[xCW,yCW]=sortPoint2ContourCW(x,y)

[xDistSort,yDistSort]=sortPointMinDist(x,y)

poly=mask2poly(mask,countourType,sortPointsMethod)

Contact us