i have the mask of the border now i need to remove the border in the original image how can i do it?
5 次查看(过去 30 天)
显示 更早的评论
2 个评论
Image Analyst
2015-9-17
Define "mask of the border" and "remove". For example, is the mask of the border the big black regions at the left and right of this edge image? Or just the single pixel wide circle perimeter? Does "remove" mean "set to black" or "crop" or something else?
回答(1 个)
Tim Jackman
2015-9-17
Without knowing what you mean precisely when you say "border of the original image" I'd try using imerode to peel away layers of your mask that would equal the thickness of the border. Then multiply the eroded mask with your image to remove the border. Hope this helps.
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!