Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How can I make a mask for this boundry?

조회 수: 1 (최근 30일)
Sherif Uni
Sherif Uni 2016년 1월 17일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi I have this boundry for my image. I want to find the mask for it. the problem is the boundry is not continuous and it has some gaps. So I do not know how to fill it!! can you please help me? Thanks.

답변 (1개)

Image Analyst
Image Analyst 2016년 1월 17일
It may just look like it has gaps. Did you actually look at it in the variable editor? Anyway, to get a list of continuous (x,y) coordinates of the boundary, threshold the image and then use bwboundaries(). To get an image of the boundary, use bwperim(). It just depends on what form you want the boundary in - an image or an N-by-2 list of (x,y) coordinates.

Community Treasure Hunt

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

Start Hunting!

Translated by