High Dynamic Range Images

Slides:



Advertisements
Similar presentations
High Dynamic Range Imaging Samu Kemppainen VBM02S.
Advertisements

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.
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.
CS443: Digital Imaging and Multimedia Point Operations on Digital Images Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University Spring.
Capturing light Source: A. Efros. Review Pinhole projection models What are vanishing points and vanishing lines? What is orthographic projection? How.
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,
10/16/14 Image-based Lighting (Part 2) Computational Photography Derek Hoiem, University of Illinois Many slides from Debevec, some from Efros, Kevin Karsch.
Lecture 33: Computational photography CS4670: Computer Vision Noah Snavely.
Computational Photography lecture 13 – HDR CS 590 Spring 2014 Prof. Alex Berg (Credits to many other folks on individual slides)
1/22/04© University of Wisconsin, CS559 Spring 2004 Last Time Course introduction Image basics.
Light and shading Source: A. Efros.
Photography Is the capture of reflective light on light sensitive material. Film-Base Photography used “silver” as the light sensitive material. Digital.
Digital Photography Basics. Pixels A pixel is a contraction if the term PIcture ELement. Digital images are made up of small squares, just like a tile.
Noise Estimation from a Single Image Ce Liu William T. FreemanRichard Szeliski Sing Bing Kang.
How the Camera Works ( both film and digital )
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.
Digital Photography A tool for Graphic Design Graphic Design: Digital Photography.
11/15/11 Image-based Lighting Computational Photography Derek Hoiem, University of Illinois Many slides from Debevec, some from Efros T2.
Camera Geometry and Calibration Thanks to Martial Hebert.
Comparing Regular Film to Digital Photography
High Dynamic Range Images cs195g: Computational Photography James Hays, Brown, Spring 2010 slides from Alexei A. Efros and Paul Debevec.
03/10/03© 2003 University of Wisconsin Last Time Tone Reproduction and Perceptual Issues Assignment 2 all done (almost)
Computational photography CS4670: Computer Vision Noah Snavely.
 Is the technique of taking several shots of the same subject using different aperture, shutter speed or ISO settings  Why do you think you would want.
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.
Photography Presentation. Photograph - The product of a camera when focused film and material are made permanent due to chemicals. Photography -The art.
CS348B Lecture 7Pat Hanrahan, 2005 Camera Simulation EffectCause Field of viewFilm size, stops and pupils Depth of field Aperture, focal length Motion.
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.
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.
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.
Determining the Camera Response Function Short Presentation Dominik Neumann Chair of Pattern Recognition (Computer Science 5) Friedrich-Alexander-University.
The Camera. Photography is all about how light interacts with film and with paper. Cameras are designed to control the amount of light that reaches film.
Fundamentals of Digital Images & Photography. Pixels & Colors The pixel (a word invented from "picture element") is the basic unit of programmable color.
Tone mapping Digital Visual Effects, Spring 2007 Yung-Yu Chuang 2007/3/13 with slides by Fredo Durand, and Alexei Efros.
Understanding Aperture (a beginner’s guide) Understanding Aperture (a beginner’s guide)
Unit 1 The History of Photography & The Camera
Aperture, Shutter Speed, & ISO
(High Dynamic Range Imagery)
Image-based Lighting Computational Photography
A tool for Graphic Design
donated by Paul Debevec
Physiology of Vision: a swift overview
Capturing Light… in man and machine
Aperture.
Picture Analysis Answer the questions on each slide about that particular picture shown.
A basic look at the mechanics
Chapter I, Digital Imaging Fundamentals: Lesson II Capture
© 2005 University of Wisconsin
Capturing light Source: A. Efros.
Point Processing CS194: Image Manipulation & Computational Photography
Capturing Light… in man and machine
Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2006/3/8
Recovering HDR radiance maps for Project 5
A tool for Graphic Design
Presentation transcript:

High Dynamic Range Images © Alyosha Efros CS194: Image Manipulation & Computational Photography Alexei Efros, UC Berkeley, Fall 2017 …with a lot of slides stolen from Paul Debevec

Why HDR?

Problem: Dynamic Range 1 The real world is high dynamic range. 1500 25,000 400,000 2,000,000,000

Image pixel (312, 284) = 42 42 photos? 2

Long Exposure 10-6 High dynamic range 106 10-6 106 0 to 255 Real world Picture 0 to 255

Short Exposure 10-6 High dynamic range 106 10-6 106 0 to 255 Real world 10-6 106 Picture 0 to 255

Camera Calibration Geometric Photometric How pixel coordinates relate to directions in the world Photometric How pixel values relate to radiance amounts in the world

The Image Acquisition Pipeline Lens Shutter Film ò scene radiance (W/sr/m ) sensor irradiance sensor exposure latent image 2 Dt Electronic Camera The Image Acquisition Pipeline 3

Development CCD ADC Remapping film density analog voltages digital values pixel values

Imaging system response function 255 Pixel value log Exposure = log (Radiance * Dt) (CCD photon count) 1

Varying Exposure

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 4

Recovering High Dynamic Range Radiance Maps from Photographs Paul Debevec Jitendra Malik Computer Science Division University of California at Berkeley August 1997 1

Ways to vary exposure

Ways to vary exposure Shutter Speed (*) F/stop (aperture, iris) Neutral Density (ND) Filters

Shutter Speed Ranges: Canon D30: 30 to 1/4,000 sec. Sony VX2000: ¼ to 1/10,000 sec. Pros: Directly varies the exposure Usually accurate and repeatable Issues: Noise in long exposures

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

The Algorithm Image series Pixel Value Z = f(Exposure) • 1 • 1 • 1 • 1 • 1 • 2 • 2 • 2 • 2 • 2 • 3 • 3 • 3 • 3 • 3 Dt = 1/64 sec Dt = 1/16 sec Dt = 1/4 sec Dt = 1 sec Dt = 4 sec Pixel Value Z = f(Exposure) Exposure = Radiance ´ Dt log Exposure = log Radiance + log Dt 10

Response Curve Assuming unit radiance for each pixel After adjusting radiances to obtain a smooth response curve 3 2 Pixel value Pixel value 1 ln Exposure ln Exposure

The Math Let g(z) be the discrete inverse response function For each pixel site i in each image j, want: Solve the overdetermined linear system: fitting term smoothness term

Matlab Code function [g,lE]=gsolve(Z,B,l,w) n = 256; A = zeros(size(Z,1)*size(Z,2)+n+1,n+size(Z,1)); b = zeros(size(A,1),1); k = 1; %% Include the data-fitting equations for i=1:size(Z,1) for j=1:size(Z,2) wij = w(Z(i,j)+1); A(k,Z(i,j)+1) = wij; A(k,n+i) = -wij; b(k,1) = wij * B(i,j); k=k+1; end A(k,129) = 1; %% Fix the curve by setting its middle value to 0 for i=1:n-2 %% Include the smoothness equations A(k,i)=l*w(i+1); A(k,i+1)=-2*l*w(i+1); A(k,i+2)=l*w(i+1); x = A\b; %% Solve the system using SVD g = x(1:n); lE = x(n+1:size(x,1));

Results: Digital Camera Kodak DCS460 1/30 to 30 sec Recovered response curve Pixel value log Exposure 13

Reconstructed radiance map

Results: Color Film Kodak Gold ASA 100, PhotoCD 14

Recovered Response Curves Green Blue RGB 15

The Radiance Map 17

The Radiance Map Linearly scaled to display device 16

Now What? 17

Tone Mapping How can we do this? 10-6 High dynamic range 106 10-6 106 Linear scaling?, thresholding? Suggestions? 10-6 High dynamic range 106 Real World Ray Traced World (Radiance) 10-6 106 Display/ Printer 0 to 255

Simple Global Operator Compression curve needs to Bring everything within range Leave dark areas alone In other words Asymptote at 255 Derivative of 1 at 0

Global Operator (Reinhart et al)

Global Operator Results

Reinhart Operator Darkest 0.1% scaled to display device

What do we see? Vs.

What does the eye sees? The eye has a huge dynamic range Do we see a true radiance map?

Metamores Can we use this for range compression?

Compressing Dynamic Range This reminds you of anything?