photographic tone reproduction for digital images

29
Photographic Tone Photographic Tone Reproduction for Reproduction for Digital Images Digital Images Erik Reinhard Erik Reinhard Utah Utah Mike Stark Mike Stark Peter Shirley Peter Shirley Jim Ferwerda Jim Ferwerda Cornell Cornell

Upload: shea

Post on 16-Jan-2016

33 views

Category:

Documents


0 download

DESCRIPTION

Photographic Tone Reproduction for Digital Images. Erik Reinhard Utah Mike Stark Peter Shirley Jim Ferwerda Cornell. Tone Reproduction Problem. Watch the light Compare with projection on screen. Overview. Tone reproduction is difficult when Dynamic range is high - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Photographic Tone Reproduction for  Digital Images

Photographic Tone Photographic Tone Reproduction for Reproduction for

Digital ImagesDigital Images

Erik Reinhard UtahErik Reinhard Utah

Mike StarkMike Stark

Peter ShirleyPeter Shirley

Jim Ferwerda CornellJim Ferwerda Cornell

Page 2: Photographic Tone Reproduction for  Digital Images

Tone Reproduction ProblemTone Reproduction Problem

• Watch the lightWatch the light

• Compare with projection on screenCompare with projection on screen

Page 3: Photographic Tone Reproduction for  Digital Images

OverviewOverview

• Tone reproduction is difficult whenTone reproduction is difficult when– Dynamic range is highDynamic range is high– Algorithm is used in predictive contextAlgorithm is used in predictive context

• Requirements of a practical operatorRequirements of a practical operator

• Skip many details (see paper for those)Skip many details (see paper for those)

Page 4: Photographic Tone Reproduction for  Digital Images

Dynamic RangeDynamic Range

• Ratio of brightest and darkest regions Ratio of brightest and darkest regions where detail is visiblewhere detail is visible

• Implies that some controlled burn-Implies that some controlled burn-out is desirable!out is desirable!

• Simplifies tone reproduction problemSimplifies tone reproduction problem

Page 5: Photographic Tone Reproduction for  Digital Images

Controlled Burn-out is OKControlled Burn-out is OK

No detail expected when looking into the sun (sunspots)

Page 6: Photographic Tone Reproduction for  Digital Images

ZonesZones

Lin: 1 2 4 8 16 32 64 128 256Lin: 1 2 4 8 16 32 64 128 256

Log: 1 2 3 4 5 6 7 8 9Log: 1 2 3 4 5 6 7 8 9

• Each doubling of intensity is new zoneEach doubling of intensity is new zone

• Nine zones with visible detail can be mapped Nine zones with visible detail can be mapped to print, fewer to displaysto print, fewer to displays

• Zones are a good measure of dynamic rangeZones are a good measure of dynamic range

Page 7: Photographic Tone Reproduction for  Digital Images

Typical Dynamic RangesTypical Dynamic Ranges

• Photographs: 4-6 zones with visible Photographs: 4-6 zones with visible detail (after digitizing)detail (after digitizing)

• HDR images: 7-11 zones with visible HDR images: 7-11 zones with visible detaildetail

• Tone reproduction should not be Tone reproduction should not be very difficult for most images!very difficult for most images!

Page 8: Photographic Tone Reproduction for  Digital Images

11 Zones 7 Zones

Page 9: Photographic Tone Reproduction for  Digital Images

Rest of Talk:Rest of Talk:

• A very simple global operator adequate A very simple global operator adequate for most images (up to 11 zones)for most images (up to 11 zones)

• A local operator that handles very high A local operator that handles very high dynamic range images (12 zones and dynamic range images (12 zones and more)more)

Page 10: Photographic Tone Reproduction for  Digital Images

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 local averageScale each pixel by a local average– Key issue: size of local neighborhoodKey issue: size of local neighborhood

Page 11: Photographic Tone Reproduction for  Digital Images

Global OperatorGlobal Operator

• Compression curve needs toCompression curve needs to

– Bring everything within rangeBring everything within range– Leave dark areas aloneLeave dark areas alone

• In other wordsIn other words

– Asymptote at 1Asymptote at 1– Derivative of 1 at 0Derivative of 1 at 0

Page 12: Photographic Tone Reproduction for  Digital Images

Global OperatorGlobal Operator

world

worlddisplay L

LL

1

Page 13: Photographic Tone Reproduction for  Digital Images

Global Operator ResultsGlobal Operator Results

8 Zones 7 Zones

Page 14: Photographic Tone Reproduction for  Digital Images

Global Operator ResultsGlobal Operator Results

12 Zones

Page 15: Photographic Tone Reproduction for  Digital Images

Global Operator ResultsGlobal Operator Results

15 Zones

Page 16: Photographic Tone Reproduction for  Digital Images

Local OperatorLocal Operator

• ReplaceReplace

• WithWith

• V1 is our dodge-and-burn operatorV1 is our dodge-and-burn operator

world

worlddisplay L

LL

1

11 V

LL worlddisplay

Page 17: Photographic Tone Reproduction for  Digital Images

Dodge and BurnDodge and Burn

• Roughly equivalent to local adaptationRoughly equivalent to local adaptation

• Compute by carefully choosing a local Compute by carefully choosing a local neighborhood for each pixelneighborhood for each pixel

• Then take a local average of this Then take a local average of this neighborhood (which is V1)neighborhood (which is V1)

Page 18: Photographic Tone Reproduction for  Digital Images

Dodge and Burn ComputationDodge and Burn Computation

• Compute Gaussian blurred images at Compute Gaussian blurred images at different scales (sizes)different scales (sizes)

• Take difference of Gaussians to detect Take difference of Gaussians to detect high contrast (Blommaert model)high contrast (Blommaert model)

• Take Gaussian at largest scale that does Take Gaussian at largest scale that does not exceed contrast threshold (V1)not exceed contrast threshold (V1)

Page 19: Photographic Tone Reproduction for  Digital Images

Size of Local NeighborhoodSize of Local Neighborhood

Page 20: Photographic Tone Reproduction for  Digital Images

Size of Local NeighborhoodSize of Local Neighborhood

Page 21: Photographic Tone Reproduction for  Digital Images

SubtletiesSubtleties

• Gaussians computed at relatively small Gaussians computed at relatively small scalesscales

• For sufficient accuracy, computation For sufficient accuracy, computation rewritten in terms of the error functionrewritten in terms of the error function

• For sufficient speed, computation For sufficient speed, computation performed in Fourier domainperformed in Fourier domain

Page 22: Photographic Tone Reproduction for  Digital Images

Local Operator ResultsLocal Operator Results

15 Zones

Light bulbvisible Small halo

around lamp shade

Text on book visible

Page 23: Photographic Tone Reproduction for  Digital Images

ConclusionsConclusions

• Most “high dynamic range” images are Most “high dynamic range” images are medium dynamic rangemedium dynamic range

• This makes tone reproduction a fairly This makes tone reproduction a fairly straightforward problem for most straightforward problem for most practical applications/imagespractical applications/images

Page 24: Photographic Tone Reproduction for  Digital Images

ConclusionsConclusions

• Our global operator is very simple and is Our global operator is very simple and is adequate for most imagesadequate for most images

• Our local operator is more involved and Our local operator is more involved and compresses very high dynamic range compresses very high dynamic range images adequatelyimages adequately

Page 25: Photographic Tone Reproduction for  Digital Images

Further WorkFurther Work

• Two manual parameters:Two manual parameters:– Key value to determine overall intensity of Key value to determine overall intensity of

resultresult– White point to fix contrast loss for low to White point to fix contrast loss for low to

medium dynamic range imagesmedium dynamic range images

• Both can be automated with a Both can be automated with a straightforward algorithm – see straightforward algorithm – see forthcoming journal of graphics tools forthcoming journal of graphics tools and my web pageand my web page

Page 26: Photographic Tone Reproduction for  Digital Images

AcknowledgmentsAcknowledgments

• Thanks to Greg Ward, Paul Debevec, Thanks to Greg Ward, Paul Debevec, Sumant Pattanaik, Jack TumblinSumant Pattanaik, Jack Tumblin

• This work was sponsored by NSF grants This work was sponsored by NSF grants 97-96136, 97-31859, 98-18344, 97-96136, 97-31859, 98-18344, 99-78099 and by the DOE AVTC/VIEWS99-78099 and by the DOE AVTC/VIEWS

Page 27: Photographic Tone Reproduction for  Digital Images

ErratumErratum

Equation 1 in the paper should be:Equation 1 in the paper should be:

Note: source code on CDROM is correct!Note: source code on CDROM is correct!

yxww yxL

NL

,

),(log1

exp

Page 28: Photographic Tone Reproduction for  Digital Images

Informal comparisonInformal comparison

Gradient-space[Fattal et al.]

Bilateral[Durand et al.]

Photographic[Reinhard et al.]

Page 29: Photographic Tone Reproduction for  Digital Images

Informal comparisonInformal comparison

Gradient-space[Fattal et al.]

Bilateral[Durand et al.]

Photographic[Reinhard et al.]