Image ¡S(tching ¡
Ali ¡Farhadi ¡ CSE ¡576 ¡ ¡
¡ ¡ ¡ ¡ ¡
Several ¡slides ¡from ¡Rick ¡Szeliski, ¡Steve ¡Seitz, ¡Derek ¡Hoiem, ¡and ¡Ira ¡Kemelmacher ¡
Image S(tching Ali Farhadi CSE 576 Several - - PowerPoint PPT Presentation
Image S(tching Ali Farhadi CSE 576 Several slides from Rick Szeliski, Steve Seitz, Derek Hoiem, and Ira Kemelmacher Combine two or
¡ ¡ ¡ ¡ ¡
Several ¡slides ¡from ¡Rick ¡Szeliski, ¡Steve ¡Seitz, ¡Derek ¡Hoiem, ¡and ¡Ira ¡Kemelmacher ¡
Add example Slide credit: Vaibhav Vaish
Let’s ¡assume ¡we ¡are ¡given ¡a ¡set ¡of ¡good ¡matching ¡ interest ¡points ¡
mosaic PP
Camera Center
transla(on ¡ rota(on ¡ aspect ¡ affine ¡ perspec(ve ¡
f(x) ¡ g(x’) ¡ x ¡ x’ ¡ h(x) ¡
f(x) ¡ g(x’) ¡ x ¡ x’ ¡ h(x) ¡
f(x) ¡ g(x’) ¡ x ¡ x’ ¡ h(x) ¡
Richard ¡Szeliski ¡ Image ¡S(tching ¡ 21 ¡
f(x) ¡ g(x’) ¡ x ¡ x’ ¡ h-‑1(x) ¡
Richard ¡Szeliski ¡ Image ¡S(tching ¡ 22 ¡
f(x) ¡ g(x’) ¡ x ¡ x’ ¡ h-‑1(x) ¡
Translation 2 unknowns Affine 6 unknowns Perspective 8 unknowns
How ¡do ¡we ¡solve ¡for ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡? ¡ ¡
Mean ¡displacement ¡= ¡ ¡
¡ ¡
Displacement ¡of ¡match ¡i ¡ ¡= ¡
– What ¡are ¡the ¡knowns? ¡ ¡Unknowns? ¡ – How ¡many ¡unknowns? ¡ ¡How ¡many ¡equa(ons ¡(per ¡match)? ¡
– “Overdetermined” ¡system ¡of ¡equa(ons ¡ – We ¡will ¡find ¡the ¡least ¡squares ¡solu(on ¡
Defines ¡a ¡least ¡squares ¡problem: ¡
2n × 9 9 2n
Richard ¡Szeliski ¡ Image ¡S(tching ¡ 41 ¡
What ¡do ¡we ¡do ¡about ¡the ¡“bad” ¡matches? ¡
Richard ¡Szeliski ¡ Image ¡S(tching ¡ 42 ¡
Select ¡one ¡match, ¡count ¡inliers ¡
Richard ¡Szeliski ¡ Image ¡S(tching ¡ 43 ¡
Select ¡one ¡match, ¡count ¡inliers ¡
Richard ¡Szeliski ¡ Image ¡S(tching ¡ 44 ¡
Find ¡“average” ¡transla(on ¡vector ¡
CSE ¡576, ¡Spring ¡2008 ¡ Structure ¡from ¡Mo(on ¡ 46 ¡
47 ¡
47
48 ¡
48
3 ¡inliers ¡
49 ¡
49
4 ¡inliers ¡
50 ¡
50
9 ¡inliers ¡
51 ¡
51
8 ¡inliers ¡
52 ¡
52
Red: ¡ ¡ ¡rejected ¡by ¡2nd ¡nearest ¡neighbor ¡criterion ¡ Blue: ¡ ¡Ransac ¡outliers ¡ Yellow: ¡ ¡inliers ¡
Richard ¡Szeliski ¡ Image ¡S(tching ¡ 55 ¡
Richard ¡Szeliski ¡ Image ¡S(tching ¡ 56 ¡
1 −
i i
HZ Tutorial ‘99
i i
0 ¡ 1 ¡ 0 ¡ 1 ¡
0 ¡ 1 ¡
leQ ¡ right ¡
0 ¡ 1 ¡
0 ¡ 1 ¡ 0 ¡ 1 ¡
0 ¡ 1 ¡
“Optimal” window: smooth but not ghosted
Create a Laplacian pyramid, blend each level
Graphics, 42(4), October 1983, 217-236.
1
2
n
1
2
n n
1 +
i i i
1 +
i i i
Laplacian ¡ level ¡ 4 ¡ Laplacian ¡ level ¡ 2 ¡ Laplacian ¡ level ¡ 0 ¡ leQ ¡pyramid ¡ right ¡pyramid ¡ blended ¡pyramid ¡
1 1 1 LeQ ¡pyramid ¡ Right ¡pyramid ¡ blend ¡
Laplacian ¡pyramids ¡
– hnp://research.microsoQ.com/vision/cambridge/papers/perez_siggraph03.pdf ¡ ¡
Encoding blend weights: I(x,y) = (αR, αG, αB, α) color at p = Implement this in two steps:
Optional: see Blinn (CGA, 1994) for details:
http://ieeexplore.ieee.org/iel1/38/7531/00310740.pdf? isNumber=7531&prod=JNL&arnumber=310740&arSt=83&ared =87&arAuthor=Blinn%2C+J.F.
I1 I2 I3 p
Image ¡1 ¡ Image ¡2 ¡ x ¡ x ¡ im1 ¡ im2 ¡
Image ¡1 ¡ Image ¡2 ¡ x ¡ x ¡ im1 ¡ im2 ¡
Illustra(on: ¡hnp://en.wikipedia.org/wiki/File:Rochester_NY.jpg ¡
Brown and Lowe 2003, 2007
Some of following material from Brown and Lowe 2003 talk
# inliers # keypoints in