Professional Documents
Culture Documents
• Shape retrieval
• Recognizing object categories
• Fingerprint identification
• Optical Character Recognition (OCR)
• Molecular-biology
Western 1909
Intro Geometric Transformations
0 1 2 3 4 5
Fig. 177. Human skull Fig. 179. Skull of chimpanzee. Fig. 180. Skull of baboon.
a2
a1
Given two sets of points
A and B, find h(A,B)
b3
b1
b2
Hausdorff
Distance
Example
a2
a1
Compute the distance
between a1 and each bj
b3
b1
b2
Hausdorff
Distance
Example
a2
a1
Keep the shortest
b3
b1
b2
Hausdorff
Distance
Example
a2
a1
Do the same for a2
b3
b1
b2
Hausdorff
Distance
Example
a2
a1
Find the largest of
these two distances
b3
b1
b2
Hausdorff
Distance
Example
a2
a1
This is h(A,B)
b3
b1
b2
Hausdorff
Distance
Example
a2
a1
This is h(B,A)
b3
b1
b2
Hausdorff
Distance
Example
a2
a1
H(A,B) = max(h(A,B),h(B,A))
b3
b1
b2
Hausdorff
Distance
Example
a2
a1
This is H(A,B)
b3
b1
b2
Hausdorff
Distance
Generalization
Model
Edges
Match
Hausdorff
Distance
Example: Matching
Model Model
Image Edges
Match
Shape
Context Outline
Count = 12
a) b)
c) d)
a) b)
c)
Shape
Context Thin Plate Spline Model
a)
b)
3
Inner
Distance Example: Inner Distance
3
Inner
Distance Example: Inner Distance
1.4
3
Inner
Distance Example: Inner Distance
1.4
3
Inner
Distance Example: Inner Distance
2
1.4
3
Inner
Distance Example: Inner Distance
2 2
2
1.4 1.4 2
1
3 1 1 3
2 1.4 1.4 2
2 2
3
Inner
Distance Example: Inner Distance
a 3
2 2
2
1.4 1.4 2
1
3 1 1 3
2 1.4 1.4 2
2 2
3 b
d (a; b) = 4
Inner
Distance Example: Inner Distance
2 2
2
1.4 1.4 2
1 d
3 1 1 3
2 1.4 1.4 2
2 2
c
3
d (c; d) = 3
Inner
Distance An Extension to Shape Contexts
a) b)
1 9
1 9
3 7
5
5
1 7 9
3
2 5 8
3 5 6
4
7
A C
(-0.5,0) (0.5,0)
C
A
(n = jAj; m = jBj)
MPEG7 Dataset
Bullseye Score
Algorithm Shape-Tree Inner-Distance
Score 87.70% 85.40%
a
Match([a,b],[p,q]) = w1 p
Match([b,c],[r,s]) = w2 b q
r
c s
M C
q+r
m=
2
Match([a,c],[p,s]) =
w1 + w2 + dif ((bja; c) ; (mjp; s))
Slide from Felzenszwalb and Schwartz
Shape
Tree Example: Detection
Contours Detection
Model
• Given
• A training image set with the object delineated
by a bounding box
• A validation image set labeled with whether the
object is absent or present, and the object’s
centroid
• From the edges of the training images
identify fragments that:
• Discriminate objects from the target category
from other objects
• Give a precise estimate of the object centroid
Boundary
Fragment Example: Good Boundary Fragment
Model
+= Estimated Centroid
* = Correct Centroid
+= Estimated Centroid
* = Correct Centroid
Detection Error
Algorithm BFM [18]
cars-rear 2.25% 6.10%
Breaking
CAPTCHA
horse space
mine canvas