Computational Photography Prof. Feng Liu Spring 2015 04/15/2015.

Slides:



Advertisements
Similar presentations
Multispectral Format from Perspective of Remote Sensing
Advertisements

SOFT SCISSORS: AN INTERACTIVE TOOL FOR REALTIME HIGH QUALITY MATTING International Conference on Computer Graphics and Interactive Techniques ACM SIGGRAPH.
Digital Image Processing
Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
Visualization and graphics research group CIPIC May 25, 2004Realistic Image Synthesis1 Tone Mapping Presented by Lok Hwa.
High Dynamic Range Imaging Samu Kemppainen VBM02S.
Color Seamlessness in Multi-Projector Displays Using Constrained Gamut Morphing IEEE Visualization, 2009 Behzad Sajadi Maxim Lazarov Aditi Majumder M.
Color & Light, Digitalization, Storage. Vision Rods work at low light levels and do not see color –That is, their response depends only on how many photons,
 Image Characteristics  Image Digitization Spatial domain Intensity domain 1.
Topic 4 - Image Mapping - I DIGITAL IMAGING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Image (and Video) Coding and Processing Lecture 5: Point Operations Wade Trappe.
Image Processing IB Paper 8 – Part A Ognjen Arandjelović Ognjen Arandjelović
Chapter 4: Image Enhancement
E.G.M. PetrakisFiltering1 Linear Systems Many image processing (filtering) operations are modeled as a linear system Linear System δ(x,y) h(x,y)
Color spaces CIE - RGB space. HSV - space. CIE - XYZ space.
Computer graphics & visualization HDRI. computer graphics & visualization Image Synthesis – WS 07/08 Dr. Jens Krüger – Computer Graphics and Visualization.
Color2Gray: Salience-Preserving Color Removal
Computational Photography Prof. Feng Liu Spring /30/2015.
Computational Photography Prof. Feng Liu Spring /13/2015.
EEE 498/591- Real-Time DSP1 What is image processing? x(t 1,t 2 ) : ANALOG SIGNAL x : real value (t 1,t 2 ) : pair of real continuous space (time) variables.
CS443: Digital Imaging and Multimedia Point Operations on Digital Images Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University Spring.
Lecture 30: Light, color, and reflectance CS4670: Computer Vision Noah Snavely.
Apparent Greyscale: A Simple and Fast Conversion to Perceptually Accurate Images and Video Kaleigh SmithPierre-Edouard Landes Joelle Thollot Karol Myszkowski.
Image Enhancement.
1 Photographic Tone Reproduction for Digital Images Brandon Lloyd COMP238 October 2002.
Display Issues Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Gradient Domain High Dynamic Range Compression
CS448f: Image Processing For Photography and Vision Denoising.
1/22/04© University of Wisconsin, CS559 Spring 2004 Last Time Course introduction Image basics.
9/14/04© University of Wisconsin, CS559 Spring 2004 Last Time Intensity perception – the importance of ratios Dynamic Range – what it means and some of.
CS559-Computer Graphics Copyright Stephen Chenney Image File Formats How big is the image? –All files in some way store width and height How is the image.
09/05/02© University of Wisconsin, CS559 Spring 2002 Last Time Course introduction Assignment 1 (not graded, but necessary) –View is part of Project 1.
CS559-Computer Graphics Copyright Stephen Chenney 2001 The Human Eye Graphics is concerned with the visual transmission of information How do we see? –Light.
Image-Based Rendering from a Single Image Kim Sang Hoon Samuel Boivin – Andre Gagalowicz INRIA.
Manipulating contrast/point operations. Examples of point operations: Threshold (demo) Threshold (demo) Invert (demo) Invert (demo) Out[x,y] = max – In[x,y]
03/2/05© 2005 University of Wisconsin Last Time Sub-surface and Atmospheric Scattering.
Point Processing (Szeliski 3.1) cs129: Computational Photography James Hays, Brown, Fall 2012 Some figures from Alexei Efros, Steve Seitz, and Gonzalez.
Point Operations – Chapter 5. Definition Some of the things we do to an image involve performing the same operation on each and every pixel (point) –We.
INFORMATIK Design of a Tone Mapping Operator for High Dynamic Range Images based upon Psychophysical Evaluation and Preference Mapping Design of a Tone.
Digital Image Processing Lecture 4: Image Enhancement: Point Processing Prof. Charlene Tsai.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Film Digital Image Synthesis Yung-Yu Chuang 11/5/2008 with slides by Pat Hanrahan and Matt Pharr.
1 Chapter 2: Color Basics. 2 What is light?  EM wave, radiation  Visible light has a spectrum wavelength from 400 – 780 nm.  Light can be composed.
03/05/03© 2003 University of Wisconsin Last Time Tone Reproduction If you don’t use perceptual info, some people call it contrast reduction.
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - IMAGES. Processing digital Images digital images are often processed using “digital filters” digital images are.
Image-based Lighting Design Frederik Anrys Philip Dutré Computer Graphics Group 8 Sept
CS654: Digital Image Analysis Lecture 18: Image Enhancement in Spatial Domain (Histogram)
Image Filtering Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/02/10.
G52IIP, School of Computer Science, University of Nottingham 1 G52IIP Summary Topic 1 Overview of the course Related topics Image processing Computer.
09/17/02 (C) 2002, University of Wisconsin, CS 559 Last Time Color Spaces File formats.
Histograms and Color Balancing Computational Photography Derek Hoiem, University of Illinois 09/10/15 “Empire of Light”, Magritte.
Three-Receptor Model Designing a system that can individually display thousands of colors is very difficult Instead, colors can be reproduced by mixing.
Lecture 34: Light, color, and reflectance CS4670 / 5670: Computer Vision Noah Snavely.
Histograms and Color Balancing Computational Photography Derek Hoiem, University of Illinois 09/13/11 “Empire of Light”, Magritte.
David Luebke 1 2/5/2016 Color CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
03/04/05© 2005 University of Wisconsin Last Time Tone Reproduction –Histogram method –LCIS and improved filter-based methods.
03/03/03© 2003 University of Wisconsin Last Time Subsurface scattering models Sky models.
Tone mapping Digital Visual Effects, Spring 2007 Yung-Yu Chuang 2007/3/13 with slides by Fredo Durand, and Alexei Efros.
David Luebke2/23/2016 CS 551 / 645: Introductory Computer Graphics Color Continued Clipping in 3D.
Digital Image Processing Lecture 4: Image Enhancement: Point Processing January 13, 2004 Prof. Charlene Tsai.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
Shadow Detection in Remotely Sensed Images Based on Self-Adaptive Feature Selection Jiahang Liu, Tao Fang, and Deren Li IEEE TRANSACTIONS ON GEOSCIENCE.
Color transfer between high-dynamic-range images
CPSC 6040 Computer Graphics Images
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Computational Photography
Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2006/3/8
Digital Image Processing
Histograms and Color Balancing
Presentation transcript:

Computational Photography Prof. Feng Liu Spring /15/2015

Last Time  Color  Color to Gray 2

Today  Re-lighting Tone mapping 3

Slides Credit: S. Chenney Dynamic Range  Real scenes contain both very bright and very dark regions  Dynamic range is the ratio of the brightest to darkest points in the scene  Standard measurement is candelas per m 2  For example, in the interior of the church the dynamic range is 100,000 to 1

Tone Reproduction  The human eye can globally adapt to about :1 Adjusts for the average brightness we perceive in one scene Global adaptation lets us see in very low light or very bright conditions  The human eye can locally adapt to about 10,000:1 In a single scene (global adaptation level), we can perceive contrast across this range  Most display devices have a very limited dynamic range On the order of 100:1 for a very good monitor or film  Tone reproduction is the problem of making the 10,000:1 scene look right on a 100:1 display device Slides Credit: S. Chenney

Different Goals  Option 1: Reveal as much detail as possible in the image given the limited dynamic range For conveying information, but not necessarily realism  Option 2: Reveal what would be available if the viewer would really be there Perceptual limits place limits on what we can see under a given set of viewing conditions Slides Credit: S. Chenney

Color and Luminance  The CIE XYZ color space is intended to encode luminance in the Y channel  To get from RGB to XYZ, apply the following linear transform: Taken from Sillion and Puech, other sources differ Slides Credit: S. Chenney

CIE (Y,x,y)  The XYZ space includes brightness info with color info X and Z get bigger as the color gets brighter  To avoid this, use (Y,x,y) x=X/(X+Y+Z) y=Y/(X+Y+Z)  (x,y) are chromaticity values Slides Credit: S. Chenney

L*a*b* Color Space  L* : luminance  a* and b*: color 9

Automatic Tone Reproduction  There are three main classes of solutions: Global operators find a mapping from image to display luminance that is the same for every pixel Local operators change the mapping from one pixel to the next Perceptually guided operators use elements of human perception to guide the tone reproduction process Slides Credit: S. Chenney

Linear Mappings  The simplest thing to do is to linearly map the highest intensity in the image to the highest display intensity, or the lowest to the lowest This gives very bad results, shown for mapping the maps lowest to lowest Slides Credit: S. Chenney

Non-Linear Mappings  Instead of linear, define some other mapping: L d =M(L w ) Display luminance is some function of the world luminance  It is important to retain relative brightness, but not absolute brightness If one point is brighter than another in the source, it should be brighter in the output The mapping M should be strictly increasing Slides Credit: S. Chenney

Histogram Methods  In any one scene, the dynamic range is not filled uniformly  The aim of histogram methods is to generate a mapping that “fills in the gaps” in the range Ward, Rushmeier, and Piatko, "A Visibility Matching Tone Reproduction Operator for High Dynamic Range Scenes," IEEE Trans. on Visualization and Computer Graphics, 1997A Visibility Matching Tone Reproduction Operator for High Dynamic Range Scenes Slides Credit: S. Chenney

Building Histograms  Work in brightness: B=log 10 (L) Humans are more sensitive to “brightness,” but the formula is a hack  The histogram is a count of how many pixels have each brightness Choose a set of bins Break the image into chunks that subtend about 1  of arc  Assumes you know the camera Average brightness in each chunk Count chunks that fall in each bin, f(b i ) Result is graph on previous image Slides Credit: S. Chenney

Cumulative Distribution  We can consider the histogram counts as the probability of seeing a pixel in each range  The cumulative distribution function is defined: Slides Credit: S. Chenney

Histogram Equalization  The aim is an output histogram in which all the bins are roughly equally filled  The naïve way to do this is to set:  Then, go through and convert brightness back into luminance for display Slides Credit: S. Chenney

Naïve Histogram Linear left. Histogram right. What went wrong? Slides Credit: S. Chenney

Avoiding Super-Sensitivity  We should make sure that we do not increase contrast beyond the linear mapping contrast:  This imposes a constraint on the frequency in each bin:  Reduce the count of bins that exceed the maximum Slides Credit: S. Chenney

Better Histogram Adjustment Old New Slides Credit: S. Chenney

Local Methods  Histogram methods do poorly if there is too much dynamic range in the input  Local methods exploit the local nature of contrast You don’t compare the brightness of two things across the room, only neighboring points Slides Credit: S. Chenney

Basic Idea  Filter to separate high and low frequencies Filter to get a high-pass and low-pass version of the image Recall, a smoothing filter keeps only low frequencies  Compress the low frequencies Reduce the contrast in the low pass portion Using diffusion filters, typically  Add back in the high frequencies Add the reduced low-pass to the high-pass to get a new image  LCIS is one algorithm Tumblin, J., Turk, G., "Low Curvature Image Simplifiers (LCIS): A Boundary Hierarchy for Detail-Preserving Contrast Reduction." In SIGGRAPH `99 Slides Credit: S. Chenney

Interactive Local Adjustment of Tonal Values 22 Interactive local adjustment of tonal values Interactive local adjustment of tonal values Lischinski, Dani and Farbman, Zeev and Uyttendaele, Matt and Szeliski, Richard ACM SIGGRAPH ‘06

Workflow 1.Load an image. 2.Indicate regions in the image that require adjusting. 3.Experiment with the available adjustment parameters until a satisfactory result is obtained in the desired regions. 4.Iterate steps 2 and 3 until satisfied with the entire resulting image. 23

An example 24 Reprint from Lischinski et al. 2006

Constraint Propagation  Input L: input image g(x): user constraint  Output: f(x): constraint function over the whole image  Data Term Changes in constrained pixels should respect user specifications  Smoothness Term Changes between neighboring pixels should be similar 25

The Final System  A quadratic minimization problem Equivalent to a linear system 26

Resources Solving Large Linear System  C/C++  Free Intel MKL  Commercial tool  One month trial available  Matlab code: A=rand(3,3); b=rand(3,1); x= A\b; 27

More Results 28 Reprint from Lischinski et al. 2006

Next Time  Re-lighting HDR 29