lenses and depth of field

Upload: javi-er

Post on 14-Apr-2018

223 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/30/2019 Lenses and Depth of Field

    1/68

    Lenses and Depth of Field

    Prepared by Behzad Sajadi

    Borrowed from Frdo DurandsLectures at MIT

  • 7/30/2019 Lenses and Depth of Field

    2/68

  • 7/30/2019 Lenses and Depth of Field

    3/68

    References

  • 7/30/2019 Lenses and Depth of Field

    4/68

    Links

    http://en.wikipedia.org/wiki/Chromatic_aberration

    http://www.dpreview.com/learn/?/key=chromatic+aberration

    http://hyperphysics.phy-

    astr.gsu.edu/hbase/geoopt/aberrcon.html#c1 http://en.wikipedia.org/wiki/Spherical_aberration

    http://en.wikipedia.org/wiki/Lens_(optics)

    http://en.wikipedia.org/wiki/Optical_coating

    http://www.vanwalree.com/optics.html http://en.wikipedia.org/wiki/Aberration_in_optical_systems

    http://www.imatest.com/docs/iqf.html

    http://www.luminous-landscape.com/tutorials/understanding-series/understanding-mtf.shtml

  • 7/30/2019 Lenses and Depth of Field

    5/68

    Other qualityissues

  • 7/30/2019 Lenses and Depth of Field

    6/68

    Flare

    From "The Manual of Photography" J acobson et al

  • 7/30/2019 Lenses and Depth of Field

    7/68

    Example of flare "bug"

    Some of the first copies of the Canon 24-105 L had

    big flare problems

    http://www.the-digital-picture.com/Reviews/Canon-EF-24-105mm-f-4-L-IS-USM-Lens-Review.aspx

  • 7/30/2019 Lenses and Depth of Field

    8/68

    Flare and Ghosting

    source: canon red book

  • 7/30/2019 Lenses and Depth of Field

    9/68

  • 7/30/2019 Lenses and Depth of Field

    10/68

    Use a hood! (and a good one)

    Adapted from Ray's Applied Photographic Optics

    Hood is to shortFlare ray

    Good hood

    Flare

  • 7/30/2019 Lenses and Depth of Field

    11/68

    Lens hood

    From Ray's Applied Photographic Optics

  • 7/30/2019 Lenses and Depth of Field

    12/68

    Coating

    Use destructive interferences

    Optimized for one wavelength

    From "The Manual of Photography" J acobson et al

  • 7/30/2019 Lenses and Depth of Field

    13/68

    Coating for digital

    source: canon red book

  • 7/30/2019 Lenses and Depth of Field

    14/68

    Vignetting

    The periphery does not get as much light

    source: canon red book

  • 7/30/2019 Lenses and Depth of Field

    15/68

    Vignetting

    http://www.photozone.de/3Technology/lenstec3.htm

  • 7/30/2019 Lenses and Depth of Field

    16/68

    Lens design

  • 7/30/2019 Lenses and Depth of Field

    17/68

    Optimization software

    Has revolutionized lens design

    E.g. zooms are good now

    From Hecht's Optics

  • 7/30/2019 Lenses and Depth of Field

    18/68

    Lens design, ray tracing

    source: canon red book

  • 7/30/2019 Lenses and Depth of Field

    19/68

    Optimization Free parameters

    Lens curvature, width, position, type of glass

    Some can be fixed, other vary with focal length, focus (e.g.floating elements)

    Multiplied by number of lens elements Energy/merit function

    MTF, etc.

    Black art of massaging the merit function Optimize for

    All image locations

    All wavelengths

    All apertures All focusing distances

    All focal lengths (zoom only) Usually uses simulated annealing

  • 7/30/2019 Lenses and Depth of Field

    20/68

    Floating elements

    Move with focus to optimize response

    (but are not responsible for focusing)

    source: canon red book

  • 7/30/2019 Lenses and Depth of Field

    21/68

    Imagestabilization

  • 7/30/2019 Lenses and Depth of Field

    22/68

    Image stabilization

    source: canon red book

  • 7/30/2019 Lenses and Depth of Field

    23/68

    Image stabilization

    source: canon red book

  • 7/30/2019 Lenses and Depth of Field

    24/68

    Image stabilization

    source: canon red book

  • 7/30/2019 Lenses and Depth of Field

    25/68

    1000mm, 1/100s, monopod, IS

  • 7/30/2019 Lenses and Depth of Field

    26/68

    Different versions

    Canon, Nikon: in the lens

    Panasonic, Konica/Minolta: move sensor

  • 7/30/2019 Lenses and Depth of Field

    27/68

    6.088 Digital and Computational Photography

    6.882 Advanced Computational Photography

    Focus and Depth of Field

    Frdo Durand

    MIT - EECS

  • 7/30/2019 Lenses and Depth of Field

    28/68

    Focusing

    f

    DD

    1D D

    1 1f

    + = Move film/sensor

    Thin-lens formula

  • 7/30/2019 Lenses and Depth of Field

    29/68

    In practice, its a little more complex

    Various lens elements

    can move

    inside the lens

    Here in blue

    Source: Canon red book.

  • 7/30/2019 Lenses and Depth of Field

    30/68

    Defocus &Depth of field

  • 7/30/2019 Lenses and Depth of Field

    31/68

  • 7/30/2019 Lenses and Depth of Field

    32/68

    Circle of confusion

    From Basic Photographic Materials and Processes, Stroebel et al.

    circle of confusion

  • 7/30/2019 Lenses and Depth of Field

    33/68

    Depth of focus

    From Basic Photographic Materials and Processes, Stroebel et al.

  • 7/30/2019 Lenses and Depth of Field

    34/68

    Size of permissible circle?

    Assumption on print size, viewing distance, human

    vision

    Typically for 35mm film: diameter = 0.02mm

    Film/sensor resolution(8 photosites for high-end SLR )

    Best lenses are around 60 lp/mm

    Diffraction limit

  • 7/30/2019 Lenses and Depth of Field

    35/68

    Depth of field: Object space

    lens

    sensor

    Point in focus

    Object with texture

    Simplistic view: double cone

    Only tells you about the value of one pixel

    Things are in fact a little more complicated to assescircles of confusion across the image

    We're missing the magnification factor

    (proportional to 1/distance and focal length)

  • 7/30/2019 Lenses and Depth of Field

    36/68

    Depth of field: more accurate view

    Backproject the image onto the plane in focus

    Backproject circle of confusion

    Depends on magnification factor Depth of field is slightly asymmetrical

    lens

    Point in focus

    Conjugate of

    circle of confusion

    Depth of field

  • 7/30/2019 Lenses and Depth of Field

    37/68

    DoF & aperture

    http://www.juzaphoto.com/eng/articles/depth_of_field.htm

    f/2.8 f/32

  • 7/30/2019 Lenses and Depth of Field

    38/68

    Depth of field and focusing distance

    Quadratic (bad news for macro)

    (but careful, our simplifications

    are not accurate for macro)

    f/N

    d1 d2

    D

    CD/f

  • 7/30/2019 Lenses and Depth of Field

    39/68

    Double cone perspective

    Seems to say that relationship is linear

    But if you add the magnification factor, it's actually

    quadratic

    lenssensor

    Point in focus

    D h f fi ld & f i di

  • 7/30/2019 Lenses and Depth of Field

    40/68

    Depth of field & focusing distance

    From Photography, London et al.

  • 7/30/2019 Lenses and Depth of Field

    41/68

    D th f fi ld & f l l th

  • 7/30/2019 Lenses and Depth of Field

    42/68

    Same image size (same magnification),

    same f number

    Same depth of field!

    Depth of field & focal length

    Wide-angle

    lens

    Telephoto

    lens (2x f), same aperture

    DoF

    DoF

  • 7/30/2019 Lenses and Depth of Field

    43/68

    DoF & Focal length

    http://www.juzaphoto.com/eng/articles/depth_of_fiel

    d.htm

    50mm f/4.8 200mm f/4.8

    (from 4 times farther)

    See also http://luminous-landscape.com/tutorials/dof2.shtml

    I t t l i

  • 7/30/2019 Lenses and Depth of Field

    44/68

    Important conclusion

    For a given image size and a given f number, the

    depth of field (in object space) is the same.

    Might be counter intuitive.

    Very useful for macro where DoF is critical. You

    can change your working distance without affectingdepth of field

    Now what happens to the background blur far far

    away?

  • 7/30/2019 Lenses and Depth of Field

    45/68

    Sensor size

    D th f fi ld

  • 7/30/2019 Lenses and Depth of Field

    46/68

    Depth of field

    Its all about the size of the lens aperture

    lenssensor

    Point in focus

    Object with texture

    lens

    sensor Point in focus

    Object with texture

    E ti

  • 7/30/2019 Lenses and Depth of Field

    47/68

    Equation

    Smaller sensor

    smallerC

    smallerf But the effect of f is quadratic

    Sensor size

  • 7/30/2019 Lenses and Depth of Field

    48/68

    Sensor size

    http://www.mediachance.com/dvdlab/dof/index.htm

    The coolest depth of field solution

  • 7/30/2019 Lenses and Depth of Field

    49/68

    The coolest depth of field solution

    http://www.mediachance.com/dvdlab/dof/index.htm

    Use two optical systems

    lensdiffuser

    Point in focus

    Object

    withtexture

    lens

    sensor

    The coolest depth of field solution

  • 7/30/2019 Lenses and Depth of Field

    50/68

    The coolest depth of field solution

    http://www.mediachance.com/dvdlab/dof/index.htm

    lensdiffuser

    Point in focus

    Object

    with

    texture

    lens

    sensor

  • 7/30/2019 Lenses and Depth of Field

    51/68

    Seeing throughocclusion

    Seeing beyond occlusion

  • 7/30/2019 Lenses and Depth of Field

    52/68

    Seeing beyond occlusion

    Photo taken through zoo bars

    Telephoto at full aperture

    The bars are so blurrythat they are invisible

    Synthetic aperture

  • 7/30/2019 Lenses and Depth of Field

    53/68

    Synthetic aperture

    Stanford Camera array (Willburn et al.

    http://graphics.stanford.edu/papers/CameraArray/)

  • 7/30/2019 Lenses and Depth of Field

    54/68

    Autofocus

    How would you build an Auto Focus?

  • 7/30/2019 Lenses and Depth of Field

    55/68

    How would you build an Auto Focus?

    Polaroid Ultrasound (Active AF)

  • 7/30/2019 Lenses and Depth of Field

    56/68

    Polaroid Ultrasound (Active AF)

    Time of flight (sonar principle)

    Limited range, stopped by glass

    Paved the way for use in robotics http://www.acroname.com/robotics/info/articles/sonar/sonar.html http://www.uoxray.uoregon.edu/polamod/

    http://electronics.howstuffworks.com/autofocus2.htm

    http://www.uoxray.uoregon.edu/polamod/

    From Rays Applied Photographic Optics

    Infrared (Active AF)

  • 7/30/2019 Lenses and Depth of Field

    57/68

    Infrared (Active AF)

    Intensity of reflected IR is assumed to be

    proportional to distance

    There are a number of obvious limitations

    Advantage: works in the dark

    This is different from Flash assistant for AF where

    the IR only provides enough contrast so thatstandard passive AF can operate

    Triangulation

  • 7/30/2019 Lenses and Depth of Field

    58/68

    Triangulation

    Rotating mirror sweeps the

    scene until the image is aligned

    with fixed image from mirror M

    pretty much stereovision and

    window correlation)

    From The Manual of Photography

    Different types of autofocus

  • 7/30/2019 Lenses and Depth of Field

    59/68

    Different types of autofocus

    From The Manual of Photography

    Contrast

  • 7/30/2019 Lenses and Depth of Field

    60/68

    Focus = highest contrast

    http://electronics.howstuffworks.com/autofocus3.htm

    Phase detection focusing

  • 7/30/2019 Lenses and Depth of Field

    61/68

    g

    Used e.g. in SLRs

    From The Manual of Photography From the Canon red book

    Phase detection focusing

  • 7/30/2019 Lenses and Depth of Field

    62/68

    g

    Stereo vision from two portions of the lens on the

    periphery

    Not at the equivalent

    film plane but farther

    can distinguishtoo far and too close

    Look at the phase

    difference between

    the two images

    From The Manual of Photography

    In focus

    Too close

    Too far

    Detector

    phase

  • 7/30/2019 Lenses and Depth of Field

    63/68

    compute phase difference,

    deduce distance

  • 7/30/2019 Lenses and Depth of Field

    64/68

    Fake Depth of

    Field

    Photoshop

  • 7/30/2019 Lenses and Depth of Field

    65/68

    Using layers: One sharp layer, one blurry layer (using Gaussian

    blur)

    Layer mask selects focusInput (sharp layer)

    Result

    Blurred layer

    Mask of blurry layer)

    Photoshop

  • 7/30/2019 Lenses and Depth of Field

    66/68

    Problem: halo around edges

    Photoshop lens blur

  • 7/30/2019 Lenses and Depth of Field

    67/68

    Reverse-engineered algorithm: average over circle Size of circle depends on pseudo depth

    Discard pixels that are too much closer

    InputDepth map (painted manually)

    Photoshop lens blur

  • 7/30/2019 Lenses and Depth of Field

    68/68

    Filter>Blur>Lens blur

    Input

    Result

    Depth map (painted manually)