Unformatted text preview:

Autofocus (AF)CS 178, Spring 2009Marc LevoyComputer Science DepartmentStanford University© 2009 Marc LevoyAnnouncements (from whiteboard)✦bring cameras and student IDs to section this week!•so you can get into Green Library2© 2009 Marc LevoyOutline✦viewfinders and manual focusing✦active autofocusing•time-of-flight•triangulation✦passive autofocusing•phase detection•contrast detection✦autofocus modes✦lens actuators3© 2009 Marc LevoyLarge format camera with focusing screen✦4×5” or 8×10” formats•film or scanned digital✦ground glass focusing screen•dim•hard to focus•inverted image4Sinar 4×5(Adams)© 2009 Marc LevoyTwin-lens reflex with focusing screen✦older medium format cameras•2¼ × 2¼” film✦different perspective view than main lens sees5(Adams)© 2009 Marc LevoyManual rangefinder ✦accurate✦painstaking✦different perspective viewthan main lens sees✦triangulation conceptwidely applicable6(Adams)Leica θ© 2009 Marc LevoySingle lens reflex with viewfinder✦image formed on focusing screen,seen (upright) through viewfinder✦same view as main lens✦mirror must be moved(quickly) to take picture✦manual or autofocus7Nikon F4© 2009 Marc LevoyActive autofocus: time-of-flight✦SONAR = Sound Navigation and Ranging✦Polaroid system used ultrasound (50KHz)•well outside human hearing (20Hz - 20KHz)✦limited range, stopped by glass✦hardware salavaged and re-used in amateur robotics8(Goldberg)© 2009 Marc LevoyActive autofocus: triangulation✦infrared (IR) LED flash reflects from subject✦angle of returned reflection depends on distance✦fails on dark or shiny objects9(Goldberg)© 2009 Marc LevoyActive autofocus: triangulation✦situation from previous slide,shown in plan view10© 2009 Marc LevoySidebar:laser triangulation rangefinding✦laser sheet illuminates a curve on the object✦distance from left edge of image gives distance from laser✦move object or sweep laser to create range image z(x,y)11© 2009 Marc LevoyScanning Michelangelo’s David✦480 range images✦2 billion polygons✦22 people × 30 nightshttp://graphics.stanford.edu/projects/mich/12© 2009 Marc LevoyUses of the 3D model15interactive kioskphysical replica© 2009 Marc LevoyUses of the 3D model16scientific studies✦commonly used to digitizephysical maquettes to easecreation of 3D CG models3D modelmocaprendered© 2009 Marc LevoyPassive autofocus: phase detection✦as the lens moves, ray bundles from an object converge to a different point in the camera and change in angle✦this change in angle causes them to refocus through two lenslets to different positions on a separate AF sensor✦a certain spacing between these double images is “in focus”19(Goldberg)© 2009 Marc LevoyPassive autofocus: phase detection✦situations at three focus settings from previous slide, drawn in different colors and shown in a single drawing✦at bottom is depth-from-stereo in computer vision,by finding corresponding object features in two views20© 2009 Marc LevoyPassive autofocus: contrast detection✦sensors at different image distances will see the same object as contrasty if it’s in focus, or of low contrast if it’s not✦move the lens until the contrasty subimage falls on the middle sensor, which is conjugate to the camera’s main sensor✦compute contrasty-ness using local differences of pixel values21(Goldberg)To reiterate something I said in class, modern point-and-shoot cameras use contrast detection, but they don't use 3 CCDs placed at different depths like this. They use only the main sensor, and they hunt around more (than would be required here) for the lens setting that produces the most contrasty image as recorded by that sensor.© 2009 Marc LevoyMost SLRs use phase detection✦distance between subimages allows lensto move directly into focus, without hunting•equivalent to depth-from-stereo in computer vision✦many AF points, complicated algorithms for choosing among them•generally use closest point, but also consider position in FOV22(Canon)© 2009 Marc LevoyMost DSCs use contrast detection✦uses maincamera sensor✦requires repeated measurements as lens moves,which are captured using the main sensor•equivalent to depth-from-focus in computer vision✦slow, requires hunting, suffers from overshooting•it’s ok if still cameras overshoot, but video cameras shouldn’t23(howstuffworks.com)© 2009 Marc LevoyAutofocus modes✦AI servo (Canon) / Continuous servo (Nikon)•continues autofocusing as long as shutter is pressed halfway•predictive tracking so focus doesn’t lag objects moving axially✦focusing versus metering•autofocus first, then meter on those points✦“trap focus”•trigger a shot if an object comes into focus (Nikon)✦depth of field focusing•find closest and furthest object; set focus and N accordingly✦overriding autofocus•manually triggered autofocus (AF-ON in Canon)24© 2009 Marc LevoyLens actuators✦Canon ultrasonic motor (USM)25(Canon)© 2009 Marc LevoySlide credits✦Goldberg, N., Camera Technology: The Dark Side of the Lens, Academic Press, 1992.✦Canon, EF Lens Work III: The Eyes of EOS, Canon Inc., 2004.✦Adams, A., The Camera, Little, Brown and Co., 1980.✦Kerr, D.A., Principle of the Split Image Focusing Aid and the Phase Comparison Autofocus Detector in Single Lens Reflect


View Full Document

Stanford CS 178 - Lecture Notes

Download Lecture Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture Notes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?