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.

Slides:



Advertisements
Similar presentations
Information Representation
Advertisements

Set the Camera Options  Resolution  Focus  Exposure  Zoom  Flash  Self-Timer/Remote Control.
High Dynamic Range Imaging Samu Kemppainen VBM02S.
Cameras Digital Visual Effects, Spring 2005 Yung-Yu Chuang 2005/3/2 with slides by Brian Curless, Steve Seitz and Alexei Efros.
Computer Vision CS 776 Spring 2014 Photometric Stereo and Illumination Cones Prof. Alex Berg (Slide credits to many folks on individual slides)
Computational Photography: Color perception, light spectra, contrast Connelly Barnes.
16421: Vision Sensors Lecture 6: Radiometry and Radiometric Calibration Instructor: S. Narasimhan Wean 5312, T-R 1:30pm – 2:50pm.
Computer graphics & visualization HDRI. computer graphics & visualization Image Synthesis – WS 07/08 Dr. Jens Krüger – Computer Graphics and Visualization.
Recap of Previous Lecture Matting foreground from background Using a single known background (and a constrained foreground) Using two known backgrounds.
10/14/14 Image-based Lighting Computational Photography Derek Hoiem, University of Illinois Many slides from Debevec, some from Efros T2.
Announcements Midterm out today due in a week Project2 no demo session artifact voting TBA.
Radiometric Self Calibration
High Dynamic Range Images : Computational Photography Alexei Efros, CMU, Fall 2005 …with a lot of slides stolen from Paul Debevec and Yuanzhen Li,
High Dynamic Range Images : Rendering and Image Processing Alexei Efros.
Capturing Light… in man and machine : Computational Photography Alexei Efros, CMU, Fall 2006 Some figures from Steve Seitz, Steve Palmer, Paul Debevec,
High Dynamic Range Images : Computational Photography Alexei Efros, CMU, Fall 2006 …with a lot of slides stolen from Paul Debevec and Yuanzhen Li,
High Dynamic Range from Multiple Images: Which Exposures to Combine?
Michael Grossberg and Shree Nayar CAVE Lab, Columbia University Partially funded by NSF ITR Award What can be Known about the Radiometric Response from.
High Dynamic Range Imaging: Spatially Varying Pixel Exposures Shree K. Nayar, Tomoo Mitsunaga CPSC 643 Presentation # 2 Brien Flewelling March 4 th, 2009.
Graphics and Still Images John H. Krantz Hanover College.
Component Estimated Cost Actual Cost Description Digital Camera$200$0 The camera used with the system. Must have a USB interface and use the PTP/IP Protocol.
10/16/14 Image-based Lighting (Part 2) Computational Photography Derek Hoiem, University of Illinois Many slides from Debevec, some from Efros, Kevin Karsch.
Computational Photography lecture 13 – HDR CS 590 Spring 2014 Prof. Alex Berg (Credits to many other folks on individual slides)
Modern Remote Control Copyright
Computer Graphics Inf4/MSc Computer Graphics Lecture Notes #16 Image-Based Lighting.
Light and shading Source: A. Efros.
Noise Estimation from a Single Image Ce Liu William T. FreemanRichard Szeliski Sing Bing Kang.
11/18/10 Image-based Lighting (Part 2) Computational Photography Derek Hoiem, University of Illinois Many slides from Debevec, some from Efros T2.
Tone mapping with slides by Fredo Durand, and Alexei Efros Digital Image Synthesis Yung-Yu Chuang 11/08/2005.
Recovering High Dynamic Range Radiance Maps from Photographs [Debevec, Malik - SIGGRAPH’97] Presented by Sam Hasinoff CSC2522 – Advanced Image Synthesis.
High dynamic range imaging. Camera pipeline 12 bits8 bits.
Point and Shoot Digital SLR-Single Lens Reflex (DSLR) Prosumer- Not technically its own specification-combines user friendly P&S features with.
HDR PHOTOGRAPHY BY PHILIP VENABLE. WHAT IS HDR? HDR-High Dynamic Range A process to accurately represent the wide range of intensity levels found in real.
High Dynamic Range (HDR) Digital Photography Jim Reynolds Feb 22, 2010.
11/15/11 Image-based Lighting Computational Photography Derek Hoiem, University of Illinois Many slides from Debevec, some from Efros T2.
How A Camera Works Image Sensor Shutter Mirror Lens.
High Dynamic Range Images cs195g: Computational Photography James Hays, Brown, Spring 2010 slides from Alexei A. Efros and Paul Debevec.
© N. David King. High Dynamic Range Imaging For Digital Photography © N. David King.
EE 7700 High Dynamic Range Imaging. Bahadir K. Gunturk2 References Slides and papers by Debevec, Ward, Pattaniak, Nayar, Durand, et al…
Tone Mapping Software Photomatix Pro Application to Photography Konferenz und Workshop '05 Reality-Based Visualization.
16421: Vision Sensors Lecture 7: High Dynamic Range Imaging Instructor: S. Narasimhan Wean 5312, T-R 1:30pm – 3:00pm.
Computational photography CS4670: Computer Vision Noah Snavely.
Digital Cameras. Image Capture  Images are captured by the image sensor, then stored in the camera in a memory device.  Sensors convert light into an.
16421: Vision Sensors Lecture 7: High Dynamic Range Imaging Instructor: S. Narasimhan Wean 5312, T-R 1:30pm – 3:00pm.
Capturing light Source: A. Efros.
Digital Cameras And Digital Information. How a Camera works Light passes through the lens Shutter opens for an instant Film is exposed to light Film is.
Image stitching Digital Visual Effects Yung-Yu Chuang with slides by Richard Szeliski, Steve Seitz, Matthew Brown and Vaclav Hlavac.
Film Digital Image Synthesis Yung-Yu Chuang 11/5/2008 with slides by Pat Hanrahan and Matt Pharr.
Image-based Lighting Design Frederik Anrys Philip Dutré Computer Graphics Group 8 Sept
High Dynamic Range Images : Computational Photography Alexei Efros, CMU, Spring 2010 …with a lot of slides stolen from Paul Debevec © Alyosha Efros.
Rendering Synthetic Objects into Real Scenes: Bridging Traditional and Image-based Graphics with Global Illumination and High Dynamic Range Photography.
Panorama artifacts online –send your votes to Li Announcements.
11/16/10 Image-based Lighting Computational Photography Derek Hoiem, University of Illinois Many slides from Debevec, some from Efros T2.
How digital cameras work The Exposure The big difference between traditional film cameras and digital cameras is how they capture the image. Instead of.
Ning Sun, Hassan Mansour, Rabab Ward Proceedings of 2010 IEEE 17th International Conference on Image Processing September 26-29, 2010, Hong Kong HDR Image.
Determining the Camera Response Function Short Presentation Dominik Neumann Chair of Pattern Recognition (Computer Science 5) Friedrich-Alexander-University.
Colors. Color Systems In computer graphics, we use RGB colors. But… –Can it represent all colors? –Is it linear? For example, (1.0, 1.0, 1.0) is white.
Tone mapping Digital Visual Effects, Spring 2007 Yung-Yu Chuang 2007/3/13 with slides by Fredo Durand, and Alexei Efros.
Singular Value Decomposition on solving Least Square optimization and Implementation 陳宏毅.
Unit 1 The History of Photography & The Camera
Image-based Lighting Computational Photography
Chapter III, Desktop Imaging Systems and Issues: Lesson IV Working With Images
© 2005 University of Wisconsin
Fast Bilateral Filtering for the Display of High-Dynamic-Range Images
High Dynamic Range Images
Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2006/3/8
Digital Image Synthesis Yung-Yu Chuang 11/01/2005
Recovering HDR radiance maps for Project 5
Digital Image Synthesis Yung-Yu Chuang 11/8/2007
Presentation transcript:

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

Announcements Room change to 102? Assignment #1 is online (due on 3/25 midnight)

Camera pipeline 12 bits 8 bits

Real-world response functions

High dynamic range image

Short exposure Real world radiance Picture intensity dynamic range Pixel value 0 to 255

Long exposure Real world radiance Picture intensity dynamic range Pixel value 0 to 255

Camera is not a photometer Limited dynamic rangeLimited dynamic range  Perhaps use multiple exposures? Unknown, nonlinear responseUnknown, nonlinear response  Not possible to convert pixel values to radiance Solution:Solution: –Recover response curve from multiple exposures, then reconstruct the radiance map Limited dynamic rangeLimited dynamic range  Perhaps use multiple exposures? Unknown, nonlinear responseUnknown, nonlinear response  Not possible to convert pixel values to radiance Solution:Solution: –Recover response curve from multiple exposures, then reconstruct the radiance map

Varying exposure Ways to change exposure –Shutter speed –Aperture –Natural density filters

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

Varying shutter speeds

Math for recovering response curve

Idea behind the math

Recovering response curve The solution can be only up to a scale, add a constraint Add a hat weighting function

Recovering response curve We want If P=11, N~25 (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

Matlab code

Sparse linear system Ax=b 256 n np g(0) g(255) lnE 1 lnE n : : :

Recovered response function

Constructing HDR radiance map combine pixels to reduce noise and obtain a more reliable estimation

Reconstructed radiance map

What is this for? Human perception Vision/graphics applications

Easier HDR reconstruction raw image = 12-bit CCD snapshot

Easier HDR reconstruction Δt j Y ij =E i * Δt j Exposure (Y) Δt

12 bytes per pixel, 4 for each channel signexponentmantissa PF Floating Point TIFF similar Text header similar to Jeff Poskanzer’s.ppm image format: Portable floatMap (.pfm)

(145, 215, 87, 149) = (145, 215, 87) * 2^( ) = ( , , ) Red Green Blue Exponent 32 bits / pixel (145, 215, 87, 103) = (145, 215, 87) * 2^( ) = ( , , ) Ward, Greg. "Real Pixels," in Graphics Gems IV, edited by James Arvo, Academic Press, 1994 Radiance format (.pic,.hdr,.rad)

ILM ’ s OpenEXR (.exr) 6 bytes per pixel, 2 for each channel, compressed signexponentmantissa Several lossless compression options, 2:1 typical Compatible with the “half” datatype in NVidia's Cg Supported natively on GeForce FX and Quadro FX Available at

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

Space of response curves

Assorted pixel

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

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?

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

AHDRIA/AHDRIC/HDRI_Helper

Image registration Two programs can be used to correct small drifts. –ImageAlignment from RASCAL –Photomatix Photomatix is recommended.

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 Debevec’s method. You will need a linear solver for this method. (No Matlab!) Recover from CCD snapshots. You will need dcraw.c.

3. Tone mapping Apply some tone mapping operation to develop your photograph. –Reinhard’s algorithm (HDRShop plugin) –Photomatix –LogView –Fast Bilateral (.exr Linux only) –PFStmo (Linux only) pfsin a.hdr | pfs_fattal02 | pfsout o.hdr

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

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.

References Paul E. Debevec, Jitendra Malik, Recovering High Dynamic Range Radiance Maps from Photographs, SIGGRAPH 1997.Recovering High Dynamic Range Radiance Maps from Photographs Tomoo Mitsunaga, Shree Nayar, Radiometric Self Calibration, CVPR 1999.Radiometric Self Calibration Michael Grossberg, Shree Nayar, Modeling the Space of Camera Response Functions, PAMI 2004Modeling the Space of Camera Response Functions