Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 -
Lecture 3: Cameras II
1
Lecture 3: Cameras II Justin Johnson EECS 442 WI 2020: Lecture 3 - - - PowerPoint PPT Presentation
Lecture 3: Cameras II Justin Johnson EECS 442 WI 2020: Lecture 3 - 1 January 16, 2020 Administrative HW0 is released will be due Friday 1/24 at 11:59pm Justin Johnson EECS 442 WI 2020: Lecture 3 - 2 January 16, 2020 Administrative HW0
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 -
1
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 -
2
HW0 is released will be due Friday 1/24 at 11:59pm
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 -
3
HW0 is released will be due Friday 1/24 Wednesday 1/29 at 11:59pm (Had to split Cameras into 2 lectures; this makes HW0 due after linear algebra lectures)
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 -
4
Coordinate system: O is origin, XY in image, Z sticks out. XY is image plane, Z is optical axis.
(x,y,z) projects to (fx/z,fy/z) via similar triangles
Source: L Lazebnik
Focal length
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 -
5
This also clears up lots of nasty special cases
Physical Point
Homogeneous Point
Concat w=1 Divide by w
Physical Point
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 -
6
Two homogeneous coordinates are equivalent if they are proportional to each other. Not = !
Triple / Equivalent Double / Equals
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 7
Projection (x, y, z) -> (fx/z, fy/z) is matrix multiplication
Slide inspired from L. Lazebnik
3D homogenous point 2D homogenous point
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 -
8
Nice interactive demo: http://ksimek.github.io/2012/08/22/extrinsic/
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 9
Photosensitive Material
Film captures all the rays going through a point (a pencil of rays). How big is a point?
Slide inspired by S. Seitz; image from Michigan Engineering
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 10
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 11
Ideal Pinhole 1 point generates 1 image Low-light levels Finite Pinhole 1 point generates region Blurry. Why is it blurry?
Slide inspired by M. Hebert
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 12
Slide Credit: S. Seitz
Small pinhole gives sharper image (but also needs longer exposure time) When pinhole is too small, diffraction effects take over!
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 13
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 14
(pinhole projection model still holds)
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 15
(pinhole projection model still holds)
the focal point focal point f
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 16
“circle of confusion”
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 17
Image Source: Wikipedia
Object is too close: Point projects to circle (blurry image) Object is just right: Point projects point (sharp image) Object is too far: Point projects to circle (blurry image)
Question: How can we tell if the object is just right?
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 18
image plane lens
Diagram credit: F. Durand
focal point
Want relationship between y, D, D’, f that causes the object to be in focus
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 19
image plane lens
Diagram credit: F. Durand
Thin lens assumptions:
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 20
image plane lens
Diagram credit: F. Durand
Thin lens assumptions:
The object is in focus when both rays intersect on the image plane
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 21
image plane lens
Let’s derive the relationship between object distance D, image plane distance D’, and focal length f.
Diagram credit: F. Durand
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 22
image plane lens
One set of similar triangles:
Diagram credit: F. Durand
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 23
image plane lens
Another set of similar triangles:
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 24
image plane lens
Set them equal:
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 25
Diagram credit: F. Durand
image plane lens
Suppose I want to take a picture of a lion with D big? Which of D, D’, f are fixed? How do we take pictures of things at different distances?
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 26
http://www.cambridgeincolour.com/tutorials/depth-of-field.htm
Slide Credit: A. Efros
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 27
Changing the aperture size affects depth of field A smaller aperture increases the range in which the
Diagram: Wikipedia
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 28
Diagram: Wikipedia
If a smaller aperture makes everything focused, why don’t we just always use it?
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 29
Slide Credit: A. Efros, Photo: Philip Greenspun
Large aperture = small DOF Small aperture = large DOF
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 30
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 31
tan-1 is monotonic increasing. How can I get the FOV bigger?
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 32
Slide Credit: A. Efros
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 33
Slide Credit: A. Efros
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 34
Large FOV, small f Camera close to car Small FOV, large f Camera far from the car
Slide Credit: A. Efros, F. Durand
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 35
standard wide-angle telephoto
Slide Credit: F. Durand
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 36
Video Credit: Goodfellas 1990
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 37
Slide: L. Lazebnik
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 38
Photo: Mark Fiala, U. Alberta
Lens imperfections cause distortions as a function of distance from optical axis Less common these days in consumer devices
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 39
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 40
Slide inspired by L. Lazebnik Slide
What happens to the light between the black and red lines? Doesn’t make it to the sensor! Image darkens toward the edge
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 41
Photo credit: Wikipedia (https://en.wikipedia.org/wiki/Vignetting)
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 42
Lenses don’t focus light perfectly! Rays farther from the optical axis focus closer
Slide: L. Lazebnik
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 43
Image credits: L. Lazebnik, Wikipedia
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 44
Slide Credit: C. Doersch
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 45
photons to electrons
Semiconductor (CMOS)
Slide Credit: L. Lazebnik, Photo Credit: Wikipedia, Stefano Meroli
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 46
Slide Credit: L. Lazebnik, Photo Credit: Wikipedia, Stefano Meroli
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 47
Slide Credit: L. Lazebnik, Photo Credit: Wikipedia, Stefano Meroli
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 48
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 49
Aristotle (384-322 BCE)
Alhacen (965-1039 CE)
(1452-1519), Johann Zahn (1631-1707)
Sony Mavica (1981)
Slide Credit: S. Lazebnik
Niepce, “La Table Servie,” 1822 Alhacen’s notes Old television camera
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 50
Slide Credit: http://listverse.com/history/top-10-incredible-early-firsts-in-photography/
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 51
Sergey Prokudin-Gorskii (1863-1944) Photographs of the Russian empire (1909-1916)
Slide Credit: S. Maji
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 52
Slide Credit: S. Maji
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 53
Justin Johnson January 16, 2020 EECS 442 WI 2020: Lecture 3 - 54
Human Luminance Sensitivity Function