Title: Single view geometry
1??????2???_at_?????
- ???
- ?? ?
- ??????????? -??????-?
- ????
2Single view geometry
Camera model Single view geom.
3???????
(x,y,z)??(x,y,z)??? (????????)
z
z
x
O
x
?? ?????????? Z???????
(f Z)
??????Z?????????
??????????????????f1???
4??? (orthographic projection)
- ??????????????????????
- ?Z??????????, X??Y????????????????
- ?????Z??????????
- ????????????
- ????????????????
- ????????????,????
- ????CG??????????
- ????CV??????????
- ??????
5??????
(x, y, z)
O
Projection from (x,y,z) to (x,y,z)
or
6?????(weak perspective projection)
- ??????????????????????????????????????????
- ????????????????????????????
- ?????????????????????????????????????????????
7?????
- Step 1) ???????p??????P????
- ???????? ? ??
- Step 2) ????????????p?????
- ???????P???????p????
- ? ???????????????
- ? ??
- ?????????
8???????(Step 1)
- ????????p??????P??????????????????X???Y?????????Z?
??????? - ?????P?Z?????Z???????????
- ??????????????
- XX
- YY
- Z' Z
9???????(Step 2)
- ????????????????????
- ? ??????????????
- x X/Z X/Z
- y Y/Z Y/Z
- Z???
- ???????X?Y?????????
- ? ?????????
10????????????
- ?????????????????
- ?????????????????
- ????????????????????Z????Z????????????????
- ?????Z??????D??????????????Z??????????????
- ?DZ?110??????????????????????
11??????(paraperspective projection)
- ??????????????????p??????P?????????
- ?????????????????????????????????P????????
- ???????????????L??????????????L???????P???????
L
L
?????
??????
12??????
- ???????? ??????????
- ??????????????????????????????????????????????????
?????????????
13????????
- Step 1 ???????????(?X, ?Y, 1)??
- ???????????
- X X ( Z- Z)?X
- Y Y ( Z- Z)?Y
- Z Z
- Step 2 ??????
- ????????????????
- x X/Z 1/ZX - ?X/Z Z ?X
- y Y/Z 1/ZY - ?Y/ ZZ ?Y
14??????
- ????X, Y, Z????1/ Z, ?X/ Z, ?Y/ Z, ?X,
?Y????????? gt X, Y, Z?????? - ?????????????????
- ????????????????????????????????????
15????????????
- ?????????????????p??????P???????????????
- ?????????P??????????
- ????????????????????????????
- ???????????????????
16E.g., Shape Reconstruction
Right
Left
??????????????????????3D??????
17Affine cameras
????f ???
????????????
18??????
- ?????????????????????????????(????)???????????????
???????????????????? - ???????????????????????
- ??????????????????????????????????????????(???????
)??? - ???????????????3D????2D??????
19??????
- ??????????????????????????????????????????????????
???
20???????????
??????????? ????????
212??????
222??????
232????(????)
242????????
????
????
???!
??
???
25???????????????????
(homogeneous coordinates)
1???? ????
???!
- ?????????????1??????
- ?????????????????????
26???????2D??
- Basic 2D transformations as 3x3 matrices
????Translate
????Scale
??Rotate
???Shear
27?????
- ?????????????????????????
p T(tx,ty) R(Q)
S(sx,sy) p
28???? (3??)
- 3??????,????????4?????????
- (x/f, y/f, z/f) ??????????
- f1????????(x, y, z)????
( x, y, z )
293????????
P(x, y, z) ??P(x, y, z) ????????(?????????)
30?????????
- ???????????
- ??????????
- ??????????
H1,H2 2D ? 3 x 3 ????????? H1,H2 3D ? 4 x 4
?????????
31??????????
fw1
?????????????????????(??????????)
??????
32?????
33Two-view geometry
3D reconstruction Epipolar geometry E-matrix
comp. F-matrix comp. H-matrix comp. Structure
comp.
34???Stereo Vision (Stereopsis)
- Main problem recover 3D depth from two (or
more) image views
??????????????????????3D???????????????????? ?2???
??????????????????????????????????????????? ?????
???????????????????????2??????OK
35??????
??????????? ??????????????
?(disparity)
??Z?????f????B???x???
36??????
- Algorithm
- Rotate both left and right camera so that they
share the same X axis Or-Ol T - Define a rotation matrix Rrect for the left
camera - Rotation Matrix for the right camera is RrectRT
- Rotation can be implemented by image
transformation
???????????
37??????
- Algorithm
- Rotate both left and right camera so that they
share the same X axis Or-Ol T - Define a rotation matrix Rrect for the left
camera - Rotation Matrix for the right camera is RrectRT
- Rotation can be implemented by image
transformation
??????????? ??(R,t???)
38Correlation Approach
LEFT IMAGE
- For each point (xl, yl) in the left image, define
a window centered at the point
39Correlation Approach
RIGHT IMAGE
(xl, yl)
- search its corresponding point within a search
region in the right image
40Correlation Approach
RIGHT IMAGE
(xl, yl)
dx
(xr, yr)
- the disparity (dx, dy) is the displacement when
the correlation is maximum
41??????????
- ????
- ????????????
- ???????
- (???????)
- ??????
- ??????????
corner
line
structure
42???????????
- ????????????????????
- ??????
43Examples
Left Image
Right Image
Depth Map
44??????
- 1.?????????????????????????????????