How to get all the x,y coordinates of inner boundary of an image?
4 次查看(过去 30 天)
显示 更早的评论
I need to draw a polygon shape boundary over the image and access all the coordinate points inside the boundary-
Please help me to draw the arbitary shape boundry over an image and store all the coordinates of [x y] in a variable.
Thanks in advance.
0 个评论
采纳的回答
Image Analyst
2020-6-14
See my attached freehand drawing/masking demo.
3 个评论
Image Analyst
2020-6-17
You can use poly2mask() and bwboundaries(). It will get the boundaries of any blobs, whether exterior or interior (holes of the donut).
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!