How to get all the x,y coordinates of inner boundary of an image?

5 次查看(过去 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.

采纳的回答

Image Analyst
Image Analyst 2020-6-14
See my attached freehand drawing/masking demo.
  3 个评论
Image Analyst
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 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by