Color2Gray: Salience-Preserving Color Removal
Color2Gray: Salience-Preserving Color Removal
Amy Gooch
Sven Olsen
Jack Tumblin
Bruce Gooch
New Algorithm
Color
Grayscale
Problem
QuickTime™ and a
Sorenson Video 3 decompressor
are needed to see this picture.
Isoluminant Colors
Color 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…..
Traditional Methods:
Luminance Channels
Axis
e
i n anc
m
Lu
Principal Component
Analysis (PCA)
Luminance
Axis
Problem with PCA
Worst case:
Isoluminant Colorwheel
Non-linear mapping
Contemporaneous Research
• Dimensionality Reduction
– From tristimulus values to single channel
Loss of information
Color Illusion by
Lotto and Purves
http://www.lottolab.org
Challenge 1:
Influence of neighboring pixels
Challenge 2:
Dimension and Size Reduction
120, 120
100
-120, -120
Challenge 3:
Many Color2Gray Solutions
Original
.
.
.
Algorithm Intuition
color2gray
For first pixel
Look
at C
1 2
L1 L
+ 1 LL22
.. L1 + L2 + 2,1
i = 1, j = 2 .
luminance For Nth pixel
Look
at C
L11 L2L+2 2,1
L1 L2
Algorithm Overview
• Convert to Perceptually Uniform Space
– CIE L*a*b*
• Initialize image, g, with L channel
• For every pixel
– Compute Luminance distance
ij
– Compute Chrominance distance
Optimization:
i+
min (g - g ) -
i
i j i,j
j=i-
Parameters
= 300o
= 10
= 49o
= 10
: Neighborhood Size
= 16 = entire image
: Chromatic variation maps
to luminance variation
crunch(x) = * tanh(x/)
=5 = 10 = 25
Perceptual Distance
C2
-a* +a*
C1 Color
Space
+b*
Color C1,2
Difference v = (cos , sin )
Space
+
- v
-a* +a*
+
-
-b*
sign(||Ci,j||) = sign(Ci,j . v)
= 45
= 225
Photoshop Grayscale
= 135 = 45
= 0
Grayscale
How to Combine
Chrominance and Luminance
120, 120
100
0
crunch(x) = * tanh(x/) -120, -120
How to Combine
Chrominance and Luminance
.
.
.
Grayscale
Color2Grey Algorithm
Optimization:
i+
min i j=i- (g - g ) -
i j i,j
• Smarter
– Remove need to specify
• New optimization function designed to match both signed
and unsigned difference terms
– Image complexity measures
• Animations/Video
Validate "Salience Preserving"
Photoshop Grayscale
Rasche et al.
Photoshop Grayscale
Rasche et al.
Photoshop Grayscale
Parameter