Top Banner
Applied Perception in Applied Perception in Graphics Graphics Erik Reinhard Erik Reinhard University of Central University of Central Florida Florida [email protected] [email protected]
46

Applied Perception in Graphics Erik Reinhard University of Central Florida [email protected].

Dec 20, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Applied Perception in Applied Perception in GraphicsGraphics

Erik ReinhardErik Reinhard

University of Central FloridaUniversity of Central Florida

[email protected]@cs.ucf.edu

Page 2: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Computer GraphicsComputer Graphics

• Produce computer Produce computer generated imagery that generated imagery that cannot be cannot be distinguished from real distinguished from real scenesscenes

• Do this in real-timeDo this in real-time

Page 3: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Trends in Computer GraphicsTrends in Computer Graphics

• Greater realismGreater realism– Scene complexityScene complexity– Lighting simulations Lighting simulations

• Faster renderingFaster rendering– Faster hardwareFaster hardware– Better algorithmsBetter algorithms

• Together: still too slow and unrealisticTogether: still too slow and unrealistic

Page 4: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Algorithm designAlgorithm design

• Largely opportunisticLargely opportunistic

• Computer graphics is a maturing fieldComputer graphics is a maturing field

• Hence, a more directed approach is neededHence, a more directed approach is needed

Page 5: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Long Term StrategyLong Term Strategy

• Understand the differences between natural Understand the differences between natural and computer generated scenesand computer generated scenes

• Understand the Human Visual System and Understand the Human Visual System and how it perceives imageshow it perceives images

• Apply this knowledge to motivate graphics Apply this knowledge to motivate graphics algorithmsalgorithms

Page 6: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

This Presentation (1)This Presentation (1)

Reinhard et. al., “Color Transfer between Images”, IEEE CG&A, Sept. 2001.

Page 7: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

This Presentation(2)This Presentation(2)

Reinhard et. al., “Photographic Tone Reproduction for Digital Images, SIGGRAPH 2002.

Page 8: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

IntroductionIntroduction

The Human Visual System is evolved to look at natural images

Natural Random

Page 9: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Human Visual SystemHuman Visual System

Page 10: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

RetinaRetina

Page 11: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Color ProcessingColor Processing

Rod and Cone pigments

Page 12: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Color ProcessingColor Processing

Cone output is logarithmic

Color opponent space

Page 13: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Image StatisticsImage Statistics

• Ruderman’s work on color statistics:Ruderman’s work on color statistics:

– Principal Components Analysis (PCA) on colors of Principal Components Analysis (PCA) on colors of natural image ensemblesnatural image ensembles

– Axes have meaning: color opponents Axes have meaning: color opponents (luminance, red-green and yellow-blue)(luminance, red-green and yellow-blue)

Page 14: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Color Processing SummaryColor Processing Summary

• Human Visual System expects images with natural Human Visual System expects images with natural characteristics (not just color)characteristics (not just color)

• Color opponent space has decorrelated axes (but Color opponent space has decorrelated axes (but in practice close to independent)in practice close to independent)

• Color space is logarithmic (compact and symmetric Color space is logarithmic (compact and symmetric data representation)data representation)

• Independent processing along each axis should be Independent processing along each axis should be possible possible Application Application

Page 15: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

LL Color Space Color Space

Convert RGB triplets Convert RGB triplets to LMS cone spaceto LMS cone space

Take logarithmTake logarithm

Rotate axesRotate axes

Page 16: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Color TransferColor Transfer

• Make one image look like anotherMake one image look like another

• For both images:For both images:– Transfer to new color spaceTransfer to new color space– Compute mean and standard deviation along Compute mean and standard deviation along

each color axiseach color axis

• Shift and scale the target image to have the Shift and scale the target image to have the same statistics as the source imagesame statistics as the source image

Page 17: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Why not use RGB space?Why not use RGB space?

Input images Output images

RGB

L

Page 18: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Color Transfer ExampleColor Transfer Example

Page 19: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Color Transfer ExampleColor Transfer Example

Page 20: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Color Transfer ExampleColor Transfer Example

Page 21: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Color Processing SummaryColor Processing Summary

• Changing the statistics along each axis Changing the statistics along each axis independently allows one image to resemble independently allows one image to resemble a second imagea second image

• If the composition of the images is very If the composition of the images is very unequal, an approach using small swatches unequal, an approach using small swatches may be used successfullymay be used successfully

Page 22: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Tone ReproductionTone Reproduction

Page 23: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Tone ReproductionTone Reproduction

Page 24: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

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 25: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Global OperatorsGlobal Operators

TumblinWard

Ferwerda

Page 26: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Global OperatorsGlobal Operators

TumblinWard

Ferwerda

Page 27: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Local OperatorLocal Operator

Pattanaik

Page 28: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Spatial ProcessingSpatial Processing

• Circularly symmetric Circularly symmetric receptive fieldsreceptive fields

• Centre-surround mechanismsCentre-surround mechanisms– Laplacian of GaussianLaplacian of Gaussian– Difference of GaussiansDifference of Gaussians– BlommaertBlommaert

• Scale space modelScale space model

Page 29: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

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

Page 30: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

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.0

max

max

5.2

4.0

4.0

max

max

),(219.1

2219.1),(

219.1

2219.1),(

yxL

L

L

yxLL

L

L

L

yxLL

a

d

doutput

w

d

doutput

Page 31: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Blommaert Brightness ModelBlommaert Brightness Model

22

2

22

1 sk

r

ii

iesk

R

ii RvuLsyxV ),(),,(

),,(2

),,(),,()(),,(

12

21

syxVs

syxVsyxVsWsyxV

ns

s

syxVyxB0

),,(),(

Gaussian filter

Center/surround

Neural response

Brightness

Page 32: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

BrightnessBrightness

ns

s

syxVyxB0

),,(),(

Page 33: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Scale Selection AlternativesScale Selection Alternatives

0

)),(,,(),(

ss

yxsyxVyxB

n

m

Mean value

Thresholded )),(,,(: yxsyxVs mm

How large should a local neighborhood be?

Page 34: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Mean ValueMean Value

0

)),(,,(),(

ss

yxsyxVyxB

n

m

Page 35: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

ThresholdedThresholded

),,(: mm syxVs

Page 36: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Tone-mappingTone-mapping

5.2

4.0

4.0

max

max

1

),(219.1

2219.1),(

)),(,,(),(

yxL

L

L

yxLL

yxsyxVyxL

a

d

doutput

maLocal adaptation

Greg Ward’s tone-mapping with local adaptation

Page 37: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

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 38: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Simplify AlgorithmSimplify Algorithm

),(),(

),(1

),(

),(219.1

2219.1),(

5.2

4.0

4.0

max

max

yxLL

ayxL

yxL

yxLL

yxL

L

L

yxLL

ww

output

a

d

doutput

Greg Ward’s tone-mapping with local adaptation

Simplify

Fix overall lightness of image

Page 39: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Global Operator ResultsGlobal Operator Results

WardOur method

Page 40: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Global Operator ResultsGlobal Operator Results

WardOur method

Page 41: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Global Global Local Local

)),(,,(1

),(

),(1

),(

1 yxsyxV

yxLL

yxL

yxLL

moutput

output

Global operator

Local operator

Page 42: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Local Operator ResultsLocal Operator Results

Global

Local

Page 43: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Local Operator ResultsLocal Operator Results

Global Local Pattanaik

Page 44: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

SummarySummary

• Knowledge of the Human Visual System can Knowledge of the Human Visual System can help solve engineering problemshelp solve engineering problems

• Color and spatial processing investigatedColor and spatial processing investigated

• Direct applications shownDirect applications shown

Page 45: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

Future WorkFuture Work

This presentation

Page 46: Applied Perception in Graphics Erik Reinhard University of Central Florida reinhard@cs.ucf.edu.

AcknowledgmentsAcknowledgments

• Thanks to my collaborators: Peter Shirley, Thanks to my collaborators: Peter Shirley, Jim Ferwerda, Mike Stark, Mikhael Jim Ferwerda, Mike Stark, Mikhael Ashikhmin, Bruce Gooch, Tom TrosciankoAshikhmin, Bruce Gooch, Tom Troscianko

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