EECE 5639 Computer Vision I: Edge Detection, Corners Hw2 Has Been Posted
EECE 5639 Computer Vision I: Edge Detection, Corners Hw2 Has Been Posted
Lecture 1
Edge detection, Corner
Hw2 has been poste
Next Clas
Descriptors, Model Fitting
1
s
2
:
3
Canny Edges
4
Canny Edges
5
Canny Edges
7
Annotate
Some people have done that!
8
Using Annotations
How can we use annotations to improve (task oriented) edge detection?
9
Very over-simpli ed explanation
Supervised Classi cation Problem:
Class 1
Class -1
10
fi
fi
Very over-simpli ed explanation
Supervised Classi cation Problem:
Class 1
?
Class -1
class boundary
Class 1
?
Class -1
class boundary
Class 1
?
Class -1
14
fi
fi
fi
s
fi
)
fi
fi
e
15
Training an Edge Detector
Labeled Samples!
16
Recipe for Training an Edge Detector
• Extract LOTS of image patche
• Assign labels to the samples using annotation
• Represent each patch using features (measurements) of the patc
• Simplest possibility would be to vectorize the patch:
17
s
18
s
19
fi
s
20
fi
Using the Classi er
21
fi
Using the Classi er
score
22
fi
Canny vs Structured Edge Detector
23
Canny vs Structured Edge Detector
24
Canny vs Structured Edge Detector
25
Canny vs Structured Edge Detector
26
Canny vs Structured Edge Detector
27
Evaluating Results
28
Evaluation: Recall & Precision
29
Evaluation: Recall & Precision
(green + red)
30
Evaluation
31
Point Features
Corners
33
Corners are useful
Which city?
34
Corners are useful
Which city?
35
Corners are useful
Where can I nd this pattern?
36
fi
Corners are useful
37
Corners are useful
38
fi
Corners are useful
Patches with large contrast are easier to nd, but edges cannot be localized.
39
fi
Corners are useful
40
Detection of Corner Features
Need two strong edges
Example:
If min(λ1,λ2) > T
There is a corner!
41
42
Detection of Corner Features
Solution:
“Rotate” the corner to align it with the image coordinate system!
43
44
?
45
Harris Corner Detector
Change of intensity for the shift [u,v]:
Change
Window In
Function Intensity
Window w(x,y):
46
47
Harris Corner Detector
48
Harris Corner Detector
Rewrite as a Matrix:
49
Harris Detector
50
Harris Detector
51
Classi cation via Eigenvalues
52
fi
Corner Response Measure
53
Corner Response Measure
R = det M - k trace2(M)
54
Corner Response Example
55
R < - 10000
56
Corner Response Example: Corners
R > 10000
57
Corner Response Example:
58
59
fi
: