Title: Color2Gray
1Color2Gray
- Imanol Gómez Rubio
- Computational Photography 11/Dec/2007
- TU-Berlin
2Index
- 1. Introduction
- 2. Converting to Grayscale
- 3. Color2Gray
- 3.1 Challenges
- 3.2 Algorithm
- 4. Future Work
- 5. Examples
- 6. references
Imanol Gómez Rubio Computational Photography
TU Berlin
31. Introduction
Impressionist Sunrise by Claude Monet
Imanol Gómez Rubio Computational Photography
TU Berlin
41. Int Isoluminant Colors
Color
Grayscale
Imanol Gómez Rubio Computational Photography
TU Berlin
51. Int Featureless Conversion
Color
Grayscale
Color2Gray
Imanol Gómez Rubio Computational Photography
TU Berlin
62. 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..
Imanol Gómez Rubio Computational Photography
TU Berlin
72. Conv In ColorSpace
Color
Non linear mapping
Simple linear mapping
Imanol Gómez Rubio Computational Photography
TU Berlin
82. Conv Related Work
- Previous Methods from Color2gray
- Based on changing to CIE Lab
Imanol Gómez Rubio Computational Photography
TU Berlin
92. Conv Iluminance channels
Problem can not be solved by simply switching
to a different space
CIE CAM 97
Photoshop LAB
CIE XYZ
YCrCb
Imanol Gómez Rubio Computational Photography
TU Berlin
103. Color2Gray
- This Method attempts to preserve the salient
features of the color image and the relative
differences. - Human Perception
Imanol Gómez Rubio Computational Photography
TU Berlin
113.1 Challenges 1
- Influence of Neighboring pixels
Imanol Gómez Rubio Computational Photography
TU Berlin
123.1 Challenges 2
- Dimension and size reduction
120, 120
100
0
-120, -120
Imanol Gómez Rubio Computational Photography
TU Berlin
133.1 Challenges 3
- Many Color2Gray Solutions
Original
. . .
Imanol Gómez Rubio Computational Photography
TU Berlin
143.2 Algorithm Overview
- Convert to Perceptually Uniform Space
- CIE Lab
- Initialize image, g, with L channel
- For every pixel
- Compute Luminance distance
- Compute Chrominance distance
- Adjust g to incorporate both luminance and
chrominance differences
?ij
Imanol Gómez Rubio Computational Photography
TU Berlin
153.2 Algorithm Parameters
Radius of neighboring pixels
????
????
Max chrominance offset
????
Map chromatic difference to increases or
decreases in luminance values
Imanol Gómez Rubio Computational Photography
TU Berlin
163.2 Algorithm ?
Color
? 9
Full Neighborhood
Imanol Gómez Rubio Computational Photography
TU Berlin
173.2 Algorithm ?
?? 5
?? 15
?? 25
?? 35
?? 45
?? 55
?? 65
?? 75
?? 85
?? 95
Imanol Gómez Rubio Computational Photography
TU Berlin
183.2 Algorithm ?
Imanol Gómez Rubio Computational Photography
TU Berlin
193.2 Algorithm combining Chrominance and Luminance
(Luminance)
?Lij
if ?Lij gt ?Cij
?ij??
?Cij
(Chrominance)?
Imanol Gómez Rubio Computational Photography
TU Berlin
203.2 Algorithm combining Chrominance and Luminance
?Lij
if ?Lij gt crunch(?Cij)?
??????ij??
crunch(?Cij)?
Imanol Gómez Rubio Computational Photography
TU Berlin
213.2 Algorithm combining Chrominance and Luminance
?Lij
if ?Lij gt crunch(?Cij)?
??????ij??
if ?Cij . ?? 0
crunch(?Cij)?
otherwise
crunch(-?Cij)?
v? (cos ?, sin ?)?
Imanol Gómez Rubio Computational Photography
TU Berlin
223.2 Algorithm Optimization
- min ? ? ( (gi - gj) - ?i,j ??
i?
ji-?
i
Imanol Gómez Rubio Computational Photography
TU Berlin
234. Future Work
- Smarter
- Remove need to specify ?
- New optimization function designed to match both
signed and unsigned difference terms - Image complexity measures
Imanol Gómez Rubio Computational Photography
TU Berlin
245. Examples
Color
Photoshop
Color2gray
Imanol Gómez Rubio Computational Photography
TU Berlin
255. Examples
Color
Color2gray
Photoshop
Imanol Gómez Rubio Computational Photography
TU Berlin
265. Examples
Color
Color2gray
Photoshop
Imanol Gómez Rubio Computational Photography
TU Berlin
276. References
- http//www.color2gray.info
- Volk, C., 2000. Adobe Photoshop Tip of the Week
Tutorial. - http//www.carlvolk.com/photoshop21.htm.
- Rasche, K., Geist, R., and Westall, J. 2005.
Detail preserving reproduction of color images
for monochromats and dichromats. IEEE Comput.
Graph. Appl. 25, 3. - http//www.google.com
- http//www.en.wikipedia.org/wiki/Lab_color_space
- http//scien.stanford.edu/class/psych221/projects/
98/ciecam/Description.html - http//scidok.sulb.uni-saarland.de/volltexte/2007/
1201/pdf/Dissertation_37_Mant_Rafa_2006.pdf - And several more pages talking about this topic
Imanol Gómez Rubio Computational Photography
TU Berlin
28THANK YOU
Color
THANK YOU
Color2Gray
Imanol Gómez Rubio Computational Photography
TU Berlin