mask2poly
mask2poly

mask2poly

Finds a polygon enclosing the user defined mask. Inverse of poly2mask :).

Download
Download

You are now following this Submission

Cite As

Nikolay S. (2026). mask2poly (https://www.mathworks.com/matlabcentral/fileexchange/32112-mask2poly), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Image Processing and Computer Vision in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.5.0

Minor change

Download
1.4.0

---------------2011-07-25----------- Ordering points according to rule of "nearest point" (accurate but slow) added.

Download
1.3.0

Minor changes, according to Daniel's remarks.

Download
1.2.0

An option to reorder the points so it will define a CW contour. Now you can plot the contours with line connecting the dots, without getting crazy lines all over the mask. Enable the "flagCW".

Download
1.1.0

- "Inner" and "Outer" options replaced isIndex option
- Diff based edges calculation replaced contour based calculation for "Inner" and "Outer" options, which resulted in ~x3 shorter run time.

Download
1.0.0

Download