How to you understand an overlapping between two object

1 vue (au cours des 30 derniers jours)
Cristina Garozzo
Cristina Garozzo le 4 Déc 2015
I have two series of circles: -group A every object has (x_A,y_A,r_a) where x_A and y_A are the coordinate for the center and r the radius -group B every object has (x_b,y_b,r_b) the same as in A case it is possible to create a code with the aim of understanding if there is overlab between this two object? I think that it is possible to start with a circle of group A and scan the area starting from the center x_A, y_A but I have no Idea how to create this algorithm. Any suggestion?
  1 commentaire
Cristina Garozzo
Cristina Garozzo le 4 Déc 2015
Modifié(e) : Cristina Garozzo le 4 Déc 2015
For more clarity, I have to distinguish these 3 possible case

Connectez-vous pour commenter.

Réponse acceptée

Image Analyst
Image Analyst le 4 Déc 2015
Of course. For a pair of circles, if the sum of the two radii is more than the distance between the centers, then they overlap. Not sure what you want to do with this determination afterwards though.
  1 commentaire
Cristina Garozzo
Cristina Garozzo le 4 Déc 2015
It seems a good point, I hope that the macro will be fast, because I have more the 400 cicles for the group A and more than 600 for group group B.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB 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