how to pick component near to other components

2 ビュー (過去 30 日間)
Lukasz Jarod
Lukasz Jarod 2014 年 12 月 26 日
回答済み: Image Analyst 2014 年 12 月 26 日
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?

採用された回答

Image Analyst
Image Analyst 2014 年 12 月 26 日
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 件)

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by