Turning Contours into ROI

Hi,
I have a list of points (stored in an array) which describe the contours of a 2d shape. I want everything inside and on the boundary of the contour to be 1 and everything outside to be zero. How do I do this in Matlab?

Respuestas (1)

Image Analyst
Image Analyst el 19 de Feb. de 2015

0 votos

Use poly2mask in the Image Processing Toolbox.

Categorías

Más información sobre Contour Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 19 de Feb. de 2015

Respondida:

el 19 de Feb. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by