Use poly2mask in the Image Processing Toolbox.
Turning Contours into ROI
2 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!