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

조회 수: 8 (최근 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).
Mathews Jabaraj Soloman
Mathews Jabaraj Soloman 2020년 6월 17일
Yes, I will try that too
thanks again

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by