Get the masks of the region between two lines

14 visualizaciones (últimos 30 días)
Yuzhen Lu
Yuzhen Lu el 25 de Mzo. de 2020
Respondida: Jyotsna Talluri el 30 de Mzo. de 2020
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 comentario
darova
darova el 25 de Mzo. de 2020
Can you fill the region you want to select (on the picture)?

Iniciar sesión para comentar.

Respuestas (1)

Jyotsna Talluri
Jyotsna Talluri el 30 de Mzo. de 2020
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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by