HDR Tone Mapping
HDR Tone Mapping
High-Dynamic-Range Images
(Tone mapping)
EE 5176: Computational Photography
High-dynamic-range (HDR) images
• CG Images
• HDR sensors
Contrast reduction
• Match limited contrast of the medium
• Preserve details
10-6 106
Picture
Low contrast
Overview
➢Global tone mapping
➢ Gamma correction
➢ Photographic tone mapping
Color
Chiu et al. 1993
• Reduce contrast of low-frequencies
• Keep high frequencies
Low-freq. Reduce low frequency
High-freq.
Color
The halo nightmare
• For strong edges
• Because they contain high frequency
Low-freq. Reduce low frequency
High-freq.
Color
Figure courtesy Tumblin 99
Figure courtesy Tumblin 99
Our approach
• Do not blur across edges
• Non-linear filtering
Large-scale Output
Detail
Color
Edge-preserving filtering
• Blur, but not across edges
Input Gaussian blur Edge-preserving
• Acceleration
J = f I
output input
Start with Gaussian filtering
• Spatial Gaussian f
J = f I
output input
Start with Gaussian filtering
• Output is blurred
J = f I
output input
Gaussian filter as weighted average
• Weight of x depends on distance to x
J (x) = x f ( x, x ) I (x )
x
x x
output input
The problem of edges
• Here, I (x ) “pollutes” our estimate J(x)
• It is too different
J (x) = x f ( x, x ) I (x )
I (x)
x
I (x )
output input
Principle of Bilateral filtering
[Tomasi and Manduchi 1998]
1
J (x) =
k ( x)
x f ( x, x ) g ( I (x ) - I ( x)) I (x )
I (x)
x
I (x )
output input
Bilateral filtering
[Tomasi and Manduchi 1998]
• Spatial Gaussian f
1
J (x) =
k ( x)
x f ( x, x ) g ( I (x ) - I ( x)) I (x )
output input
Bilateral filtering
[Tomasi and Manduchi 1998]
• Spatial Gaussian f
• Gaussian g on the intensity difference
1
J (x) =
k ( x)
x f ( x, x ) g ( I (x ) - I ( x)) I (x )
output input
Normalization factor
[Tomasi and Manduchi 1998]
• k(x)= x f ( x, x ) g ( I (x ) - I ( x))
1
J (x) =
k ( x)
x f ( x, x ) g ( I (x ) - I ( x)) I (x )
output input
Bilateral filtering is non-linear
[Tomasi and Manduchi 1998]
1
J (x) =
k ( x)
x f ( x, x ) g ( I (x ) - I ( x)) I (x )
x x
output input
Plan
• Review of bilateral filtering [Tomasi and Manduchi 1998]
• Acceleration
1
J (x) =
k ( x)
x f ( x, x ) g ( I (x ) - I ( x)) I (x )
Acceleration
• Linear for a given value of I(x)
• Convolution of g I by Gaussian f
1
J (x) =
k ( x)
x f ( x, x ) g ( I (x ) - I ( x)) I (x )
Acceleration
• Linear for a given value of I(x)
• Convolution of g I by Gaussian f
• Valid for all x with same value I(x)
1
J (x) =
k ( x)
x f ( x, x ) g ( I (x ) - I ( x)) I (x )
Acceleration
• Discretize the set of possible I(x)
• Perform linear Gaussian blur (FFT)
• Linear interpolation in between
1
J (x) =
k ( x)
x f ( x, x ) g ( I (x ) - I ( x)) I (x )
• Acceleration
Contrast
too high!
Contrast reduction
Input HDR image
Intensity
Color
Contrast reduction
Input HDR image
Fast
Bilateral
Filter
Color
Contrast reduction
Input HDR image
Fast Detail
Bilateral
Filter
Color
Contrast reduction
Input HDR image
Fast Detail
Bilateral
Filter
Color
Contrast reduction
Input HDR image
Color
Contrast reduction
Input HDR image Output
Color Color
Algorithm details
See https://people.csail.mit.edu/fredo/PUBLI/Siggraph2002/
Informal comparison