Inverse (Reverse) Tone Mapping dr. Francesco Banterle - - PowerPoint PPT Presentation

inverse reverse tone mapping
SMART_READER_LITE
LIVE PREVIEW

Inverse (Reverse) Tone Mapping dr. Francesco Banterle - - PowerPoint PPT Presentation

Inverse (Reverse) Tone Mapping dr. Francesco Banterle francesco.banterle@isti.cnr.it The problem ? The problem f ( I ) : D w h c R w h c D [0 , 255] This means to expand the range The problem L w = f ( L d ) : D w


slide-1
SLIDE 1

Inverse (Reverse) Tone Mapping

  • dr. Francesco Banterle

francesco.banterle@isti.cnr.it

slide-2
SLIDE 2

The problem

?

slide-3
SLIDE 3

The problem

f(I) : Dw××h×c → Rw××h×c D ⊆ [0, 255]

This means to expand the range

slide-4
SLIDE 4

The problem

Lw = f(Ld) : Dw××h → Rw×× 2 4 Rw Gw Bw 3 5 = Lwg ✓ 1 Ld 2 4 Rd Gd Bd 3 5 ◆ Two steps:

  • expand the luminance range
  • fix colors
slide-5
SLIDE 5

The problem

LDR (8-bit) HDR

slide-6
SLIDE 6

Linearization

  • CRF is known
  • DVD and television gamma is 2.2
  • Single image CRF or gamma estimation
slide-7
SLIDE 7

Linearization: Single Image

slide-8
SLIDE 8

Linearization: Single Image

slide-9
SLIDE 9

Global Methods

  • A simple method is to expand the dynamic range
  • f pixel over a certain threshold, R, [Landis 2002]:

Lw(x) = ( (1 − k)Ld(x) + kLw,maxLd(x) if Ld(x) ≥ R, Ld(x)

  • therwise;

k = ✓Ld(x) − R 1 − R ◆α

slide-10
SLIDE 10

Global Methods

R = 0.75 α=0.5

slide-11
SLIDE 11

Global Methods

  • “a simple linear scale can provide an HDR experience” based
  • n psychophysically experiments [Akyüz et al. 2007]:
  • Over-exposed images a non-linear function (gamma) needs to

be applied. This non-linearity depends on exposedness of the image [Masia et al. 2009]:

Lw(x) = k ✓ Ld(x) − Ld,min Ld,max − Ld,min ◆γ Lw(x) = Ld(x)γ γ = 10.44k − 0.6282 k = log Ld(x) − log Ld,min log Ld,max − log Ld,min

slide-12
SLIDE 12

Global Methods

γ

slide-13
SLIDE 13

Global Methods

γ

slide-14
SLIDE 14

Classification Methods

  • A classification approach [Meylan et al. 2006, 2007]:
  • Expand highlights and specular surfaces (ω>0)
  • ω is computed using robust thresholding
  • Expansion using a two-scale model:
  • To avoid contouring low-pass filtering on expanded regions

Lw(x) = f(Ld(x)) = ( s1Ld(x) if Ld(x) ≤ ω, s1ω + s2(Ld(x) − ω)

  • therwise;

s1 = ρ ω s2 = 1 − ρ Ld,max − ω ,

slide-15
SLIDE 15

Classification Methods

slide-16
SLIDE 16

Classification Methods

  • Classification can be improved [Didyk et al. 2008]:
  • Three classification areas: diffuse, reflections,

and lights

  • Automatic Classifier (AC):
  • SVM + Nearest Neighbor + Tracking ⇒ 3%
  • User interface for adjusting the AC errors
slide-17
SLIDE 17

Classification Methods

  • Non-linear adaptive tone curve for expanding the

range based on the histogram of the region:

  • Bilateral filtering layers separation (high and

low frequencies) for avoiding contouring

slide-18
SLIDE 18

Classification Methods

slide-19
SLIDE 19

Classification Methods

  • Saliency can be used for classification [Masia et al. 2010]:
  • Range Expansion (RE): pice-wise linear expansion using the zonal system

by Adams (9 zones):

  • Labeling:
  • salient objects and background discrimination using different

techniques:

  • learning-based saliency detection (Liu et al 2007])
  • saliency cuts [Fu et al. 2008]
  • Different Labels ⇒ Different RE functions

p = ✓e(v sin(π z−1

16 )) − 1

ev − 1 ◆−2.2 v = 5.25 z ∈ [0, 9]

slide-20
SLIDE 20

Classification Methods

Auto-Labeling Binary Mask Input

slide-21
SLIDE 21

Expand Map Methods

  • A general framework for expansion [Banterle et al. 2006,

Rempel et al. 2007, Banterle et al. 2009, Kovaleski et al. 2010]:

  • Range Expansion: inverting an TMO, a linear function,

etc

  • Expand Map:
  • sampling+density estimation+cross bilateral

(avoiding contouring and compression artifacts)

  • Thresholding + Edge-stopping/Edge-aware filtering
slide-22
SLIDE 22

Expand Map Methods

[Banterle et al. 2008]

slide-23
SLIDE 23

Expand Map Methods

slide-24
SLIDE 24

Expand Map Methods

slide-25
SLIDE 25

Expand Map Methods

[Rempel et al. 2007]

slide-26
SLIDE 26

Expand Map Methods

LDR Expanded f-stop 0 Expanded f-stop -4 Expanded f-stop -8

slide-27
SLIDE 27

User Based

  • For artistic purposes the user should be allowed to

fill gaps in over-exposed and under-exposed area [Wang et al. 2007]:

  • Detail recovering: using a tool similar to the

“healing tool” in Adobe PhotoShop

  • Range expansion: 2D Gaussian lobes are fitted

in continuous over-exposed regions

slide-28
SLIDE 28

User Based

slide-29
SLIDE 29

User Based: Expansion

slide-30
SLIDE 30

User Based: Expansion

slide-31
SLIDE 31

User Based: Expansion

slide-32
SLIDE 32

User Based: Expansion

2D Gaussian lobe fit

445 450 455 460 465 0.5 1 1.5 2 2.5 3 3.5 4

X axis Luminance cd/m2

LDR profile 2D Gaussian fit
slide-33
SLIDE 33

User Based: Details Recovery

Original image courtesy of Ahmet Oguz Akyuz

slide-34
SLIDE 34

User Based: Details Recovery

Original image courtesy of Ahmet Oguz Akyuz

slide-35
SLIDE 35

and colors??

slide-36
SLIDE 36

Color Reproduction in iTMO/rTMO

  • There is the opposite problem which is present in

tone mapping:

  • Tone Mapping —> over saturation of colors due to

compression

  • Inverse/Reverse Tone Mapping —> desaturation of

colors due to expansion

slide-37
SLIDE 37

Color Reproduction in iTMO/rTMO

  • Basic idea is to sature colors; typically [Schlick

1994]:

  • s depends on the image content
  • Issues: it needs manual tweaking and it is a hack

2 4 Rw Gw Bw 3 5 = Lw ✓ 1 Ld 2 4 Rd Gd Bd 3 5 ◆ 1

s

s ∈ (0, 1]

slide-38
SLIDE 38

Color Reproduction in iTMO/rTMO

  • A possible solution is to have a spatially varying s:

h(x) = SMax(1−3t(x)2 +2t(x)3)+SMin(3t(x)2 −2t(x)3) t(x) = Ld(x) Lw(x)

1 s = h(x)

slide-39
SLIDE 39

Color Reproduction in iTMO/rTMO

Original LDR image Expanded Image Expanded Image + Color Recovery

slide-40
SLIDE 40

Evaluation

  • There is the need to evaluate different expansion

methods against a “ground truth”.

  • Why?
  • To understand weak features or drawbacks
  • To understand important features rTMO/iTMO

techniques do not generate exact luminance values

slide-41
SLIDE 41

Evaluation

  • Perceptual Image Metrics: not exact comparison as

in the PSNR, RMSE, etc.

  • Psychophysical Experiments
slide-42
SLIDE 42

Evaluation: Perceptual Metrics

  • HDR-VDP:
  • It can be used used it to validate that their models were

performing better than a simple non-linear expansion, validate against other methods, etc. [Banterle et al. 2006, 2007, 2008]

  • DRIIQM:
  • It can be used used it to validate that their models were

performing better than a simple non-linear expansion, validate against other methods, etc. [Banterle et al. 2006, 2007, 2008]

slide-43
SLIDE 43

Evaluation: Perceptual Metrics

HDR-VDP

Lucy model is courtesy of the Stanford 3D Scanning Repository

slide-44
SLIDE 44

Evaluation: Perceptual Metrics

HDR-VDP

Lucy model is courtesy of the Stanford 3D Scanning Repository

slide-45
SLIDE 45

Evaluation: Psychophysical Experiments

  • Pairwise comparisons of HDR videos/images [Didyk et al.

2009, Banterle 2009]:

  • quantization artifacts need to be handle for better quality.
  • IBL needs non-linear expansion. Rating of HDR images

and tone mapped expanded images

  • Rating of HDR images and tone mapped expanded images

[Masia et al. 2009]:

  • Understanding preferences in very over-exposed area

understanding artifacts in expanded images

slide-46
SLIDE 46

Questions?