tone reproduction - rochester institute of technology

33
Tone Reproduction Tone Reproduction Tone Reproduction Erik Reinhard University of Central Florida School of Computer Science [email protected]

Upload: others

Post on 03-Feb-2022

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Tone Reproduction - Rochester Institute of Technology

Tone ReproductionTone ReproductionTone ReproductionErik Reinhard

University of Central FloridaSchool of Computer [email protected]

Page 2: Tone Reproduction - Rochester Institute of Technology

Preparing Images for DisplayPreparing Images for Display

•• Need to map floating point numbers to Need to map floating point numbers to bytesbytes

•• Need to preserve some aspect of the image:Need to preserve some aspect of the image:–– ContrastContrast–– VisibilityVisibility–– BrightnessBrightness–– ……

Page 3: Tone Reproduction - Rochester Institute of Technology

Global vs. LocalGlobal vs. Local

•• GlobalGlobal–– Scale each pixel according to a fixed curveScale each pixel according to a fixed curve–– Key issue: shape of curveKey issue: shape of curve

•• LocalLocal–– Scale each pixel by a curve that is modulated by Scale each pixel by a curve that is modulated by

a local averagea local average–– Key issue: size of local neighborhoodKey issue: size of local neighborhood

Page 4: Tone Reproduction - Rochester Institute of Technology

Global OperatorsGlobal Operators

Ward Tumblin

Ferwerda

Page 5: Tone Reproduction - Rochester Institute of Technology

Global OperatorsGlobal Operators

TumblinWard

Ferwerda

Page 6: Tone Reproduction - Rochester Institute of Technology

Local OperatorLocal Operator

Pattanaik

Page 7: Tone Reproduction - Rochester Institute of Technology

Spatial ProcessingSpatial Processing

•• Circularly symmetric Circularly symmetric receptive fieldsreceptive fields

•• CenterCenter--surround mechanismssurround mechanisms–– LaplacianLaplacian of Gaussianof Gaussian–– Difference of GaussiansDifference of Gaussians–– BlommaertBlommaert

•• Scale space modelScale space model

Page 8: Tone Reproduction - Rochester Institute of Technology

Scale Space Scale Space (Histogram Equalized Images)(Histogram Equalized Images)

Page 9: Tone Reproduction - Rochester Institute of Technology

Tone Reproduction IdeaTone Reproduction Idea

•• Modify existing global Modify existing global operator to be a local operator to be a local operator, e.g. Greg Ward’soperator, e.g. Greg Ward’s

•• Use spatial processing to Use spatial processing to determine a local determine a local adaptation level for each adaptation level for each pixelpixel

5.2

4.0

4.0max

max

5.2

4.0

4.0max

max

),(219.12219.1),(

219.12219.1),(

⎥⎥⎥⎥

⎢⎢⎢⎢

+

⎟⎠⎞⎜

⎝⎛+

=

⎥⎥⎥⎥

⎢⎢⎢⎢

+

⎟⎠⎞⎜

⎝⎛+

=

yxL

L

LyxLL

L

L

LyxLL

a

d

doutput

w

d

doutput

Page 10: Tone Reproduction - Rochester Institute of Technology

BlommaertBlommaert Brightness ModelBrightness Model

22

2

22

1 skr

ii

iesk

R−

ii RvuLsyxV ⊗= ),(),,(

),,(2),,(),,()(),,(

12

21

syxVs

syxVsyxVsWsyxV+

−= ϕ

∑=ns

ssyxVyxB

0

),,(),(

Gaussian filter

Neural response

Center/surround

Brightness

Page 11: Tone Reproduction - Rochester Institute of Technology

BrightnessBrightness

∑=ns

ssyxVyxB

0

),,(),(

Page 12: Tone Reproduction - Rochester Institute of Technology

Scale Selection AlternativesScale Selection Alternatives

How large should a local neighborhood be?

0

)),(,,(),(ss

yxsyxVyxBn

m

−=Mean value

ε<)),(,,(: yxsyxVs mmThresholded

Page 13: Tone Reproduction - Rochester Institute of Technology

Mean ValueMean Value

0

)),(,,(),(ss

yxsyxVyxBn

m

−=

Page 14: Tone Reproduction - Rochester Institute of Technology

ThresholdedThresholded

ε<),,(: mm syxVs

Page 15: Tone Reproduction - Rochester Institute of Technology

ToneTone--MappingMapping

Local adaptation5.2

4.0

4.0max

max

1

),(219.12219.1),(

)),(,,(),(

⎥⎥⎥⎥

⎢⎢⎢⎢

+

⎟⎠⎞⎜

⎝⎛+

=

=

yxL

L

LyxLL

yxsyxVyxL

a

d

doutput

ma

Greg Ward’s tone-mapping with local adaptation

Page 16: Tone Reproduction - Rochester Institute of Technology

ResultsResults

•• Good results, but something odd about scale Good results, but something odd about scale selection:selection:

•• For most pixels, a large scale was selectedFor most pixels, a large scale was selected

•• Implication: a simpler algorithm should be Implication: a simpler algorithm should be possiblepossible

Page 17: Tone Reproduction - Rochester Institute of Technology

Simplify AlgorithmSimplify Algorithm

),(),(

),(1),(

),(219.12219.1),(

5.2

4.0

4.0max

max

yxLLayxL

yxLyxLL

yxL

L

LyxLL

ww

output

a

d

doutput

=

+≈

⎥⎥⎥⎥

⎢⎢⎢⎢

+

⎟⎠⎞⎜

⎝⎛+

=Greg Ward’s tone-mapping with local adaptation

Simplify

Fix overall lightness of image

Page 18: Tone Reproduction - Rochester Institute of Technology

Global Operator ResultsGlobal Operator Results

Our method Ward

Page 19: Tone Reproduction - Rochester Institute of Technology

Global Operator ResultsGlobal Operator Results

WardOur method

Page 20: Tone Reproduction - Rochester Institute of Technology

Global Global LocalLocal

)),(,,(1),(

),(1),(

1 yxsyxVyxLL

yxLyxLL

moutput

output

+=

+=Global operator

Local operator

Page 21: Tone Reproduction - Rochester Institute of Technology

Local Operator ResultsLocal Operator Results

Global

Local

Page 22: Tone Reproduction - Rochester Institute of Technology

Local Operator ResultsLocal Operator Results

Global Local Pattanaik

Page 23: Tone Reproduction - Rochester Institute of Technology

Lesson LearnedLesson Learned

•• A good local average is obtained by using a A good local average is obtained by using a (Gaussian) blurred pixel.(Gaussian) blurred pixel.

•• The amount of blur to apply varies per pixelThe amount of blur to apply varies per pixel

•• The filter kernel should as large as possible, The filter kernel should as large as possible, without crossing sharp contrast boundarieswithout crossing sharp contrast boundaries

•• This is why the scale selection mechanism This is why the scale selection mechanism works!works!

Page 24: Tone Reproduction - Rochester Institute of Technology

Global OperatorsGlobal Operators

•• Usually a sigmoid:Usually a sigmoid:

•• Sigma is the semiSigma is the semi--saturation constantsaturation constant•• Most global operators can be rewritten into Most global operators can be rewritten into

a form similar to thisa form similar to this

na

nw

nw

d LLLL

)(σ+=

Page 25: Tone Reproduction - Rochester Institute of Technology

Global Operators Global Operators -- SigmoidSigmoid

Drago

Page 26: Tone Reproduction - Rochester Institute of Technology

LaLa

•• Adaptation luminance computed asAdaptation luminance computed as–– Global averageGlobal average

•• Log average luminanceLog average luminance•• Interpolation schemeInterpolation scheme

–– Local averageLocal average•• Use four neighbors (good enough in practice)Use four neighbors (good enough in practice)•• Scale selection mechanismScale selection mechanism•• Bilateral filterBilateral filter

•• Typically small filter kernelsTypically small filter kernels

Page 27: Tone Reproduction - Rochester Institute of Technology

PhotoreceptorPhotoreceptor--basedbased

naa

pixelwa

aw

wd

aw

wd

aw

wd

fLL

LaaLL

LBBB

LGGG

LRRR

=

−+=

+=

+=

+=

)(

)1(

)(

)(

)(

σ

σ

σ

σ

na

nw

nw

d LLLL

)(σ+=

Also interpolate between R,G,B values and pixel luminance

Page 28: Tone Reproduction - Rochester Institute of Technology

Interpolation Scheme for LaInterpolation Scheme for La

Luminance interpolation

Page 29: Tone Reproduction - Rochester Institute of Technology

Interpolation Scheme for LaInterpolation Scheme for La

Between R,G,B and luminance

Page 30: Tone Reproduction - Rochester Institute of Technology

Bilateral filterBilateral filter

Page 31: Tone Reproduction - Rochester Institute of Technology

Local LaLocal La

Local bilateral

GlobalLocal SUSAN

Page 32: Tone Reproduction - Rochester Institute of Technology

ConclusionsConclusions

•• Most tone reproduction operators are Most tone reproduction operators are sigmoidalsigmoidal

•• Can be either local or globalCan be either local or global

•• Filter kernels (local) should be small, but in Filter kernels (local) should be small, but in any case should not cross sharp contrast any case should not cross sharp contrast boundariesboundaries

Page 33: Tone Reproduction - Rochester Institute of Technology

ConclusionsConclusions

•• SigmoidsSigmoids also part of most color appearance also part of most color appearance modelsmodels

•• Color appearance and tone reproduction will Color appearance and tone reproduction will convergeconverge