Turning Contours into ROI

조회 수: 4 (최근 30일)
henry wang
henry wang 2015년 2월 19일
답변: Image Analyst 2015년 2월 19일
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?

답변 (1개)

Image Analyst
Image Analyst 2015년 2월 19일
Use poly2mask in the Image Processing Toolbox.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by