Recap of Previous Lecture

Similar documents
High Dynamic Range Images

High Dynamic Range Images

Image-based Lighting (Part 2)

High dynamic range imaging

CSCI 1290: Comp Photo

Last Lecture. Bayer pattern. Focal Length F-stop Depth of Field Color Capture. Prism. Your eye. Mirror. (flipped for exposure) Film/sensor.

Greg Ward / SIGGRAPH 2003

High Dynamic Range Imaging.

Computer Vision 2. SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung. Computer Vision 2 Dr. Benjamin Guthier

Capturing light. Source: A. Efros

Image-based Lighting

Recovering High Dynamic Range Radiance Maps in Matlab

High Dynamic Range Lighting Paul Debevec, USC Institute for Creative Technologies. March 24, Game Developer s Conference 1

The 7d plenoptic function, indexing all light.

Reflection Mapping

Computational Photography

Image-Based Lighting

Light. Properties of light. What is light? Today What is light? How do we measure it? How does light propagate? How does light interact with matter?

Multiple View Geometry

Image-Based Lighting. Inserting Synthetic Objects

Ray Tracing Assignment. Ray Tracing Assignment. Ray Tracing Assignment. Tone Reproduction. Checkpoint 7. So You Want to Write a Ray Tracer

Image-Based Lighting. Eirik Holmøyvik. with a lot of slides donated by Paul Debevec

Image-Based Lighting : Computational Photography Alexei Efros, CMU, Fall Eirik Holmøyvik. with a lot of slides donated by Paul Debevec

Other approaches to obtaining 3D structure

A New Image Based Ligthing Method: Practical Shadow-Based Light Reconstruction

CS 563 Advanced Topics in Computer Graphics Film and Image Pipeline (Ch. 8) Physically Based Rendering by Travis Grant.

High Dynamic Range Image Texture Mapping based on VRML

Image Based Lighting with Near Light Sources

Image Based Lighting with Near Light Sources

Radiance. Pixels measure radiance. This pixel Measures radiance along this ray

Lecture 4 Image Enhancement in Spatial Domain

Introduction to Computer Vision. Week 8, Fall 2010 Instructor: Prof. Ko Nishino

CS6670: Computer Vision

Stochastic Path Tracing and Image-based lighting

The Focused Plenoptic Camera. Lightfield photographers, focus your cameras! Karl Marx

Rendering Synthetic Objects into Real Scenes. based on [Debevec98]

IMAGE DE-NOISING IN WAVELET DOMAIN

Image-Based Modeling and Rendering. Image-Based Modeling and Rendering. Final projects IBMR. What we have learnt so far. What IBMR is about

Cell-Sensitive Microscopy Imaging for Cell Image Segmentation

References Photography, B. London and J. Upton Optics in Photography, R. Kingslake The Camera, The Negative, The Print, A. Adams

Matting, Transparency, and Illumination. Slides from Alexei Efros

CS354 Computer Graphics Ray Tracing. Qixing Huang Januray 24th 2017

Modeling Light. Michal Havlik : Computational Photography Alexei Efros, CMU, Fall 2007

Capture and Displays CS 211A

Computer Graphics (CS 543) Lecture 10: Normal Maps, Parametrization, Tone Mapping

Measuring Light: Radiometry and Cameras

Perceptual Effects in Real-time Tone Mapping

Modeling Light. Slides from Alexei A. Efros and others

Lenses & Exposure. Lenses. Exposure. Lens Options Depth of Field Lens Speed Telephotos Wide Angles. Light Control Aperture Shutter ISO Reciprocity

Geometric camera models and calibration

To Do. Real-Time High Quality Rendering. Motivation for Lecture. Monte Carlo Path Tracing. Monte Carlo Path Tracing. Monte Carlo Path Tracing

Lecture 18: Primer on Ray Tracing Techniques

o Basic signal processing o Filtering, resampling, warping,... Rendering o Polygon rendering pipeline o Ray tracing Modeling

Interactive Vizualisation of Complex Real-World Light Sources

Motivation. Advanced Computer Graphics (Fall 2009) CS 283, Lecture 11: Monte Carlo Integration Ravi Ramamoorthi

Chapter 2 - Fundamentals. Comunicação Visual Interactiva

Basic Algorithms for Digital Image Analysis: a course

Explain The Basic Parts And Operation Of A Film Camera Or Digital Camera

Outline of Lecture. Real-Time High Quality Rendering. Geometry or Vertex Pipeline. Basic Hardware Pipeline. Pixel or Fragment Pipeline

Introduction to Shutter Speed in Digital Photography. Read more:

(Geometric) Camera Calibration

INFOGR Computer Graphics. J. Bikker - April-July Lecture 10: Shading Models. Welcome!

TCM-5311 Configuration Advice for Indoor and

CSCI 1290: Comp Photo

GAMES Webinar: Rendering Tutorial 2. Monte Carlo Methods. Shuang Zhao

Epipolar geometry contd.

Consider a partially transparent object that is illuminated with two lights, one visible from each side of the object. Start with a ray from the eye

Radiometry and reflectance

IMAGE BASED RENDERING: Using High Dynamic Range Photographs to Light Architectural Scenes

Luxo Jr. (Pixar, 1986) Last Time. Real Cameras and Ray Tracing. Standard Rasterization. Lights, Cameras, Surfaces. Now Playing:

Daytime Long Exposures

(and what the numbers mean)

The 2 nd part of the photographic triangle

Choosing the right course

EF432. Introduction to spagetti and meatballs

Recap from Previous Lecture

CS6670: Computer Vision

Single-view 3D Reconstruction

Product Evaluation Guide. for CMOS Megapixel IP Cameras. Version 1.0

Architecture and Engineering Specifications SANYO VCC-HD Megapixel Full-HD Day/Night CS Box Camera

3D graphics, raster and colors CS312 Fall 2010

Control & Interface Electronics. CCD Sensor

Radiometric Self Calibration

Radiometric Calibration from a Single Image

Architecture and Engineering Specifications SANYO VCC-HD2500P 4 Megapixel Full-HD Advanced Day/Night CS Box Camera

Recap from Monday. Frequency domain analytical tool computational shortcut compression tool

L2 Data Acquisition. Mechanical measurement (CMM) Structured light Range images Shape from shading Other methods

Robot Vision: Camera calibration

COMP371 COMPUTER GRAPHICS

Shadow and Environment Maps

Hue Candela s PinPLUS 64 mm Camera

0. Introduction: What is Computer Graphics? 1. Basics of scan conversion (line drawing) 2. Representing 2D curves

Computer Graphics (CS 563) Lecture 4: Advanced Computer Graphics Image Based Effects: Part 2. Prof Emmanuel Agu

Specifications CAMEDIA C-8080 WIDE ZOOM

Chapter 3-Camera Work

Professional. Technical Guide N-Log Recording

CS4670: Computer Vision

Digital Image Processing COSC 6380/4393

Photometric Stereo.

SVD-4120A SSNR Low Light, WDR, Day & Night Vandal-Proof Color Dome Camera

Transcription:

Recap of Previous Lecture Matting foreground from background Using a single known background (and a constrained foreground) Using two known backgrounds Using lots of backgrounds to capture reflection and refraction Separating direct illumination and global illumination using structured lighting

Next lectures on HDR (1) Recovering high dynamic range images (2) Rendering high dynamic range back to displayable low dynamic range (tone mapping)

High Dynamic Range Images slides from Alexei A. Efros and Paul Debevec cs129: Computational Photography James Hays, Brown, Fall 2012

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

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

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

Image pixel (312, 284) = 42 42 photons?

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

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

The Image Acquisition Pipeline Lens Shutter scene radiance 2 (W/sr/m ) CCD sensor irradiance 2 (W/m ) t ADC sensor exposure Remapping analog voltages digital values Raw Image pixel values JPEG Image

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

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

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

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 3 1 2 t = 1/64 sec 3 1 2 t = 1/16 sec 3 1 2 t = 1/4 sec 3 1 2 t = 1 sec Pixel Value Z = f(exposure) Exposure = Radiance t log Exposure = log Radiance log t 3 1 2 t = 4 sec

Pixel value The Algorithm 1 2 3 t = 1/64 sec Image series 1 2 3 t = 1/16 sec 1 2 3 t = 1/4 sec Pixel Value Z = f(exposure) Exposure = Radiance t log Exposure = log Radiance 1 2 3 t = 1 sec log t 1 2 3 t = 4 sec Assuming unit radiance for each pixel 3 2 1 ln Exposure

Pixel value Pixel value Response Curve Assuming unit radiance for each pixel After adjusting radiances to obtain a smooth response curve 3 2 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: ln Radiance i ln t j g(z ij ) Solve the overdetermined linear system: N P ln Radiance i ln t j g(z ij ) 2 Z max g (z) 2 i 1 j 1 z Z min 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 end A(k,129) = 1; %% Fix the curve by setting its middle value to 0 k=k+1; 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); k=k+1; end x = A\b; %% Solve the system using SVD g = x(1:n); le = x(n+1:size(x,1));

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

Reconstructed radiance map

Results: Color Film Kodak Gold ASA 100, PhotoCD

Recovered Response Curves Red Green Blue RGB

The Radiance Map

How do we store this?

Portable FloatMap (.pfm) 12 bytes per pixel, 4 for each channel sign exponent mantissa Text header similar to Jeff Poskanzer s.ppm image format: Floating Point TIFF similar PF 768 512 1 <binary image data>

Radiance Format (.pic,.hdr) 32 bits / pixel Red Green Blue Exponent (145, 215, 87, 149) = (145, 215, 87) * 2^(149-128) = (1190000, 1760000, 713000) (145, 215, 87, 103) = (145, 215, 87) * 2^(103-128) = (0.00000432, 0.00000641, 0.00000259) Ward, Greg. "Real Pixels," in Graphics Gems IV, edited by James Arvo, Academic Press, 1994

ILM s OpenEXR (.exr) 6 bytes per pixel, 2 for each channel, compressed sign exponent mantissa 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 http://www.openexr.net/

Now What?

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

The Radiance Map Linearly scaled to display device

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) L display 1 L world L world

Global Operator Results

Reinhart Operator Darkest 0.1% scaled to display device

What do we see? Vs.

Issues with multi-exposure HDR Scene and camera need to be static Camera sensors are getting better and better Display devices are fairly limited anyway (although getting better).

What about local tone mapping? What about avoiding radiance map reconstruction entirely?