How to get the boundary points?
6 次查看(过去 30 天)
显示 更早的评论
I have a mask(mask is for an image) which is saved in .mat format. Now, i want to take the boundary of this mask. Is it possible to convert from mask to boundary? Can anyone kindly guide me?
0 个评论
采纳的回答
Image Analyst
2016-5-2
Yes. Use bwboundaries() to get a list of (x,y) coorindates. Use bwperim() if you want an image of the outer boundary.
13 个评论
Image Analyst
2016-5-4
Well you just have to figure out what the variable names were when they were saved, and then get back those same names, and make sure you're using the right one in the right place. It's just bookkeeping really. I mean, if the name is maskedRgbImage, it's probably an RGB image and don't use it where a gray scale image or binary (logical) image is expected.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!