90
3D object Lens CCD sensor Slide by HyunSoo Park

HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D object

Lens

CCD sensor

Slide by HyunSoo Park

Page 2: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Metric Space)3D point

mf

( , , )X Y Z

: Focal length in meter

Pinhole-fm

ccd X

u fZm

ccd Y

v fZm

ccd ccd X Y

u v f fZ Zm m( , ) ( , )

2D projection onto CCD plane

( , , )X Y Z

Projection plane

ccd ccdu v( , )

Page 3: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Metric Space)3D point

mf

( , , )X Y Z

: Focal length in meter

Pinhole=

center of projection-fm

ccd X

u fZm

ccd Y

v fZm

ccd ccd X Y

u v f fZ Zm m( , ) ( , )

2D projection onto CCD plane

( , , )X Y Z

Projection plane

( , )u vccd ccd

fm

ccd ccdu v( , )

Page 4: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

http://www.joshuanava.biz/perspective/in-other-words-the-observer-simply-points-in-the-same-direction-as-the-lines-in-order-to-find-their-vanishing-point.html

recall we can paint a picture by

1) placing an image plane in front of us,2) draw a ray from our eye to a point in the image plane, to form a ray3) intersect that ray with the 3D world, and mark the intersection point,4) take the color of that 3D point, and paint it onto the 2D pixel

The ray itself, extended infinitely long, can be also thought of representative of a point in infinity of all 3D lines in direction, and we will see that would allow us to recover the orientation of the camera.

Page 5: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Locating Center of Projection

we will demonstrate how to find COP of your cell phone camera.

1) draw a set of radiating lines on a paper2) place the camera vertical to the paper

Page 6: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

the radiating lines on paper should look like this, in the 3d world

Page 7: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Locating Center of Projection

1) using a live displaying mode, we can see these radiating lines as transformed in to the camera image plane. what does it look like?2) make sure we keep the camera vertical and move it forward and backward, until the imaged lines look all vertical 3) when we see this we can mark the front of the camera.

Page 8: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Locating Center of Projection

Page 9: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Locating Center of Projection

-- tracing the radiating lines to their intersection, we obtained a rough estimated of the physical center of projection of your camera

-- we now have an idea of where is the optical center of the camera, how about the focal length itself

Page 10: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Focal Length

Digital SLR cameras have focal length at order of 35mm, or 50 mm. Our cell phone, because it is very thin, has very short focal lengths, on order of a few mm.

Page 11: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Nikon’s 1200-1700mm f/5.6-8P lens.Professional photographer has lens with much longer focal lengths, on order of 1-2meters

Page 12: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Zooming, the process of changing focal length, can amplifying a scene. We can do the same with a cell phone, just we have to walk a lot to get those images.

Page 13: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Large Focal Length compresses depth

© 1995-2005 Michael Reichmann

400 mm 200 mm 100 mm 50 mm 28 mm 17 mm

zooming does not only create a sense of magnification, it can also create a sensation of moving,shown here, from 400mm, to 17mm, we can see the size of background objects is much reduced

Page 14: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Metric Space)3D point

mf

( , , )X Y Z

: Focal length in meterccd

Xu f

Zm

ccd Y

v fZm

ccd ccd X Y

u v f fZ Zm m( , ) ( , )

2D projection onto CCD plane

( , , )X Y Z

Projection plane

( , )u vccd ccd

fm

Center of Projection

Page 15: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Metric Space)3D point

mf

( , , )X Y Z

: Focal length in meterccd

Xu f

Zm

ccd Y

v fZm

ccd ccd X Y

u v f fZ Zm m( , ) ( , )

2D projection onto CCD plane

( , , )X Y Z

Projection plane

( , )u vccd ccd

fm

( , )u vimg img

img img ccd ccdu v u v( , ) ( , ) ?

MetricPixel

Page 16: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

CCD sensor (mm) Image (pixel)

Page 17: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

u vimg img( , )

Page 18: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

ccdw

ccdh

u vimg img( , )

Page 19: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&
Page 20: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&
Page 21: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

ccdw

ccdh

u vimg img( , )

Page 22: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

ccdw

ccdh

(0,0)

Projection of pinhole

u vimg img( , )

Page 23: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

ccdw

ccdh

(0,0)

Projection of pinhole

imgw

imgh

u vimg img( , )

Page 24: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

ccdw

ccdh

(0,0)

Projection of pinhole

(0,0) imgw

imgh

x yp p( , ): Image principal point

u vimg img( , )

Page 25: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

u vimg img( , )

ccdw

ccdh

(0,0)

Projection of pinhole

(0,0) imgw

imgh

x yp p( , ): Image principal point

xu pu

w wimgccd

ccd img

Page 26: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

u vimg img( , )

ccdw

ccdh

(0,0)

Projection of pinhole

(0,0) imgw

imgh

x yp p( , ): Image principal point

xu pu

w wimgccd

ccd img

yv pv

h himgccd

ccd img

Page 27: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

u vimg img( , )

ccdw

ccdh

(0,0)

Projection of pinhole

(0,0) imgw

imgh

x yp p( , ): Image principal point

xu pu

w wimgccd

ccd img

yv pv

h himgccd

ccd img

x

wu u p

wimg

img ccdccd

y

hv v p

himg

img ccdccd

Page 28: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

O

( , )u vccd ccd

mf

Projection plane ( , , )X Y Z

Z

ccd ccd m m( , ) ( , )X Y

u v f fZ Z

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

u vimg img( , )

ccdw

ccdh

(0,0)

(0,0) imgw

imghx yp p( , )

: Metric projection

Page 29: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

O

( , )u vccd ccd

mf

Projection plane ( , , )X Y Z

Z

ccd ccd m m( , ) ( , )X Y

u v f fZ Z

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

u vimg img( , )

ccdw

ccdh

(0,0)

(0,0) imgw

imghx yp p( , )

: Metric projection

x x

w w Xu u p f p

w w Zimg img

img ccd mccd ccd

y y

h h Yv v p f p

h h Zimg img

img ccd mccd ccd

Pixel projection

Page 30: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

O

( , )u vccd ccd

mf

Projection plane ( , , )X Y Z

Z

ccd ccd m m( , ) ( , )X Y

u v f fZ Z

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

u vimg img( , )

ccdw

ccdh

(0,0)

(0,0) imgw

imghx yp p( , )

: Metric projection

x x

w w Xu u p f p

w w Zimg img

img ccd mccd ccd

y y

h h Yv v p f p

h h Zimg img

img ccd mccd ccd

Pixel projection

Page 31: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

O

Projection plane ( , , )X Y Z

Z

ccd ccd m m( , ) ( , )X Y

u v f fZ Z

x x

w w Xu u p f p

w w Zimg img

img ccd mccd ccd

y y

h h Yv v p f p

h h Zimg img

img ccd mccd ccd

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

u vimg img( , )

ccdw

ccdh

(0,0)

(0,0) imgw

imghx yp p( , )

: Metric projection

Focal length in pixel

Pixel projection

img imgu v( , )

f

Page 32: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

O

Projection plane ( , , )X Y Z

Z

ccd ccd m m( , ) ( , )X Y

u v f fZ Z

x x

w w Xu u p f p

w w Zimg img

img ccd mccd ccd

y y

h h Yv v p f p

h h Zimg img

img ccd mccd ccd

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

u vimg img( , )

ccdw

ccdh

(0,0)

(0,0) imgw

imghx yp p( , )

: Metric projection

Focal length in pixel

xf

yf

imgm

ccd

x

wf f

wimg

mccd

y

hf f

hwhere

Pixel projection

img imgu v( , )

f

Page 33: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

O

Projection plane ( , , )X Y Z

Z

ccd ccd m m( , ) ( , )X Y

u v f fZ Z

x x

w w Xu u p f p

w w Zimg img

img ccd mccd ccd

y y

h h Yv v p f p

h h Zimg img

img ccd mccd ccd

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

u vimg img( , )

ccdw

ccdh

(0,0)

(0,0) imgw

imghx yp p( , )

: Metric projection

Focal length in pixel

f

f

img imgm m

ccd ccd

w h

f f fw h

where

Pixel projection

img img

ccd ccd

w h

w hif

img imgu v( , )

f

Page 34: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

O

Projection plane ( , , )X Y Z

Z

img x

Xu f p

Z

img y

Yv f p

Z

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

u vimg img( , )

ccdw

ccdh

(0,0)

(0,0) imgw

imghx yp p( , )

img imgu v( , )

f

Page 35: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

O

Projection plane ( , , )X Y Z

Z

img x

Xu f p

Z

img y

Yv f p

Z

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

u vimg img( , )

ccdw

ccdh

(0,0)

(0,0) imgw

imghx yp p( , )

img imgu v( , )

f

img xZu fX p Z

img yZv fY p Z

Page 36: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

O

Projection plane ( , , )X Y Z

Z

img x

Xu f p

Z

img y

Yv f p

Z

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

u vimg img( , )

ccdw

ccdh

(0,0)

(0,0) imgw

imghx yp p( , )

img imgu v( , )

f

img xZu fX p Z

img yZv fY p Z

img

img

11

x

y

u f p X

Z v f p Y

Z

Page 37: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

O

Projection plane ( , , )X Y Z

Z

img x

Xu f p

Z

img y

Yv f p

Z

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

u vimg img( , )

ccdw

ccdh

(0,0)

(0,0) imgw

imghx yp p( , )

img imgu v( , )

f

img xZu fX p Z

img yZv fY p Z

img

img

11

x

y

u f p X

v f p Y

Z

Metric spacePixel space

Page 38: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

O

Projection plane ( , , )X Y Z

Z

img x

Xu f p

Z

img y

Yv f p

Z

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

u vimg img( , )

ccdw

ccdh

(0,0)

(0,0) imgw

imghx yp p( , )

img imgu v( , )

f

img xZu fX p Z

img yZv fY p Z

img

img

11

x

y

u f p X

v f p Y

Z

Metric spacePixel space

+Camera intrinsic parameter: metric space to pixel space

Page 39: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

3D Point Projection (Pixel Space)

O

Projection plane ( , , )X Y Z

Z

img x

Xu f p

Z

img y

Yv f p

Z

CCD sensor (mm) Image (pixel)

u vccd ccd( , )

u vimg img( , )

ccdw

ccdh

(0,0)

(0,0) imgw

imghx yp p( , )

img imgu v( , )

f

img xZu fX p Z

img yZv fY p Z

img

img

11

x

y

u f p X

v f p Y

Z

K

+Camera intrinsic parameter: metric space to pixel space

Metric spacePixel space

Page 40: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Camera Intrinsic Parameter

O

Projection plane

Z

img

img

11

x

y

u f p X

v f p Y

Z

K

Metric space

( , , )X Y Z

Page 41: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Camera Intrinsic Parameter

O

Projection plane

Z

img

img

11

x

y

u f p X

v f p Y

Z

K

Metric space

( , , )X Y Z

f

Page 42: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Camera Intrinsic Parameter

O

Projection plane

Z

img

img

11

x

y

u f p X

v f p Y

Z

K

Metric space

( , , )X Y Z

f

img imgu v( , )

Pixel space

Page 43: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

2D Inverse Projection

O

Projection plane

img

img

11

x

y

u f p X

v f p Y

Z

K

Metric space

f

img imgu v( , )

Pixel space

u X

v Y

Z

K

img

-1img

1

Page 44: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

2D Inverse Projection

O

Projection plane

img

img

11

x

y

u f p X

v f p Y

Z

K

Metric space

f

img imgu v( , )

Pixel space

u X

v Y

Z

K

img

-1img

1

u

vK

img

-1img

1

2D point == 3D ray

3D ray

Page 45: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

2D Inverse Projection

O

Projection plane

img

img

11

x

y

u f p X

v f p Y

Z

K

Metric space

f

img imgu v( , )

Pixel space

u X

v Y

Z

K

img

-1img

1

u

vK

img

-1img

1

( , , )X Y Z

2D point == 3D ray

3D ray

Page 46: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

2D Inverse Projection

O

Projection plane

img

img

11

x

y

u f p X

v f p Y

Z

K

Metric space

f

img imgu v( , )

Pixel space

u X

v Y

Z

K

img

-1img

1

u

vK

img

-1img

1

( , , )X Y Z

2D point == 3D ray

3D ray

The 3D point must lie in the 3D ray passing through the origin and 2D image point.

Page 47: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Exercise

324 m

1280 pix

960 pix

fm ?

What f to make the height of Eifel tower appear 960 pixel distance?

21.8 mm

ccd size

1500 m

Page 48: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Exercise

324 m

1280 pix

960 pix

fm ?

What f to make the height of Eifel tower appear 960 pixel distance?

m

hY Yy f f

Z h Zimg

imgccd

21.8 mm

ccd size

1500 m

Page 49: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Exercise

324 m

1280 pix

960 pix

fm ?

What f to make the height of Eifel tower appear 960 pixel distance?

m

hY Yy f f

Z h Zimg

imgccd

21.8 mm

ccd size

1280 324960 0.0757m

0.02181500 m mf f

1500 m

Page 50: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Focal Length

Page 51: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Exercise

324 m

Z ?

1280 pix

960 pix

What Z to make the height of Eifel tower appear 960 pixel distance?

m

hY Yy f f

Z h Zimg

imgccd

21.8 mm

ccd size

fm = 50 mm

Page 52: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Exercise

324 m

Z ?

1280 pix

960 pix

What Z to make the height of Eifel tower appear 960 pixel distance?

m

hY Yy f f

Z h Zimg

imgccd

21.8 mm

ccd size

ZZ

1280 324960 0.05 990.826m

0.0218

fm = 50 mm

Page 53: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Exercise

324 m

1500

What Zp to make the height of Eifel tower appear twice of the person?

fm = 50 mm

Z p

1.7 m

Page 54: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Exercise

324 m

1500

What Zp to make the height of Eifel tower appear twice of the person?

Y

h fZe

fm = 50 mm

Z p

h e

h p

1.7 m Y

h fZ

pp

p

h

h ep 2

s.t.

Page 55: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Exercise

324 m

1500

What Zp to make the height of Eifel tower appear twice of the person?

Y

h fZe

Y Y

f fZ Z

p

p 2

fm = 50 mm

Z p

h e

h p

1.7 m Y

h fZ

pp

p

h

h ep 2

s.t.

p

1.72 1500 15.74m

324 Z

Page 56: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where Was I?

Z ?

1.7 m

Sensor size Sensor spec

img

ccd

m

hY Yy f f

Z h Z

Page 57: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where Was I?

Z ?

1.7 m

Sensor size Sensor spec

img

ccd

m

hY Yy f f

Z h Z

Page 58: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where Was I?

Circa 1984

Page 59: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where Was I?

Circa 1984

250 pix

670 pix

Page 60: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where Was I?

Circa 1984

324 m

fm = 50 mm

0.9 m

250 pix

670 pix

Page 61: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where Was I?

Circa 1984

324 m

Z 1

0.9 m

img img1 1 11 1

1 ccd 1 ccd 1

1280 0.90.05 8.03m

0.0218 250 m m

h hY Y Yy f f Z f

Z h Z h y

250 pix

670 pix

fm = 50 mm

Page 62: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where Was I?

Circa 1984

324 m

fm = 38 mm

Z 1

0.9 m

img img1 1 11 1

1 ccd 1 ccd 1

1280 0.90.05 8.03m

0.0218 250 m m

h hY Y Yy f f Z f

Z h Z h y

250 pix

670 pix

Page 63: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where Was I?

Circa 1984

324 m

Z 1

0.9 m

img img1 1 11 1

1 ccd 1 ccd 1

1280 0.90.05 8.03m

0.0218 250 m m

h hY Y Yy f f Z f

Z h Z h y

250 pix

670 pix

fm = 50 mm

Page 64: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where Was I?

Circa 1984

324 m

Z 1

0.9 m

Z 2

250 pix

670 pix

m m

h hY Y Yy f f Z f

Z h Z h yimg img2 2 2

2 22 ccd 2 ccd 2

1280 3240.05 1079m

0.0218 670

img img1 1 11 1

1 ccd 1 ccd 1

1280 0.90.05 8.03m

0.0218 250 m m

h hY Y Yy f f Z f

Z h Z h y

fm = 50 mm

Page 65: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where Was I?

Circa 1984

250 pix

670 pix

m m

h hY Y Yy f f Z f

Z h Z h yimg img2 2 2

2 22 ccd 2 ccd 2

1280 3240.05 1079m

0.0218 670

200m

400m

600m

800m

1000m

Page 66: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

800 m

Where Was I?

Page 67: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Focal Length

f d

Strong perspective

Page 68: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Focal Length

f d

Weak perspective

Page 69: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Focal Length

f

Orhographic

d

Page 70: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Focal Length

Page 71: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&
Page 72: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&
Page 73: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Dolly Zoom (Vertigo Effect)

Page 74: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Dolly Zoom (Vertigo Effect)

Page 75: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Dolly Zoom

Given focal length (fm=100mm),what Z100 to make the height of the person remain the same as fm=50mm?

f50 = 50 mm

h p H p

Z 50 =157.41m

Page 76: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Dolly Zoom

Given focal length (fm=100mm),what Z100 to make the height of the person remain the same as fm=50mm?

Y

h fZ50 50

50

h p

Y

h fZ100 100

100

h h100 50s.t.

H p

Z 50 =157.41m

f50 = 50 mm

Page 77: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Dolly Zoom

Given focal length (fm=100mm),what Z100 to make the height of the person remain the same as fm=50mm?

Y

h fZ50 50

50

f

Z Zf100

100 5050

f100 = 100 mm

Z 50 =157.41m

h p

Y

h fZ100 100

100

h h100 50s.t.

Z100

100157.41 314.8m

50

H p

Z 100 ?

Page 78: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where am I with Dolly Zoom?

1 400pixh

2 120pixh

Page 79: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where am I with Dolly Zoom?

1 400pixh

2 120pixh

How far I need to step back with zoom factor x2?

How will h2 change?

Page 80: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where am I with Dolly Zoom?

A

B

C

camera

Image plane

Z

1 400pixh

2 120pixh

Top view

1 4mH

2 6mH

How will h2 change?

How far I need to step back with zoom factor x2?

Page 81: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where am I with Dolly Zoom?

1 400pixh

2 120pixh

A

B

C

camera

Image plane

Z

f = 2md1d

Top view

How far I need to step back with zoom factor x2?

1 4mH

2 6mH

Unknowns: f, d1How will h2 change?

Page 82: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where am I with Dolly Zoom?

1 400pixh

2 120pixh

A

B

C

camera

Image plane

Z

2f 1d

Top view

1 4mH

2 6mH

Unknowns: f, d1,

d

d

= 2md

How will h2 change?

How far I need to step back with zoom factor x2?

Page 83: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where am I with Dolly Zoom?

1 400pixh

2 120pixh

A

B

C

camera

Image plane

Z

2f 1d

Top view

1 4mH

2 6mH

d

1

11 h f

H

d

Equations:

= 2md

Unknowns: f, d1, dHow will h2 change?

How far I need to step back with zoom factor x2?

Page 84: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where am I with Dolly Zoom?

1 400pixh

2 120pixh

A

B

C

camera

Image plane

Z

2f 1d

Top view

1 4mH

2 6mH

d

1

11 h f

H

d

Equations:

1

11 2

+

H

h fd d

= 2md

Unknowns: f, d1, d How will h2 change?

How far I need to step back with zoom factor x2?

Page 85: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where am I with Dolly Zoom?

1 400pixh

2 120pixh

A

B

C

camera

Image plane

Z

2f 1d

Top view

1 4mH

2 6mH

d

1

11 h f

H

d

Equations:1

11 2

+

H

h fd d 1 d d

= 2md

Unknowns: f, d1, d How will h2 change?

How far I need to step back with zoom factor x2?

Page 86: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

Where am I with Dolly Zoom?

1 400pixh

2 120pixh

A

B

C

camera

Image plane

Z

2f 1d

Top view

How far I need to step back with zoom factor x2?

1 4mH

2 6mH

d

1

11 h f

H

d

Equations:1

11 2

+

H

h fd d

2

12 +

Hh f

d d

= 2md

Unknowns: f, d1, d How will h2 change?

1 d d

Page 87: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

A

B

C

camera

Image plane

Z

2f 1d

Top view

1 4mH

2 6mH

d

1

11 h f

H

d

Equations:1

11 2

+

H

h fd d 1 d d

21

1

1 2

1= 2.5m

1

d

h HhH

d

= 2md

Unknowns: f, d1, d

2

12 +

Hh f

d d

1 400pixh

2 120pixh

2 120pixh 2 200pix h

2.5m d

Page 88: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

A

B

C

camera

Image plane

Z

2f 1d

Top view

1 4mH

2 6mH

d

1

11 h f

H

d

Equations:1

11 2

+

H

h fd d 1 d d

21

1

1 2

1= 2.5m

1

d

h HhH

d

= 2md

Unknowns: f, d1, d

2

12 +

Hh f

d d

1 400pixh

2 120pixh

2 120pixh

2.5m d 250pixf

Page 89: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

1 400pixh

2 120pixh

A

B

C

camera

Image plane

Z

2f 1d

Top view

How far I need to step back with zoom factor x2?

1 4mH

2 6mH

d

1

11 h f

H

d

Equations:1

11 2

+

H

h fd d

2

12 +

Hh f

d d

= 2md

Unknowns: f, d1, d How will h2 change?

2

12 2 200pix

+ + f

d d

Hh

d

250pixf1 2.5m d d

Page 90: HQVcis580/Spring2017/Lectures/...3URMHFWLRQ RI SLQKROH ZLPJ KLPJ SS [ \ ,PDJH SULQFLSDO SRLQW [XX S Z Z FFGLPJ FFG LPJ \ YY S K K FFGLPJ FFG LPJ ' 3RLQW 3URMHFWLRQ 3L[HO 6SDFH &&

1 400pixh

2 120pixh

A

B

C

camera

Image plane

Z

2f 1d

Top view

How far I need to step back with zoom factor x2?

1 4mH

2 6mH

d

1

11 h f

H

d

Equations:1

11 2

+

H

h fd d

2

12 +

Hh f

d d2

12 2 429pix

+ + f

d d

Hh

d

= 2md

Unknowns: f, d1, d How will h2 change?

250pixf1 2.5m d d