40
High dynamic range imaging

High dynamic range imaging. Camera pipeline 12 bits8 bits

Embed Size (px)

Citation preview

Page 1: High dynamic range imaging. Camera pipeline 12 bits8 bits

High dynamic range imaging

Page 2: High dynamic range imaging. Camera pipeline 12 bits8 bits

Camera pipeline

12 bits 8 bits

Page 3: High dynamic range imaging. Camera pipeline 12 bits8 bits

Short exposure

10-6 106

10-6 106

Real worldradiance

Pictureintensity

dynamic range

Pixel value 0 to 255

Page 4: High dynamic range imaging. Camera pipeline 12 bits8 bits

Long exposure

10-6 106

10-6 106

Real worldradiance

Pictureintensity

dynamic range

Pixel value 0 to 255

Page 5: High dynamic range imaging. Camera pipeline 12 bits8 bits

Varying shutter speeds

Page 6: High dynamic range imaging. Camera pipeline 12 bits8 bits

Recovering High Dynamic Range Radiance Maps

from PhotographsPaul E. Debevec Jitendra Malik

SIGGRAPH 1997

Page 7: High dynamic range imaging. Camera pipeline 12 bits8 bits

Recovering response curve

12 bits 8 bits

Page 8: High dynamic range imaging. Camera pipeline 12 bits8 bits

Dt =1/4 sec

Dt =1 sec

Dt =1/8 sec

Dt =2 sec

Image series

Dt =1/2 sec

Recovering response curve

• 1• 1

• 1• 1

• 1• 1

• 1• 1

• 1• 1

• 3• 3

• 3• 3

• 3• 3

• 3• 3

• 3• 3

• 2• 2

• 2• 2

• 2• 2

• 2• 2

• 2• 2

0

255

Page 9: High dynamic range imaging. Camera pipeline 12 bits8 bits

Idea behind the math

ln2

Page 10: High dynamic range imaging. Camera pipeline 12 bits8 bits

Idea behind the math

Each line for a scene point.The offset is essentially determined by the unknown Ei

Page 11: High dynamic range imaging. Camera pipeline 12 bits8 bits

Idea behind the math

Note that there is a shift that we can’t recover

Page 12: High dynamic range imaging. Camera pipeline 12 bits8 bits

Math for recovering response curve

Page 13: High dynamic range imaging. Camera pipeline 12 bits8 bits

Recovering response curve

• The solution can be only up to a scale, add a constraint

• Add a hat weighting function

Page 14: High dynamic range imaging. Camera pipeline 12 bits8 bits

Recovered response function

Page 15: High dynamic range imaging. Camera pipeline 12 bits8 bits

Constructing HDR radiance map

combine pixels to reduce noise and obtain a more reliable estimation

Page 16: High dynamic range imaging. Camera pipeline 12 bits8 bits

Reconstructed radiance map

Page 17: High dynamic range imaging. Camera pipeline 12 bits8 bits

Gradient Domain High Dynamic Range Compression

Raanan Fattal Dani Lischinski Michael Werman

SIGGRAPH 2002

Page 18: High dynamic range imaging. Camera pipeline 12 bits8 bits

The method in 1D

log derivative

atte

nuat

e

integrateexp

Page 19: High dynamic range imaging. Camera pipeline 12 bits8 bits

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 20: High dynamic range imaging. Camera pipeline 12 bits8 bits

Solution

• Look for image I with gradient closest to G in the least squares sense.

• I minimizes the integral:

22

2,

yx Gy

IG

x

IGIGIF

dxdyGIF ,

y

G

x

G

y

I

x

I yx

2

2

2

2Poissonequation

Page 21: High dynamic range imaging. Camera pipeline 12 bits8 bits

Attenuation

gradient magnitudelog(Luminance) attenuation map

1),(

),(

yxHyx k

kH 1.0

8.0~

Page 22: High dynamic range imaging. Camera pipeline 12 bits8 bits

Multiscale gradient attenuation

interpolate

interpolate

X =

X =

Page 23: High dynamic range imaging. Camera pipeline 12 bits8 bits

Bilateral[Durand et al.]

Photographic[Reinhard et al.]

Gradient domain[Fattal et al.]

Informal comparison

Page 24: High dynamic range imaging. Camera pipeline 12 bits8 bits

Informal comparison

Bilateral[Durand et al.]

Photographic[Reinhard et al.]

Gradient domain[Fattal et al.]

Page 25: High dynamic range imaging. Camera pipeline 12 bits8 bits

Bilateral[Durand et al.]

Photographic[Reinhard et al.]

Gradient domain[Fattal et al.]

Informal comparison

Page 26: High dynamic range imaging. Camera pipeline 12 bits8 bits

Local Laplacian Filters :Edge-aware Image

Processingwith a Laplacian PyramidSylvain Paris Samuel W. Hasinoff Jan

KautzSIGGRAPH 2011

Page 27: High dynamic range imaging. Camera pipeline 12 bits8 bits

Background on Gaussian Pyramids• Resolution halved at each level using

Gaussian kernel

level 0

level 1

level 2level 3(residual)

27

Page 28: High dynamic range imaging. Camera pipeline 12 bits8 bits

Background on Laplacian Pyramids• Difference between adjacent Gaussian

levels

level 0

level 1

level 2level 3(residual)

28

Page 29: High dynamic range imaging. Camera pipeline 12 bits8 bits

Discontinuity

Intuition for 1D Edge

= + +

Input signal Texture Smooth

29

• Decomposition for the sake of analysis only– We do not compute it in practice

Page 30: High dynamic range imaging. Camera pipeline 12 bits8 bits

Discontinuity

Intuition for 1D Edge

= + +

Input signal Texture SmoothDoes not

contribute toLap. pyramidat that scale(d2/dx2=0)

30

Page 31: High dynamic range imaging. Camera pipeline 12 bits8 bits

Discontinuity

Ideal Texture Increase

Texture

Keep unchanged

Amplify

31

Page 32: High dynamic range imaging. Camera pipeline 12 bits8 bits

Our Texture Increase

“Locally good”version

Input signal

σ σ

σ

σ

user-defined parameter σ defines texture vs. edges

32

Local nonlinearity

Page 33: High dynamic range imaging. Camera pipeline 12 bits8 bits

DiscontinuityUnaffected

Our Texture Increase

= + +

“Locally good”Only left side

is affected

TextureLeft side is ok,right side is not

SmoothDoes not

contribute toLap. pyramidat that scale(d2/dx2=0)

33

Page 34: High dynamic range imaging. Camera pipeline 12 bits8 bits

= + +

SmoothDoes not

contribute toLap. pyramidat that scale(d2/dx2=0)

Discussion

Negligible because

collocated with discontinuity

Negligible because

Gaussian kernel ≈ 0

DiscontinuityUnaffected

“Locally good”Only left side

is affected

TextureLeft side is ok,right side is not

34

Good approximation to ideal case overall

(formal treatment in

paper)

Page 35: High dynamic range imaging. Camera pipeline 12 bits8 bits

Texture ManipulationInput

35

Page 36: High dynamic range imaging. Camera pipeline 12 bits8 bits

Texture ManipulationDecrease

36

Page 37: High dynamic range imaging. Camera pipeline 12 bits8 bits

Texture ManipulationSmall Increase

37

Page 38: High dynamic range imaging. Camera pipeline 12 bits8 bits

Texture ManipulationLarge Increase

38

Page 39: High dynamic range imaging. Camera pipeline 12 bits8 bits

Texture ManipulationInput

39

Page 40: High dynamic range imaging. Camera pipeline 12 bits8 bits

Texture ManipulationLarge Increase

40