Single view geometry - PowerPoint PPT Presentation

1 / 44
About This Presentation
Title:

Single view geometry

Description:

Title: 1 Author: wuhy Last modified by: wuhy Created Date: 1/19/2003 6:18:13 AM Document presentation format: Company – PowerPoint PPT presentation

Number of Views:47
Avg rating:3.0/5.0
Slides: 45
Provided by: wuhy
Category:

less

Transcript and Presenter's Notes

Title: Single view geometry


1
??????2???_at_?????
  • ???
  • ?? ?
  • ??????????? -??????-?
  • ????

2
Single 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??????????
  • ????????????????????????????
  • ???????????????????

16
E.g., Shape Reconstruction
Right
Left
??????????????????????3D??????
17
Affine cameras
????f ???
????????????
18
??????
  • ?????????????????????????????(????)???????????????
    ????????????????????
  • ???????????????????????
  • ??????????????????????????????????????????(???????
    )???
  • ???????????????3D????2D??????

19
??????
  • ??????????????????????????????????????????????????
    ???

20
???????????
??????????? ????????
21
2??????
22
2??????
23
2????(????)
24
2????????
????
????
???!
??
???
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 )
29
3????????
P(x, y, z) ??P(x, y, z) ????????(?????????)
30
?????????
  • ???????????
  • ??????????
  • ??????????
  • ???????????

H1,H2 2D ? 3 x 3 ????????? H1,H2 3D ? 4 x 4
?????????
31
??????????
fw1
?????????????????????(??????????)
??????
32
?????

33
Two-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???)
38
Correlation Approach
LEFT IMAGE
  • For each point (xl, yl) in the left image, define
    a window centered at the point

39
Correlation Approach
RIGHT IMAGE
(xl, yl)
  • search its corresponding point within a search
    region in the right image

40
Correlation 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
???????????
  • ????????????????????
  • ??????
  • ?????????????????

43
Examples
Left Image
Right Image
Depth Map
44
??????
  • 1.?????????????????????????????????
Write a Comment
User Comments (0)
About PowerShow.com