mask2poly(mask)

Convert mask to region-of-interest polygons

Download
Download

You are now following this Submission

Cite As

Kesh Ikuma (2026). mask2poly(mask) (https://www.mathworks.com/matlabcentral/fileexchange/45980-mask2poly-mask), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

* Rewritten the code handling the mask edges that terminate at the mask boundary. A bug in previous version resulted in an infinite loop.
* Fixed the bug that caused a erroneous ROI polygon from a one-pixel wide mask

Download
1.3.0

Bug fixes:
- fixed error when mask covers the entire area (caused by missing IsFilled field)
- fixed the bug in the algorithm to determine IsFilled output

Download
1.2.2

bug fix

Download
1.2.0

fixed missing IsFilled field if mask contains no ROI

Download
1.1.0

Added example to the description

Download
1.0.0

Download