how to pick component near to other components

2 vues (au cours des 30 derniers jours)
Lukasz Jarod
Lukasz Jarod le 26 Déc 2014
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?

Réponse acceptée

Image Analyst
Image Analyst le 26 Déc 2014
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.

Plus de réponses (0)

Catégories

En savoir plus sur Image Segmentation and Analysis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by