how to pick component near to other components
1 次查看(过去 30 天)
显示 更早的评论
lets say i have 10 componets in binarized image 7 of them are near to each other but 3 are far away.
Is there any way to pick only components near to each other?
0 个评论
采纳的回答
Image Analyst
2014-12-26
See my Image Segmentation Tutorial http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
Just find the centroid of everything and then find the distances of all blobs to all other blobs. Examine that to find which are close or far away. Perhaps you might also use kmeans() in the Statistics Toolbox if you know that there will always be two clusters.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!