How to get all xy coordinates within a connected polygon.?
2 次查看(过去 30 天)
显示 更早的评论
I have a polygon using impoly on an image.Is it possible to get all the pixel coordinates within that polygon.
0 个评论
回答(1 个)
Image Analyst
2014-2-13
allPixels = grayImage(maskImage); % 1D vector of all the pixels inside the mask only.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Elementary Polygons 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!