color2gray: salience-preserving color removal

52
Color2Gray: Salience-Preserving Color Removal Amy Gooch Sven Olsen Jack Tumblin Bruce Gooch Northwestern University

Upload: quamar-riley

Post on 01-Jan-2016

45 views

Category:

Documents


1 download

DESCRIPTION

Color2Gray: Salience-Preserving Color Removal. Amy Gooch Sven Olsen Jack Tumblin Bruce Gooch Northwestern University. Grayscale. Color. New Algorithm. Color Space. Volume of displayable CIE L*a*b* Colors. Isoluminant Colors. Color. Grayscale. Converting to Grayscale…. In Color Space - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Color2Gray:  Salience-Preserving Color Removal

Color2Gray: Salience-Preserving Color Removal

Color2Gray: Salience-Preserving Color Removal

Amy GoochSven Olsen

Jack TumblinBruce Gooch

Northwestern University

Page 2: Color2Gray:  Salience-Preserving Color Removal

Color

Grayscale

New Algorithm

Page 3: Color2Gray:  Salience-Preserving Color Removal

Color SpaceColor Space

Volume of displayable CIE L*a*b* Colors

Page 4: Color2Gray:  Salience-Preserving Color Removal

Isoluminant ColorsIsoluminant Colors

Color Grayscale

Page 5: Color2Gray:  Salience-Preserving Color Removal

Converting to Grayscale…Converting to Grayscale…

• In Color Space

– Linear

– Nonlinear

• In Image Space

– Pixels (RGB)

• Using colors in the image

• Different gray for different color

– Relative difference

• Using colors in the image and their position in image space

• Colors can map to same gray…..

Page 6: Color2Gray:  Salience-Preserving Color Removal

CIE CAM 97 Photoshop LAB

CIE XYZ YCrCb

Traditional Methods: Luminance ChannelsTraditional Methods: Luminance Channels

Problem can not be solved by simply switching to a different space

Page 7: Color2Gray:  Salience-Preserving Color Removal

Simple Linear MappingSimple Linear Mapping

Luminance Axis

Page 8: Color2Gray:  Salience-Preserving Color Removal

Principal Component Analysis (PCA)Principal Component Analysis (PCA)

Luminance Axis

Page 9: Color2Gray:  Salience-Preserving Color Removal

Contemporaneous ResearchContemporaneous Research

• Rasche et al. [2005, IEEE CG&A and EG]

Color Image Luminance Only Rasche et al.'s Method

Page 10: Color2Gray:  Salience-Preserving Color Removal

GoalsGoals

• Dimensionality Reduction

– From tristimulus values to single channel

Loss of information

• Maintain salient features in color image

– Human perception

Page 11: Color2Gray:  Salience-Preserving Color Removal

Challenge 1:Influence of neighboring pixelsChallenge 1:Influence of neighboring pixels

Page 12: Color2Gray:  Salience-Preserving Color Removal

Challenge 2:Dimension and Size ReductionChallenge 2:Dimension and Size Reduction

-120, -120

120, 120

0

100

Page 13: Color2Gray:  Salience-Preserving Color Removal

Original

Challenge 3:Many Color2Gray SolutionsChallenge 3:Many Color2Gray Solutions

.

.

.

Page 14: Color2Gray:  Salience-Preserving Color Removal

Algorithm IntuitionAlgorithm Intuition

color2gray

1 2

L1 L2

i = 1, j = 2luminance

Look at C

L1 + L2

L1 + L2 + 2,1

L1 L2 + 2,1

L1 L2

L1 L2

Look at C

Page 15: Color2Gray:  Salience-Preserving Color Removal

Algorithm OverviewAlgorithm Overview

• Adjust g to incorporate both luminance and chrominance differences

ij

• For every pixel

– Compute Luminance distance

– Compute Chrominance distance

• Initialize image, g, with L channel

• Convert to Perceptually Uniform Space

– CIE L*a*b*

Page 16: Color2Gray:  Salience-Preserving Color Removal

Color2Grey AlgorithmColor2Grey Algorithm

Optimization:

min (gi - gj) - i,j

i j=i-

i+

Page 17: Color2Gray:  Salience-Preserving Color Removal

ParametersParameters

Map chromatic difference to increases or decreases in luminance values

Max chrominance offset

Radius of neighboring pixels

Page 18: Color2Gray:  Salience-Preserving Color Removal

= 2 = 16 = entire image

= 300o

= 10

= 49o

= 10

: Neighborhood Size: Neighborhood Size

Page 19: Color2Gray:  Salience-Preserving Color Removal

: Neighborhood Size: Neighborhood Size

= 16 = entire image

Page 20: Color2Gray:  Salience-Preserving Color Removal

: Chromatic variation maps to luminance variation: Chromatic variation maps to luminance variation

= 5 = 10 = 25

crunch(x) = * tanh(x/)

Page 21: Color2Gray:  Salience-Preserving Color Removal

• Luminance Distance:

Problem: ||Cij|| is unsigned

Lij = Li - Lj

Perceptual DistancePerceptual Distance

• Chrominance Distance: ||Cij||

Page 22: Color2Gray:  Salience-Preserving Color Removal

C2

C1

Map chromatic difference to increases or decreases in luminance values

Color Space

+b*

+a*-a*

Page 23: Color2Gray:  Salience-Preserving Color Removal

C1,2

v

sign(||Ci,j||) = sign(Ci,j . v)

Color Difference

Space

v = (cos , sin )

+b*

+a*-a*

-

-

+

+

-b*

Page 24: Color2Gray:  Salience-Preserving Color Removal

Photoshop Grayscale= 225

= 45

Page 25: Color2Gray:  Salience-Preserving Color Removal

Grayscale

= 45= 135

= 0

Page 26: Color2Gray:  Salience-Preserving Color Removal

How to CombineChrominance and LuminanceHow to CombineChrominance and Luminance

ij (Luminance) Lij

Page 27: Color2Gray:  Salience-Preserving Color Removal

How to CombineChrominance and LuminanceHow to CombineChrominance and Luminance

ij

Lij

||Cij||

(Luminance) if |Lij| > ||Cij||

(Chrominance)

Page 28: Color2Gray:  Salience-Preserving Color Removal

How to CombineChrominance and LuminanceHow to CombineChrominance and Luminance

ij

Lij

crunch(||Cij||)

if |Lij| > crunch(||Cij||)

crunch(x) = * tanh(x/)

Page 29: Color2Gray:  Salience-Preserving Color Removal

.

.

.

How to CombineChrominance and LuminanceHow to CombineChrominance and Luminance

ij

Lij

crunch(||Cij||) if Cij . ≥ 0

if |Lij| > crunch(||Cij||)

crunch(-||Cij||) otherwise

Grayscale

Page 30: Color2Gray:  Salience-Preserving Color Removal

Color2Grey AlgorithmColor2Grey Algorithm

Optimization:

min (gi - gj) - i,j

j=i-

If ij == L then ideal image is gOtherwise, selectively modulated by Cij

i

i+

Page 31: Color2Gray:  Salience-Preserving Color Removal

Original Color2GrayPhotoshop

Gray

ResultsResults

Color2Gray+ Color

Page 32: Color2Gray:  Salience-Preserving Color Removal

Original PhotoshopGray Color2GrayColor2Gray+Color

Page 33: Color2Gray:  Salience-Preserving Color Removal

Original Photoshop Gray Color2Gray

Page 34: Color2Gray:  Salience-Preserving Color Removal

Original PhotoshopGrey Color2Grey

Page 35: Color2Gray:  Salience-Preserving Color Removal

Implementation PerformanceImplementation Performance

• Image of size S x S

– O(2 S2) or O(S4) for full neighborhood case

• 12.7s 100x100 image

• 65.6s 150x150 image

• 204.0s 200x200 image

– GPU implementation

• O(S2) ideal, really O(S3)

– 2.8s 100x100

– 9.7s 150x150

– 25.7s 200x200

Athlon 64 3200 CPU

NVIDIA GeForce GT6800

Page 36: Color2Gray:  Salience-Preserving Color Removal

Future WorkFuture Work

• Animations/Video

• Faster

– Multiscale

• Smarter

– Remove need to specify

– Image complexity measures

Page 37: Color2Gray:  Salience-Preserving Color Removal

Validate "Salience Preserving"Validate "Salience Preserving"

Original PhotoshopGrey Color2Grey

Page 38: Color2Gray:  Salience-Preserving Color Removal

Validate "Salience Preserving"Validate "Salience Preserving"

Original PhotoshopGray Color2Gray

Page 39: Color2Gray:  Salience-Preserving Color Removal

Thank youThank you

• SIGGRAPH Reviewers

• NSF

• Helen and Robert J. Piros Fellowship

• Northwestern Graphics Group

• MidGraph2004 Participants

– especially Feng Liu

• (sorry I spelled your name wrong in the acknowledgements)

www.color2gray.info

Page 40: Color2Gray:  Salience-Preserving Color Removal

Original Color2Gray Color2Gray+Color

Page 41: Color2Gray:  Salience-Preserving Color Removal

Original Color2Gray Color2Gray+Color

Page 42: Color2Gray:  Salience-Preserving Color Removal

Original Color2Gray Color2Gray+Color

Page 43: Color2Gray:  Salience-Preserving Color Removal

Original Photoshop Gray Color2Gray

Page 44: Color2Gray:  Salience-Preserving Color Removal

Original Color2Gray Color2Gray+Color

Page 45: Color2Gray:  Salience-Preserving Color Removal

Original Photoshop Gray Color2Gray

Page 46: Color2Gray:  Salience-Preserving Color Removal

Original Color2Gray Color2Gray+Color

Page 47: Color2Gray:  Salience-Preserving Color Removal

Photoshop Grayscale

Page 48: Color2Gray:  Salience-Preserving Color Removal

Photoshop Grayscale

Page 49: Color2Gray:  Salience-Preserving Color Removal

Photoshop Grayscale

Rasche et al.

Page 50: Color2Gray:  Salience-Preserving Color Removal

Photoshop Grayscale

Rasche et al.

Page 51: Color2Gray:  Salience-Preserving Color Removal

Photoshop Grayscale

Rasche et al.

Page 52: Color2Gray:  Salience-Preserving Color Removal

Parameter Parameter

= 5 = 15 = 25 = 35 = 45

= 55 = 65 = 75 = 85 = 95