image formation
play

Image formation Subhransu Maji CMPSCI 670: Computer Vision - PowerPoint PPT Presentation

Image formation Subhransu Maji CMPSCI 670: Computer Vision September 13, 2016 Administrivia and survey results Topics: deep learning, CNNs, machine learning, AI Applications: self driving cars, face detection/recognition, etc


  1. Image formation Subhransu Maji CMPSCI 670: Computer Vision September 13, 2016

  2. Administrivia and survey results Topics: ‣ deep learning, CNNs, machine learning, AI ‣ Applications: self driving cars, face detection/recognition, etc ‣ robotics, calibration, structure from motion ‣ graphics, text/natural language processing, speech, Goals: ‣ Learn fundamentals of CV/ML/image processing ‣ Do a supercool project ‣ Get an awesome industry job (e.g., space exploration @ NASA) Programming: 7.5 - 8.5 , Math: 6.5 - 7.5 Spire: waitlisted students? there are a few more open slots Resources for vector algebra and probability added to the webpage 2 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  3. Overview of the next two lectures The pinhole projection model ‣ qualitative properties Cameras with lenses ‣ Depth of focus ‣ Field of view ‣ Lens aberrations Digital cameras ‣ Sensors ‣ Colors ‣ Artifacts Computational photography ‣ Novel sensors and cameras 3 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  4. Cameras Albrecht Dürer early 1500s Brunelleschi, early 1400s 4 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  5. Lets design a camera Object Film A B Idea 1: Lets put a film in front of an object Do we get a reasonable image? 5 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  6. Pinhole camera Object Barrier Film Add a barrier to block of most rays 6 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  7. Pinhole camera Object Barrier Film • Captures pencil of rays - all rays through a single point: aperture, center of projection, focal point, camera center • The image is formed on the image plane 7 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  8. Camera obscura Basic principle known to Mozi (470-390 BCE), Aristotle (384-322 BCE) Drawing aids for artists: described by Leonardo Da Vinci (1452-1519 AD) Gemma Frisius, 1558 “Camera obscure” Latin for “darkened room” 8 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  9. Pinhole cameras are everywhere Tree shadow during a solar eclipse photo credit: Nils van der Burg http://www.physicstogo.org/index.cfm Slide by Steve Seitz 9 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  10. Accidental pinhole cameras A. Torralba and W. Freeman, Accidental Pinhole and Pinspeck Cameras , CVPR 2012 10 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  11. Home-made pinhole camera http://www.pauldebevec.com/Pinhole 11 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  12. Dimensionality reduction: 3D to 2D 3D world 2D image Point of observation • What is preserved? • Straight lines, incidence • What is not preserved? • Angles, lengths Slide by A. Efros 12 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  13. Modeling projection y f z x To compute the projection P’ of a scene point P, form a visual ray connection P to the camera center O and find where it intersects the image plane ‣ All scene points that lie on this visual ray have the same projection on the image ‣ Are there points for which this projection is not defined? Slide by Steve Seitz 13 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  14. Modeling projection y f z x The coordinate system ‣ The optical center ( O ) is at the origin ‣ The image plane is parallel to the xy-plane (perpendicular to the z axis) x y Projection equations ( x , y , z ) ( f , f ) → ‣ Derive using similar triangles z z Slide by Steve Seitz 14 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  15. Projection of a line image plane camera vanishing point center line in the scene • What if we add another line parallel to the first one? Slide by Steve Seitz 15 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  16. Vanishing points Each direction in space has its own vanishing point ‣ All lines going in the that direction converge at that point • Exception : directions that are parallel to the image plane Slide by Steve Seitz 16 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  17. Vanishing points Each direction in space has its own vanishing point ‣ All lines going in the that direction converge at that point • Exception : directions that are parallel to the image plane • What about the vanishing point of a plane? 17 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  18. The horizon camera center ground plane Vanishing line of the ground plane ‣ All points at the same height of the camera project to the horizon ‣ Points above the camera project above the horizon ‣ Provides a way of comparing heights of objects 18 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  19. The horizon Is the person above or below the viewer? 19 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  20. Perspective cues 20 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  21. Perspective cues 21 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  22. Perspective cues 22 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  23. Comparing heights vanishing point 23 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  24. Measuring heights 5.4 5 camera height 4 3.7 3 2.5 2 1 What is the height of the camera? 24 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  25. Perspective in art Masaccio, Trinity , Santa Maria Novella, Florence, 1425-28 One of the first consistent uses of perspective in Western art 25 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  26. Perspective in art (At least partial) Perspective projections in art well before the Renaissance From ottobwiersma.nl Also some Greek examples, So apparently pre-renaissance … 26 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  27. Perspective distortion What does a sphere project to? M. H. Pirenne Slide by Steve Seitz 27 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  28. Perspective distortion What does a sphere project to? 28 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  29. Perspective distortion The exterior looks bigger The distortion is not due to lens flaws Problem pointed out by Da Vinci Slide by F. Durand 29 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  30. Orthographic projection Special case of perspective projection ‣ Distance of the object from the image plane is infinite ‣ Also called the “parallel projection” Image World Slide by Steve Seitz 30 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  31. Orthographic projection Special case of perspective projection ‣ Distance of the object from the image plane is infinite ‣ Also called the “parallel projection” 31 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  32. Overview of the next two lectures The pinhole projection model ‣ Qualitative properties Cameras with lenses ‣ Depth of focus ‣ Field of view ‣ Lens aberrations Digital cameras ‣ Sensors ‣ Colors ‣ Artifacts Novel cameras ‣ Computational photography 32 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  33. Pinhole camera Object Barrier Film image aperture • Captures pencil of rays - all rays through a single point: aperture, center of projection, focal point, camera center • The image is formed on the image plane 33 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  34. Shrinking the aperture Why not make the aperture as small as possible? ‣ Less light gets through ‣ Diffraction effects Slide by Steve Seitz 34 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  35. Shrinking the aperture Slide by Steve Seitz 35 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  36. Adding a lens Object Lens Film A lens focuses light on to the film ‣ Thin lens model: ➡ Rays passing through the center are not deviated (pinhole projection model still holds) Slide by F. Durand 36 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  37. Adding a lens Object Lens Film f A lens focuses light on to the film ‣ Thin lens model: ➡ Rays passing through the center are not deviated (pinhole projection model still holds) ➡ All parallel rays converge to one point on a plane located at the focal length f Slide by F. Durand 37 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  38. Adding a lens Object Lens Film circle of confusion A lens focuses light on to the film ‣ There is a specific distance at which objects are “in focus” ➡ other points project on to a “circle of confusion” in the image Slide by F. Durand 38 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  39. Thin lens formula What is the relation between the focal length ( f ) , the distance of the object from the optical center ( D ) and the distance at which the object will be in focus ( D’ )? D ′ D f image lens object plane Slide by F. Durand 39 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  40. Thin lens formula y ′ / y = D ′ / D Similar triangles everywhere! D ′ D f y y ′ image lens object plane Slide by F. Durand 40 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  41. Thin lens formula y ′ / y = D ′ / D Similar triangles everywhere! y ′ / y = ( D ′− f )/ f D ′ D f y y ′ image lens object plane Slide by F. Durand 41 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

  42. Thin lens formula 1 1 1 Any point satisfying the thin lens + = D ′ D f equation is in focus D ′ D f y y ′ image lens object plane Slide by F. Durand 42 CMPSCI 670 Subhransu Maji (UMass, Fall 16)

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