minimum distance between the edges of two closed shapes

5 vues (au cours des 30 derniers jours)
M M
M M le 8 Juil 2011
I am wondering if anyone has any idea how I can approach finding the minimum distance between two fairly random shapes' edges that one encircles the other. I can separate the shapes' images out from one another into the same size image for comparison, but I can't get a good distance function since one encloses the other and by no means are these shapes regular enough to just compare the center points. If anyone can give me ideas, I would really appreciate it.

Réponses (1)

Sean de Wolski
Sean de Wolski le 8 Juil 2011
The distance transform and some indexing will do that for you pretty easily.
doc bwdist
Post the image for more specific guidance.
  1 commentaire
Image Analyst
Image Analyst le 9 Juil 2011
Sean's answer is what I suggest also. By the way, you may want to learn about alternative ways of measuring distance between polygons. Go to this URL
http://cgm.cs.mcgill.ca/~godfried/teaching/cg-projects/98/normand/main.html
to learn about the Hausdorf distance and several useful ways that it can be used.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by