High dynamic range imaging - PowerPoint PPT Presentation

About This Presentation
Title:

High dynamic range imaging

Description:

Title: 1 Author: cyy Last modified by: Yung-Yu Chuang Created Date: 1/8/2005 9:49:33 AM Document presentation format: Company – PowerPoint PPT presentation

Number of Views:126
Avg rating:3.0/5.0
Slides: 47
Provided by: cyy
Category:

less

Transcript and Presenter's Notes

Title: High dynamic range imaging


1
High dynamic range imaging
  • Digital Visual Effects, Spring 2006
  • Yung-Yu Chuang
  • 2006/3/8

with slides by Fedro Durand, Brian Curless, Steve
Seitz and Alexei Efros
2
Announcements
  • Room change to 102?
  • Assignment 1 is online (due on 3/25 midnight)

3
Camera pipeline
12 bits
8 bits
4
Real-world response functions
5
High dynamic range image
6
Short exposure
10-6
106
dynamic range
Real world radiance
10-6
106
Picture intensity
Pixel value 0 to 255
7
Long exposure
10-6
106
dynamic range
Real world radiance
10-6
106
Picture intensity
Pixel value 0 to 255
8
Camera is not a photometer
  • Limited dynamic range
  • Perhaps use multiple exposures?
  • Unknown, nonlinear response
  • Not possible to convert pixel values to radiance
  • Solution
  • Recover response curve from multiple exposures,
    then reconstruct the radiance map

9
Varying exposure
  • Ways to change exposure
  • Shutter speed
  • Aperture
  • Natural density filters

10
Shutter speed
  • Note shutter times usually obey a power series
    each stop is a factor of 2
  • ¼, 1/8, 1/15, 1/30, 1/60, 1/125, 1/250, 1/500,
    1/1000 sec
  • Usually really is
  • ¼, 1/8, 1/16, 1/32, 1/64, 1/128, 1/256,
    1/512, 1/1024 sec

11
Varying shutter speeds
12
Math for recovering response curve
13
Idea behind the math
14
Idea behind the math
15
Idea behind the math
16
Recovering response curve
  • The solution can be only up to a scale, add a
    constraint
  • Add a hat weighting function

17
Recovering response curve
  • We want
  • If P11, N25 (typically 50 is used)
  • We want selected pixels well distributed and
    sampled from constant region. They pick points by
    hand.
  • It is an overdetermined system of linear
    equations and can be solved using SVD

18
Matlab code
19
Matlab code
20
Matlab code
21
Sparse linear system
n
256
g(0)
np

g(255)
lnE1
lnEn
1
254
Axb
22
Recovered response function
23
Constructing HDR radiance map
combine pixels to reduce noise and obtain a more
reliable estimation
24
Reconstructed radiance map
25
What is this for?
  • Human perception
  • Vision/graphics applications

26
Easier HDR reconstruction
27
Easier HDR reconstruction
Exposure (Y)
YijEi ?tj
?t
28
Portable floatMap (.pfm)
  • 12 bytes per pixel, 4 for each channel

sign
exponent
mantissa
Text header similar to Jeff Poskanzers
.ppmimage format
PF 768 512 1 ltbinary image datagt
Floating Point TIFF similar
29
Radiance format (.pic, .hdr, .rad)
32 bits / pixel
Red Green Blue
Exponent
(145, 215, 87, 103) (145, 215, 87)
2(103-128) (0.00000432, 0.00000641,
0.00000259)
(145, 215, 87, 149) (145, 215, 87)
2(149-128) (1190000, 1760000, 713000)
Ward, Greg. "Real Pixels," in Graphics Gems IV,
edited by James Arvo, Academic Press, 1994
30
ILMs OpenEXR (.exr)
  • 6 bytes per pixel, 2 for each channel, compressed

sign
exponent
mantissa
  • Several lossless compression options, 21
    typical
  • Compatible with the half datatype in NVidia's
    Cg
  • Supported natively on GeForce FX and Quadro FX
  • Available at http//www.openexr.net/

31
Radiometric self calibration
  • Assume that any response function can be modeled
    as a high-order polynomial

32
Space of response curves
33
Space of response curves
34
Assorted pixel
35
Assorted pixel
36
Assorted pixel
37
Assignment 1 HDR image assemble
  • Work in teams of two
  • Taking pictures
  • Assemble HDR images and optionally the response
    curve.
  • Develop your HDR using tone mapping

38
Taking pictures
  • Use a tripod to take multiple photos with
    different shutter speeds. Try to fix anything
    else. Smaller images are probably good enough.
  • There are two sets of test images available on
    the web.
  • We have tripods and a Canon PowerShot G2 for
    lending.
  • Try not touching the camera during capturing.
    But, how?

39
1. Taking pictures
  • Use a laptop and a remote capturing program.
  • PSRemote
  • AHDRIA
  • PSRemote
  • Manual
  • Not free
  • Supports both jpg and raw
  • Support most Canons PowerShot cameras
  • AHDRIA
  • Automatic
  • Free
  • Only supports jpg
  • Support less models

40
AHDRIA/AHDRIC/HDRI_Helper
41
Image registration
  • Two programs can be used to correct small drifts.
  • ImageAlignment from RASCAL
  • Photomatix
  • Photomatix is recommended.

42
2. HDR assembling
  • Write a program to convert the captured images
    into a radiance map and optionally to output the
    response curve.
  • We provide image I/O library, gil, which support
    many traditional image formats such as .jpg and
    .png, and float-point images such as .hdr and
    .exr.
  • Paul Debevecs method. You will need a linear
    solver for this method. (No Matlab!)
  • Recover from CCD snapshots. You will need
    dcraw.c.

43
3. Tone mapping
  • Apply some tone mapping operation to develop your
    photograph.
  • Reinhards algorithm (HDRShop plugin)
  • Photomatix
  • LogView
  • Fast Bilateral (.exr Linux only)
  • PFStmo (Linux only)
  • pfsin a.hdr pfs_fattal02 pfsout o.hdr

44
Bells and Whistles
  • Other methods for HDR assembling algorithms
  • Implement tone mapping algorithms
  • Others

45
Submission
  • You have to turn in your complete source, the
    executable, a html report, pictures you have
    taken, HDR image, and an artifact (tone-mapped
    image).
  • Report page contains
  • description of the project, what do you learn,
    algorithm, implementation details, results, bells
    and whistles
  • The class will have vote on artifacts.
  • Submission mechanism will be announced later.

46
References
  • Paul E. Debevec, Jitendra Malik, Recovering High
    Dynamic Range Radiance Maps from Photographs,
    SIGGRAPH 1997.
  • Tomoo Mitsunaga, Shree Nayar, Radiometric Self
    Calibration, CVPR 1999.
  • Michael Grossberg, Shree Nayar, Modeling the
    Space of Camera Response Functions, PAMI 2004
Write a Comment
User Comments (0)
About PowerShow.com