You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This functions goal is to find a polygon which enclosures a user supplied mask. It's a kind of a complementary of Matlab poly2mask function. The difference is that all contour points are returned- without missing points for linearly related points. In order to get a 100% complementary of poly2mask all points inside straight lines should be omitted. In my case I actually need all those points, as index of ROI.
Combining mask2poly with poly2mask the user can produce a mask from a contour (line with X and Y coordinates), and vise-versa.
Cite As
Nikolay S. (2026). mask2poly (https://se.mathworks.com/matlabcentral/fileexchange/32112-mask2poly), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.5.0.0 (6.18 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.5.0.0 | Minor change |
||
| 1.4.0.0 | ---------------2011-07-25----------- Ordering points according to rule of "nearest point" (accurate but slow) added. |
||
| 1.3.0.0 | Minor changes, according to Daniel's remarks. |
||
| 1.2.0.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". |
||
| 1.1.0.0 | - "Inner" and "Outer" options replaced isIndex option
|
||
| 1.0.0.0 |
