Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance...
Transcript of Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance...
![Page 1: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/1.jpg)
Tone mapping
Digital Visual Effects
Yung-Yu Chuang
with slides by Fredo Durand, Lin-Yu Tseng, and Alexei Efros
![Page 2: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/2.jpg)
Tone mapping
• How should we map scene luminances (up to
1:100,000) to display luminances (only around
1:100) to produce a satisfactory image?
Linear scaling?, thresholding?
10-6 106
10-6 106
Real world
radiance
Display
intensity
dynamic range
Pixel value 0 to 255
CRT has 300:1 dynamic range
![Page 3: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/3.jpg)
The ultimate goal is a visual match
We do not need to reproduce the true radiance as long
as it gives us a visual match.
visual
adaption
![Page 4: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/4.jpg)
Eye is not a photometer!
• Dynamic range along the visual pathway is only
around 32:1.
• The key is adaptation
![Page 5: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/5.jpg)
Eye is not a photometer!
Are the headlights different in two images? Physically,
they are the same, but perceptually different.
![Page 6: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/6.jpg)
We are more sensitive to contrast
• Weber’s law
%1~b
b
I
I
background
intensity
Just-noticeable
Difference (JND)
flash
![Page 7: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/7.jpg)
How humans deal with dynamic range
• We're more sensitive to contrast (multiplicative)– A ratio of 1:2 is perceived as the same contrast as a
ratio of 100 to 200
– Makes sense because illumination has a multiplicative effect
– Use the log domain as much as possible
• Dynamic adaptation (very local in retina)– Pupil (not so important)
– Neural
– Chemical
• Different sensitivity to spatial frequencies
![Page 8: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/8.jpg)
Preliminaries
• For color images
• Log domain is usually preferred.
w
wd
w
wd
w
wd
d
d
d
L
BL
L
GL
L
RL
B
G
R
![Page 9: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/9.jpg)
HDR Display
• Once we have HDR images (either captured or
synthesized), how can we display them on
normal displays?
HDR display system, Sunnybrook Technology, SIGGRAPH2004
DLP
800:1
LCD
300:1diffuser Theoretically,
240,000:1.
Due to imperfect
optical depth,
54,000:1 measured
![Page 10: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/10.jpg)
Sunnybrook HDR display
Slide from the 2005 Siggraph course on HDR
![Page 11: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/11.jpg)
How it works
Slide from the 2005 Siggraph course on HDR
![Page 12: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/12.jpg)
Brightside HDR display
37”
200000:1
Acquired
by Dolby
![Page 13: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/13.jpg)
Tone mapping operators
• Spatial (global/local)
• Frequency domain
• Gradient domain
• 3 papers from SIGGRAPH 2002
Photographic Tone Reproduction for Digital Images
Fast Bilateral Filtering for the Display of High-
Dynamic-Range Images
Gradient Domain High Dynamic Range Compression
![Page 14: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/14.jpg)
Photographic Tone Reproduction
for Digital Images
Erik Reinhard Mike Stark
Peter Shirley Jim Ferwerda
SIGGRAPH 2002
![Page 15: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/15.jpg)
Global v.s. local
![Page 16: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/16.jpg)
Photographic tone reproduction
• Proposed by Reinhard et. al. in SIGGRAPH 2002
• Motivated by traditional practice, zone system
by Ansel Adams and dodging and burning
• It contains both global and local operators
![Page 17: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/17.jpg)
Zone system
![Page 18: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/18.jpg)
The Zone system
• Formalism to talk about exposure, density
• Zone = intensity range, in powers of two
• In the scene, on the negative, on the print
Source: Ansel Adams
![Page 19: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/19.jpg)
The Zones
![Page 20: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/20.jpg)
The Zone system
• You decide to put part of the system in a given
zone
• Decision: exposure, development, print
![Page 21: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/21.jpg)
Dodging and burning
• During the print
• Hide part of the print during exposure
– Makes it brighter
From The Master Printing Course, Rudman
![Page 22: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/22.jpg)
Dodging and burning
From Photography by London et al.
dodging burning
![Page 23: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/23.jpg)
Dodging and burning
• Must be done for every single print!
Straight print After dodging and burning
![Page 24: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/24.jpg)
Global operator
yx
ww yxLN
L,
)),(log(1
exp
),(),( yxLL
ayxL w
w
m
Approximation of scene’s
key (how light or dark it is).
Map to 18% of display range
for average-key scene
User-specified; high key or low key
),(1
),(),(
yxL
yxLyxL
m
md
transfer function to compress
high luminances
![Page 25: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/25.jpg)
Global operator
),(1
),(
),(1),(
),(
2
yxL
yxL
yxLyxL
yxLm
white
mm
d
It seldom reaches 1 since the input image does
not have infinitely large luminance values.
Lwhite is the smallest luminance
to be mapped to 1
![Page 26: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/26.jpg)
low key (0.18) high key (0.5)
![Page 27: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/27.jpg)
Dodging and burning (local operators)
• Area receiving a different exposure is often
bounded by sharp contrast
• Find largest surrounding area without any sharp
contrast
),(),(),( yxGyxLyxL sm
blur
s
blur
s
blur
s
blur
ss
Lsa
yxLyxLyxV
2
1
2
),(),(),(
y)(x,:maxmax sVs
![Page 28: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/28.jpg)
Dodging and burning (local operators)
• A darker pixel (smaller than the blurred
average of its surrounding area) is divided by a
larger number and become darker (dodging)
• A brighter pixel (larger than the blurred
average of its surrounding area) is divided by a
smaller number and become brighter (burning)
• Both increase the contrast
),(1
),(),(
maxyxL
yxLyxL
blur
s
md
![Page 29: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/29.jpg)
Dodging and burning
![Page 30: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/30.jpg)
Frequency domain
• First proposed by Oppenheim in 1968!
• Under simplified assumptions,
image = illuminance * reflectancelow-frequency
attenuate morehigh-frequency
attenuate less
![Page 31: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/31.jpg)
Oppenheim
• Taking the logarithm to form density image
• Perform FFT on the density image
• Apply frequency-dependent attenuation filter
• Perform inverse FFT
• Take exponential to form the final image
kf
kfccfs
1)1()(
![Page 32: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/32.jpg)
Fast Bilateral Filtering for the
Display of High-Dynamic-Range
Images
Frédo Durand & Julie Dorsey
SIGGRAPH 2002
![Page 33: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/33.jpg)
A typical photo
• Sun is overexposed
• Foreground is underexposed
![Page 34: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/34.jpg)
Gamma compression
• X > Xg
• Colors are washed-out
Input Gamma
![Page 35: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/35.jpg)
Gamma compression on intensity
• Colors are OK, but details (intensity high-
frequency) are blurred
Gamma on intensityIntensity
Color
![Page 36: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/36.jpg)
Chiu et al. 1993
• Reduce contrast of low-frequencies
• Keep high frequencies
Reduce low frequencyLow-freq.
High-freq.
Color
![Page 37: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/37.jpg)
The halo nightmare
• For strong edges
• Because they contain high frequency
Reduce low frequencyLow-freq.
High-freq.
Color
![Page 38: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/38.jpg)
Durand and Dorsey
• Do not blur across edges
• Non-linear filtering
OutputLarge-scale
Detail
Color
![Page 39: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/39.jpg)
Edge-preserving filtering
• Blur, but not across edges
• Anisotropic diffusion [Perona & Malik 90]– Blurring as heat flow
– LCIS [Tumblin & Turk]
• Bilateral filtering [Tomasi & Manduci, 98]
Edge-preservingGaussian blurInput
![Page 40: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/40.jpg)
![Page 41: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/41.jpg)
![Page 42: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/42.jpg)
![Page 43: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/43.jpg)
![Page 44: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/44.jpg)
![Page 45: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/45.jpg)
![Page 46: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/46.jpg)
![Page 47: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/47.jpg)
![Page 48: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/48.jpg)
![Page 49: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/49.jpg)
![Page 50: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/50.jpg)
Contrast reduction
Input HDR image
Contrast
too high!
![Page 51: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/51.jpg)
Contrast reduction
Color
Input HDR image
Intensity
![Page 52: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/52.jpg)
Contrast reduction
Color
Intensity Large scale
Fast
Bilateral
Filter
Input HDR image
![Page 53: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/53.jpg)
Contrast reduction
Detail
Color
Intensity Large scale
Fast
Bilateral
Filter
Input HDR image
![Page 54: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/54.jpg)
Contrast reduction
Detail
Color
Intensity Large scale
Fast
Bilateral
Filter
Reduce
contrast
Large scale
Input HDR image
Scale in log domain
![Page 55: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/55.jpg)
Contrast reduction
Detail
Color
Intensity Large scale
Fast
Bilateral
Filter
Reduce
contrast
Detail
Large scale
Preserve!
Input HDR image
![Page 56: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/56.jpg)
Contrast reduction
Detail
Color
Intensity Large scale
Fast
Bilateral
Filter
Reduce
contrast
Detail
Large scale
Color
Preserve!
Input HDR image Output
![Page 57: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/57.jpg)
Bilateral filter is slow!
• Compared to Gaussian filtering, it is much
slower because the kernel is not fixed.
• Durand and Dorsey proposed an approximate
approach to speed up
• Paris and Durand proposed an even-faster
approach in ECCV 2006. We will cover this one
when talking about computational photogrphy.
![Page 58: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/58.jpg)
Oppenheim bilateral
![Page 59: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/59.jpg)
Gradient Domain High Dynamic
Range Compression
Raanan Fattal Dani Lischinski Michael Werman
SIGGRAPH 2002
![Page 60: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/60.jpg)
Log domain
• Logorithm is a crude approximation to the
perceived brightness
• Gradients in log domain correspond to ratios
(local contrast) in the luminance domain
![Page 61: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/61.jpg)
The method in 1D
log derivative
attenuate
integrateexp
![Page 62: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/62.jpg)
The method in 2D
• Given: a log-luminance image H(x,y)
• Compute an attenuation map
• Compute an attenuated gradient field G:
• Problem: G may not be integrable!
H
HyxHyxG ),(),(
![Page 63: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/63.jpg)
Solution
• Look for image I with gradient closest to G in
the least squares sense.
• I minimizes the integral:
22
2,
yx G
y
IG
x
IGIGIF
dxdyGIF ,
y
G
x
G
y
I
x
I yx
2
2
2
2Poisson
equation
![Page 64: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/64.jpg)
Solvey
G
x
G
y
I
x
I yx
2
2
2
2
)1,(),(),1(),( yxGyxGyxGyxG yyxx
),(4)1,()1,(),1(),1( yxIyxIyxIyxIyxI
.. 1 … 1 -4 1 … 1 ..I
![Page 65: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/65.jpg)
Solving Poisson equation
• No analytical solution
• Multigrid method
• Conjugate gradient method
![Page 66: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/66.jpg)
Attenuation
• Any dramatic change in luminance results in a
large luminance gradient at some scale
• Edges exist in multiple scales. Thus, we have to
detect and attenuate them at multiple scales
• Construct a Gaussian pyramid Hi
![Page 67: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/67.jpg)
Attenuation
gradient magnitudelog(Luminance) attenuation map
1
),(),(
yxHyx
k
kH 1.0
8.0~
![Page 68: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/68.jpg)
Multiscale gradient attenuation
interpolate
interpolate
X =
X =
![Page 69: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/69.jpg)
Final gradient attenuation map
![Page 70: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/70.jpg)
Performance
• Measured on 1.8 GHz Pentium 4:
– 512 x 384: 1.1 sec
– 1024 x 768: 4.5 sec
• Can be accelerated using processor-optimized
libraries.
0
4
8
12
16
0 1000000 2000000 3000000
![Page 71: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/71.jpg)
Bilateral
[Durand et al.]
Photographic
[Reinhard et al.]Gradient domain
[Fattal et al.]
Informal comparison
![Page 72: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/72.jpg)
Informal comparison
Bilateral
[Durand et al.]
Photographic
[Reinhard et al.]Gradient domain
[Fattal et al.]
![Page 73: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/73.jpg)
Bilateral
[Durand et al.]
Photographic
[Reinhard et al.]Gradient domain
[Fattal et al.]
Informal comparison
![Page 74: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/74.jpg)
Evaluation of Tone Mapping
Operators using a High Dynamic
Range DisplayPatrick Ledda Alan Chalmers
Tom Troscinko Helge Seetzen
SIGGRAPH 2005
![Page 75: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/75.jpg)
Six operators
• H: histogram adjustment
• B: bilateral filter
• P: photographic reproduction
• I: iCAM
• L: logarithm mapping
• A: local eye adaption
![Page 76: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/76.jpg)
23 scenes
![Page 77: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/77.jpg)
Experiment setting
HDR displaytonemapping
resulttonemapping
result
![Page 78: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/78.jpg)
Preference matrix
• Ranking is easier than rating.
• 15 pairs for each person to compare. A total of
345 pairs per subject.
preference matrix (tmo2->tmo4, tom2 is better than tmo4)
![Page 79: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/79.jpg)
Statistical measurements
• Statistical measurements are used to evaluate:
– Agreement: whether most agree on the ranking
between two tone mapping operators.
– Consistency: no cycle in ranking. If all are confused
in ranking some pairs, it means they are hard to
compare. If someone is inconsistent alone, his
ranking could be droped.
![Page 80: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/80.jpg)
Overall similarity
• Scene 8
![Page 81: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/81.jpg)
Summary
![Page 82: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/82.jpg)
Not settled yet!
• Some other experiment said bilateral are better
than others.
• For your reference, photographic reproduction
performs well in both reports.
• There are parameters to tune and the space
could be huge.
![Page 83: Tone mapping - 國立臺灣大學cyy/courses/vfx/19... · 10-6 106 10-6 106 Real world radiance Display intensity dynamic range Pixel value 0 to 255 ... DLP 800:1 LCD 300:1 diffuser](https://reader034.fdocuments.in/reader034/viewer/2022042119/5e984fdba9504202a47ddc19/html5/thumbnails/83.jpg)
References
• Raanan Fattal, Dani Lischinski, Michael Werman, Gradient Domain High Dynamic Range Compression, SIGGRAPH 2002.
• Fredo Durand, Julie Dorsey, Fast Bilateral Filtering for the Display of High Dynamic Range Images, SIGGRAPH 2002.
• Erik Reinhard, Michael Stark, Peter Shirley, Jim Ferwerda, Photographics Tone Reproduction for Digital Images, SIGGRAPH 2002.
• Patrick Ledda, Alan Chalmers, Tom Troscianko, Helge Seetzen, Evaluation of Tone Mapping Operators using a High Dynamic Range Display, SIGGRAPH 2005.
• Jiangtao Kuang, Hiroshi Yamaguchi, Changmeng Liu, Garrett Johnson, Mark Fairchild, Evaluating HDR Rendering Algorithms, ACM Transactions on Applied Perception, 2007.