lecture 3 cameras ii
play

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


  1. Lecture 3: Cameras II Justin Johnson EECS 442 WI 2020: Lecture 3 - 1 January 16, 2020

  2. 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

  3. Administrative 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 EECS 442 WI 2020: Lecture 3 - 3 January 16, 2020

  4. Recap: Pinhole Camera Model Focal length y f X (x,y,z) z O P x 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 Justin Johnson EECS 442 WI 2020: Lecture 3 - 4 January 16, 2020

  5. Recap: Homogenous Coordinates Trick: add a dimension! This also clears up lots of nasty special cases Physical Homogeneous Physical Point Point Point 𝑣 𝑦 𝑣/π‘₯ 𝑀 𝑧 𝑀/π‘₯ Concat Divide π‘₯ w=1 by w Justin Johnson EECS 442 WI 2020: Lecture 3 - 5 January 16, 2020

  6. Recap: Homogenous Coordinates Ξ»[x,y,w] Triple / Double / [x,y,w] Equivalent Equals 𝑣 𝑣 𝑣 ( 𝑣 ( y 𝑀 𝑀 ≑ 𝑀 ( ↔ = πœ‡ 𝑀 ( π‘₯ π‘₯ π‘₯ ( π‘₯ ( z πœ‡ β‰  0 Two homogeneous coordinates are x equivalent if they are proportional to each other. Not = ! Justin Johnson EECS 442 WI 2020: Lecture 3 - 6 January 16, 2020

  7. Recap: Projection Matrix Projection (x, y, z) -> (fx/z, fy/z) is matrix multiplication f O π’š 𝑔 0 0 0 𝑔𝑦/𝑨 𝑔𝑦 𝒛 = ≑ 0 𝑔 0 0 𝑔𝑧 𝑔𝑧/𝑨 π’œ 𝑨 0 0 1 0 1 𝟐 3D homogenous 2D homogenous point point Slide inspired from L. Lazebnik Justin Johnson EECS 442 WI 2020: Lecture 3 - 7 January 16, 2020

  8. Recap: Perspective Model Intrinsic Extrinsic Matrix K Matrix [R,t] 𝑔 0 𝑣 6 𝑺 898 𝒖 89; 𝑸 ≑ 𝒀 =9; 0 𝑔 𝑀 6 0 0 1 𝑸 ≑ 𝑳 𝑺 | 𝒖 𝒀 ≑ 𝑡 89= 𝒀 =9; Nice interactive demo: http://ksimek.github.io/2012/08/22/extrinsic/ Justin Johnson EECS 442 WI 2020: Lecture 3 - 8 January 16, 2020

  9. Pinhole Model: Big Issue Photosensitive Material Film captures all the rays going through a point (a p encil of rays). How big is a point? Slide inspired by S. Seitz; image from Michigan Engineering Justin Johnson EECS 442 WI 2020: Lecture 3 - 9 January 16, 2020

  10. Math vs Reality β€’ Math: Any point projects to one point β€’ Reality β€’ Don’t image points behind the camera / objects β€’ Don’t have an infinite amount of sensor material β€’ Other issues β€’ Light is limited β€’ Spooky stuff happens with infinitely small holes Justin Johnson EECS 442 WI 2020: Lecture 3 - 10 January 16, 2020

  11. Limitations of Pinhole Model 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 EECS 442 WI 2020: Lecture 3 - 11 January 16, 2020

  12. Limitations of Pinhole Model Small pinhole gives sharper image (but also needs longer exposure time) When pinhole is too small, diffraction effects take over! Slide Credit: S. Seitz Justin Johnson EECS 442 WI 2020: Lecture 3 - 12 January 16, 2020

  13. Adding a Lens β€’ A lens focuses light onto the film Justin Johnson EECS 442 WI 2020: Lecture 3 - 13 January 16, 2020

  14. Adding a Lens: Thin Lens Model β€’ A lens focuses light onto the film β€’ Thin lens model : β€’ Rays passing through the center are not deviated (pinhole projection model still holds) Justin Johnson EECS 442 WI 2020: Lecture 3 - 14 January 16, 2020

  15. Adding a Lens: Thin Lens Model focal point f β€’ A lens focuses light onto the film β€’ Thin lens model : β€’ Rays passing through the center are not deviated (pinhole projection model still holds) β€’ All rays parallel to the optical axis pass through the focal point Justin Johnson EECS 442 WI 2020: Lecture 3 - 15 January 16, 2020

  16. What’s the catch? β€œcircle of confusion” β€’ There’s a distance where objects are β€œin focus” β€’ Other points project to a β€œcircle of confusion” Justin Johnson EECS 442 WI 2020: Lecture 3 - 16 January 16, 2020

  17. Circle of Confusion 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? Image Source: Wikipedia Justin Johnson EECS 442 WI 2020: Lecture 3 - 17 January 16, 2020

  18. Thin Lens Formula Want relationship between y, D, D’, f that causes the object to be in focus D ΚΉ D f y focal point image object lens plane Diagram credit: F. Durand Justin Johnson EECS 442 WI 2020: Lecture 3 - 18 January 16, 2020

  19. Thin Lens Formula Thin lens assumptions: 1. Rays through the lens center not deviated image object lens plane Diagram credit: F. Durand Justin Johnson EECS 442 WI 2020: Lecture 3 - 19 January 16, 2020

  20. Thin Lens Formula Thin lens assumptions: 1. Rays through the lens center not deviated 2. Rays parallel to the optical axis pass through the focal point The object is in focus when both rays intersect on the image plane image object lens plane Diagram credit: F. Durand Justin Johnson EECS 442 WI 2020: Lecture 3 - 20 January 16, 2020

  21. Thin Lens Formula Let’s derive the relationship between object distance D, image plane distance D’, and focal length f. D ΚΉ D f y y ΚΉ image object lens plane Diagram credit: F. Durand Justin Johnson EECS 442 WI 2020: Lecture 3 - 21 January 16, 2020

  22. Thin Lens Formula 𝑧 = 𝐸 ( βˆ’ 𝑔 𝐸 ( βˆ’ 𝑔 = 𝑧 𝑧′ 𝑧′ One set of similar triangles: 𝑔 𝑔 D ΚΉ D f y y ΚΉ image object lens plane Diagram credit: F. Durand Justin Johnson EECS 442 WI 2020: Lecture 3 - 22 January 16, 2020

  23. Thin Lens Formula 𝑧′ 𝑧 = 𝐸′ 𝐸′ = 𝑧 𝑧′ Another set of similar triangles: 𝐸 𝐸 D ΚΉ D f y y ΚΉ image object lens plane Justin Johnson EECS 442 WI 2020: Lecture 3 - 23 January 16, 2020

  24. Thin Lens Formula 𝐸 + 1 1 𝐸′ = 1 𝐸′ 𝐸 = 𝐸′ βˆ’ 𝑔 Set them equal: 𝑔 𝑔 D ΚΉ D f y y ΚΉ image object lens plane Justin Johnson EECS 442 WI 2020: Lecture 3 - 24 January 16, 2020

  25. Thin Lens Formula 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? D ΚΉ D f 𝐸 + 1 1 𝐸′ = 1 𝑔 image lens object plane Diagram credit: F. Durand Justin Johnson EECS 442 WI 2020: Lecture 3 - 25 January 16, 2020

  26. Depth of Field http://www.cambridgeincolour.com/tutorials/depth-of-field.htm Slide Credit: A. Efros Justin Johnson EECS 442 WI 2020: Lecture 3 - 26 January 16, 2020

  27. Controlling Depth of Field Diagram: Wikipedia Changing the aperture size affects depth of field A smaller aperture increases the range in which the object is approximately in focus Justin Johnson EECS 442 WI 2020: Lecture 3 - 27 January 16, 2020

  28. Controlling Depth of Field Diagram: Wikipedia If a smaller aperture makes everything focused, why don’t we just always use it? Justin Johnson EECS 442 WI 2020: Lecture 3 - 28 January 16, 2020

  29. Varying the Aperture Small aperture = large DOF Large aperture = small DOF Slide Credit: A. Efros, Photo: Philip Greenspun Justin Johnson EECS 442 WI 2020: Lecture 3 - 29 January 16, 2020

  30. Varying the Aperture Justin Johnson EECS 442 WI 2020: Lecture 3 - 30 January 16, 2020

  31. Field of View 𝑔 𝜚 Photo. Material 𝑒 𝑒 𝜚 = tan I; 2𝑔 tan -1 is monotonic increasing. How can I get the FOV bigger? Justin Johnson EECS 442 WI 2020: Lecture 3 - 31 January 16, 2020

  32. Field of View Slide Credit: A. Efros Justin Johnson EECS 442 WI 2020: Lecture 3 - 32 January 16, 2020

  33. Field of View Slide Credit: A. Efros Justin Johnson EECS 442 WI 2020: Lecture 3 - 33 January 16, 2020

  34. Field of View and Focal Length 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 EECS 442 WI 2020: Lecture 3 - 34 January 16, 2020

  35. Field of View and Focal Length standard wide-angle telephoto Slide Credit: F. Durand Justin Johnson EECS 442 WI 2020: Lecture 3 - 35 January 16, 2020

  36. Dolly Zoom Change f and distance at the same time Video Credit: Goodfellas 1990 Justin Johnson EECS 442 WI 2020: Lecture 3 - 36 January 16, 2020

  37. More Bad News β€’ First a pinhole… β€’ Then a thin lens model…. Slide: L. Lazebnik Justin Johnson EECS 442 WI 2020: Lecture 3 - 37 January 16, 2020

  38. Radial Distortion Lens imperfections cause distortions as a function of distance from optical axis Less common these days in consumer devices Photo: Mark Fiala, U. Alberta Justin Johnson EECS 442 WI 2020: Lecture 3 - 38 January 16, 2020

  39. Radial Distortion y f Photo. Material r z y' Ideal Distorted 𝑧′ = 𝑔 𝑧 𝑧′ = (1 + 𝑙 ; 𝑠 O + β‹― ) 𝑧 𝑨 𝑨 Justin Johnson EECS 442 WI 2020: Lecture 3 - 39 January 16, 2020

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend