four neighbourhoods of a set or matrix
2 次查看(过去 30 天)
显示 更早的评论
It may be clear when you need to check if some pixels are neighbours to a specific region you are interested in in some image.
But, when asked to find the pixels that are considered 4-neighbourhood to some set or matrix, how can we do that?
Thanks.
0 个评论
回答(1 个)
Image Analyst
2014-2-23
You can use connected components determination with bwlabel() or bwconncomp().
8 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!