Get the masks of the region between two lines

조회 수: 3 (최근 30일)
Yuzhen Lu
Yuzhen Lu 2020년 3월 25일
답변: Jyotsna Talluri 2020년 3월 30일
Here is an image where two lines are drawn. I want to generate a binary mask for the region enclosed by the two lines. Is there a specialized function for achiving this purpose?
  댓글 수: 1
darova
darova 2020년 3월 25일
Can you fill the region you want to select (on the picture)?

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

답변 (1개)

Jyotsna Talluri
Jyotsna Talluri 2020년 3월 30일
Create a polygonal ROI on the image by specifying the vertices of the ROI using the position property, or you can draw the ROI interactively using draw function. Refer to the below documentation links for creating ROI.
Once the ROI is created, create binary Mask using createMask function

Community Treasure Hunt

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

Start Hunting!

Translated by