1 / 21

Teoria e Tecniche del Riconoscimento

Teoria e Tecniche del Riconoscimento. Hausdorff Distance. http://cgm.cs.mcgill.ca/~godfried/teaching/cg-projects/98/normand/main.html. Cosimo Distante cosimo.distante@ino.it. Quando si parla di distanze di solito intendiamo quelle minime.

Download Presentation

Teoria e Tecniche del Riconoscimento

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Teoria e Tecniche del Riconoscimento Hausdorff Distance http://cgm.cs.mcgill.ca/~godfried/teaching/cg-projects/98/normand/main.html Cosimo Distante cosimo.distante@ino.it

  2. Quando si parla di distanze di solito intendiamo quelle minime. • Esempio: Se un punto X è alla distanza D da un poligono P intendiamo dire che X è a distanza D dal punto più vicino di P. • Lo stesso dicasi per due poligoni. Se A e B sono due poligoni, la distanza minima è quella più corta tra tutti i punti di A e quelli di B

  3. D è una funzione in cui va trovato il minimo. • - Per ogni punto a di A trova il punto di B a distanza minima. • - Quindi trova tra tutti i punti di A quello che ha minima distanza

  4. Limitazioni del concetto classico di distanza che si possono avere in alcune applicazioni Esempio 1 D Oss. Il concetto classico di distanza non tiene conto della forma degli oggetti Esempio 2 D Stessa D tra i due esempi ma qualcosa è cambiato!

  5. Cos’è la distanza di Hausdorff? • Introdotta da Felix Hausdorff (1868-1942) • “È la distanza massima di un insieme di punti vicini ad un altro insieme” • Ovvero: Si può considerare “d(∙, ∙)” come la distanza Euclidea

  6. Cos’è la distanza di Hausdorff? • Brute Forcealgorithm •  h = 0 • for every point ai of A,      2.1  shortest = Inf ;      2.2  for every pointbj of Bdij = d (ai , bj)                    if dij< shortest then                              shortest = dij      2.3  if shortest > h then                    h = shortest

  7. This general condition also holds for the example, as • h(A, B) = d(a1, b1), • while h(B, A) = d(b2, a1).

  8. Cos’è la distanza di Hausdorff? • La distanza di Hausdorff è orientata ovvero h(A,B)≠h(B,A) • Causato dal fatto che le funzioni di massimo sono asimmetriche, mentre quelle di minimo sono simmetriche

  9. Cos’è la distanza di Hausdorff? • Una definizione generale della distanza di Hausdorff è data da • Che è la distanza tra i due insiemi A e B mentre: • h(A,B) è la distanza da A a B (forward) • h(B,A) distanza da B ad A (backward)

  10. If sets A and B are made of lines or polygons instead of single points, then H(A, B) applies to all defining points of these lines or polygons, and not only to their vertices. • The brute force algorithm could no longer be used for computing Hausdorff distance between such sets, as they involve an infinite number of points.

  11. Hausdorff distance shown around extremum of each triangles. Each circle has a radius of H( P1 , P2). Hausdorff distance for the triangles at the same shortest distance, but in different position

  12. Application Examples One of the main application of the Hausdorff distance is image matching, used for instance in image analysis, visual navigation of robots, computer-assisted surgery, etc. Basically, the Hausdorff metric will serve to check if a template image is present in a test image ;  the lower the distance value, the best the match. That method gives interesting results, even in presence of noise or occlusion (when the target is partially hidden).

  13. Application Examples Template

  14. Application Examples Template

More Related