480 likes | 828 Views
Tone Mapping. Presented by Lok Hwa. Overview. Tone mapping/reproduction : mapping the potentially high dynamic range (HDR) of real world luminance to the low dynamic range of devices with limited range of luminance
E N D
Tone Mapping Presented by Lok Hwa Realistic Image Synthesis
Overview • Tone mapping/reproduction:mapping the potentially high dynamic range (HDR) of real world luminance to the low dynamic range of devices with limited range of luminance • The "dynamic range" of a scene is the contrast ratio between its brightest and darkest parts. • 100:1 vs. 100,000,000:1 cd/m2 Realistic Image Synthesis
Overview • Typical input is global illumination image or HDR camera input • Goal is to compress the dynamic range of the input imageand reproduce a realistic rendering based on human perception Realistic Image Synthesis
Two main approaches: Global: single-scale; spatially uniform; computes final image using one function for all pixels Local: multi-scale; spatially varying; compute final image using different functions for every pixel. • global is usually faster but local is usually better in quality • static vs. dynamic dynamic: time-dependent; accounts for observers adaptation to background luminance (light and dark adaptation) Realistic Image Synthesis
Overview • Problems: -many require human adjustment -visual artifacts (ringing or visible clamping) -not robust -lack of validation -more complex than simply matching brightness/contrast (e.g. visual acuity) Realistic Image Synthesis
Why? Why? Why? Realistic Image Synthesis
Overview – simple methods Realistic Image Synthesis
Many Operators Realistic Image Synthesis
Spatially Uniform Operators Tumblin and Rushmeier 1991, 1993 • Focused on preserving overall brightness • Based on Stevens and Stevens power-law in Journal of the Optical Society of America. • Subjective brightness, B • k = constant • L0 = minimum luminance visible • alpha = [.333, 0.49] • Not valid for complex scenes; chosen for computational simplicity Realistic Image Synthesis
Spatially Uniform Operators =Luminance of real-world scene target =Luminance of real-world surrounding light and functions of adaptation level Realistic Image Synthesis
Spatially Uniform Operators Similarly for the display: Matching screen and real-world brightness: For gamma value from 2.2 to 2.5: Realistic Image Synthesis
Spatially Uniform Operators Computing the frame buffer value to produce the desired luminance [0,1]: Full operator: Realistic Image Synthesis
Spatially Uniform Operators • Cons: • Limited to grayscale • Preserves brightness, but loses detail in HDR scenes • Can handle extreme brightness, but image tend to be darker Realistic Image Synthesis
Tumblin-Rushmeier / Ward Realistic Image Synthesis
Spatially Uniform Operators • Greg Ward 1994 "A contrast-based scalefactor for Luminance Display" • Concentrated on preserving contrast • Linear function (scalefactor) instead w/ potential advantage: Darker scene creates a darker display which may be more natural than a display with a similar mean, but reduced contrast • Based on 70's Blackwell data. Flashed a dot on the screen with a background to test visual response. Minimum visible luminance difference at the display adaptation level: La = adaptation luminance Realistic Image Synthesis
Spatially Uniform Operators Ld = display luminance at an image point Lw = world luminance “ Minimum discernible luminance change at La(d) La(d) = display adaptation luminance La(w)= world adaptation luminance Differences just visible in the world will be just visible on the display. Realistic Image Synthesis
Spatially Uniform Operators Getting from world luminance to display input: Realistic Image Synthesis
Spatially Uniform Operators • World adaptation level can be determined by log average of image excluding light sources not in direct line of sight (global) or use a local area of an image. • In dark scene, the final image is darker. • More simpler viewer model. Cons -detail is still lost in areas which values must be clamped Realistic Image Synthesis
Automatic Exposure Determined by taking average luminance and computing a scalefactor that maps it to half the maximum luminance. Realistic Image Synthesis
Tumblin-Rushmeier / Ward Realistic Image Synthesis
Ward’s contrast-based scalefactor Realistic Image Synthesis
Spatially Varying Operators • Reinhard et al. 2002 "Photographic Tone Reproduction for Digital Images • Photographers have faced this same problem for many years • Technique is based on famous photographer Ansel Adams studies on tone reproduction • using the Zone System (his invention); still widely used and practical Realistic Image Synthesis
Spatially Varying Operators Definitions: • Zone: 11 print zones related logarithmically to scene luminance. • Dynamic Range for Photographers: We can use the zones to calc the difference between highest and lowest scene zones (photographic dynamic range) • Key: Subjective measure of light (high key) or dark (low key). • Dodging and Burning: Print technique where more light is exposed to a region to dodge or withhold light from that area or burn (darken). Realistic Image Synthesis
Spatially Varying Operators • The Zone System starts by a photographer taking a luminance reading of a surface they think is middle-grey (subjective middle brightness in scene, typically zone 5). • Middle grey is also usually mapped to 18% reflectance of the print. • They take luminance readings of the light and dark regions to obtain a dynamic range. • A range within 9 zones ensures all detail can be captured. Otherwise certain areas we be clamped to pure white or black. These areas can be dodged or burned to change the local detail of a region. Realistic Image Synthesis
Spatially Varying Operators Algorithm: • Use the log-average luminance to find the "key" of a scene • Automatic dodging a burning (as in photography): all portions of the print receive difference exposure time Realistic Image Synthesis
Spatially Varying Operators • Log Average: • Scale Luminances to a key: a is called the “key value” Realistic Image Synthesis
Spatially Varying Operators Realistic Image Synthesis
Spatially Varying Operators • Compress the high luminances: • Burning high luminances in a controlled fashion: Realistic Image Synthesis
Spatially Varying Operators Realistic Image Synthesis
Spatially Varying Operators Dodging and Burning • Typically applied to regions bounded by large contrasts • The size of a local region is estimated using a measure of local contrast; computed at multiple spatial scales • At each spatial scale, a center-surround function is implemented by subtracting two Gaussian blurred images. • Gaussian profiles are of the form: Realistic Image Synthesis
Spatially Varying Operators • Response function of image location, scale, and luminance distribution L: • Center-surround function: • a = key value, phi is the sharpening parameter • Provides a local average of the luminance around (x,y) roughlyin a disc of radius s. • V2 operates on a slightly larger area but same scale Realistic Image Synthesis
Spatially Varying Operators Realistic Image Synthesis
Spatially Varying Operators • To choose the largest neighborhood around a pixel with fairly even luminances: (start from the lowest scale and stop when this is satisfied) • The global operator is converted to a local operator by replacing L with V1 Realistic Image Synthesis
Spatially Varying Operators Realistic Image Synthesis
Comparisons on 12 zone scene Realistic Image Synthesis
Nutrition Facts Realistic Image Synthesis
Conclusion • In general there is a need for validation of tone operators. Mostly subjective. • Availability of HDR monitors display a must wider range of luminosity in which most scenes can be viewed accurately. This makes direct comparison available between two monitors and better validation. Realistic Image Synthesis
Resources • Devlin, Chalmers, Wilkie, Purgathofer. “Tone Reproduction and Physically Based Spectral Rendering” • Reinhard, Stark, Shirley, Ferwerda. “Photographic Tone Reproduction for Digital Images” • Greg Ward. “A contrast-based scalefactor for luminance display” • Ward, Piatko. “A Visibility Matching Tone Reproduction Operator for High Dynamic Range Scenes” • http://graphics.cs.uni-sb.de/Courses/ss00/pbs/Tonemapping-Dateien/frame.htm • http://www.devebec.org • http://www.cgg.cvut.cz/~cadikm/tmo/ • http://aris-ist.intranet.gr/documents/Tone%20Mapping%20and%20High%20Dinamic%20Range%20Imaging.pdf Realistic Image Synthesis