color and color space
TRANSCRIPT
-
7/30/2019 Color and Color Space
1/37
1
Color and Color Space
Presenter: Cheng-Jin Kuo
Advisor: Jian-Jiun Ding, Ph. D.Professor
Digital Image & Signal Processing LabGraduate Institute of Communication EngineeringNational Taiwan University, Taipei, Taiwan, ROC
1
-
7/30/2019 Color and Color Space
2/37
2
Outline Introduction
Additive Color Mixing
Subtractive Color Mixing
Newton Color Circle & Maxwell Triangle
System of Color Measurement Color Space
-
7/30/2019 Color and Color Space
3/37
3
1.Introduction Three Characteristics of Color:
hue
brightness: the luminance of the object
saturation: the blue sky
-
7/30/2019 Color and Color Space
4/37
4
1.Introduction Wavelength of the light
-
7/30/2019 Color and Color Space
5/37
5
2.Additive Color Mixing
The mixing oflight
Primary: Red, Green, Blue
The complementary color White means
-
7/30/2019 Color and Color Space
6/37
6
2.Subtractive Color Mixing
The mixing ofpigment
Primary: Cyan, Magenta, Yellow
The complementary color Why black?
-
7/30/2019 Color and Color Space
7/37
7
2.Subtractive Color Mixing Why?
Pigments absorb light
Thinking:
the Color Filters Question:
Yellow + Cyan=?
-
7/30/2019 Color and Color Space
8/37
8
3.Newton Color Circle Newton Color Circle
A tool to predictcolor mixing
hue :
saturation :
-
7/30/2019 Color and Color Space
9/37
9
3.Newton Color Circle Full saturated
Question:
How do we makea color having thesame saturationas Cyan does?
-
7/30/2019 Color and Color Space
10/37
10
4.Maxwell Triangle Connecting the GB
The negativecomponent of Red?
-
7/30/2019 Color and Color Space
11/37
11
4.Maxwell Triangle Spectral Locus
Spectral Color
Full saturated color
-
7/30/2019 Color and Color Space
12/37
12
5.The CIE System CIE 1931 XYZ system
One of the color spaces
The first mathematical defined colorspace
Three parameter:
X, Y, Z
or Y (brightness), x, y (chroma)
-
7/30/2019 Color and Color Space
13/37
13
5.The CIE System CIE Chromaticity
Diagram
Spectral Locus
Parameter x, y
-
7/30/2019 Color and Color Space
14/37
14
5.The CIE System How do we get the parameters
from a specified color or object?
The spectral power distribution ofthe illuminant:
spectral reflectance factor of the
object :
Matching function:
( )S
( )R
( )x ( )y ( )z
-
7/30/2019 Color and Color Space
15/37
15
5.The CIE System
( ) ( ) ( )u
l
X k x S R
( ) ( ) ( )u
l
Y k y S R
( ) ( ) ( )
u
l
Z k z S R
100
( ) ( )u
l
k
y S
-
7/30/2019 Color and Color Space
16/37
16
5.The CIE System
Y: the brightness
The chroma parameter x, y :
Xx
X Y Z
Yy
X Y Z
-
7/30/2019 Color and Color Space
17/37
17
6.Color Measurement System
Why do we order colors?
Color Order system
Trichromatic theory by Hermann vonHelmholtz
The concept of color space
So what are the three parameters?
-
7/30/2019 Color and Color Space
18/37
18
6.Color Measurement System
Color order systems:
Munsell Color System
Natural Color System(NCS)
-
7/30/2019 Color and Color Space
19/37
19
7.Munsell Color System
One of the Oldest color order systems
The three main parameters:
Munsell Hue (H) :
five primary:5R, 5Y, 5G, 5B, 5P
Munsell Value (V) :
the brightness scale from 0(black)~10 Munsell Chroma (C) :
from /0~/14
-
7/30/2019 Color and Color Space
20/37
20
7.Munsell Color System
The examples ofcolor expression:
5GY 8/2 :
Hue:5GY
Value:8
Chroma:2
-
7/30/2019 Color and Color Space
21/37
21
8.Natural Color System (NCS)
Six important value:
r, y, g, b, s (black), w (white)
Summing up the six values always get 100 Hue () :
Y90R : r=90%, y=10%
Blackness (s)
Chromaticness (c)
C=r + y + g + b
-
7/30/2019 Color and Color Space
22/37
22
8.Natural Color System (NCS)
Y
G R
G50Y Y50R
B50G R50B
Y20RY10R
Y90R
-
7/30/2019 Color and Color Space
23/37
23
8.Natural Color System (NCS)
If the color data is:10% whiteness
30% blackness30% yellowness30% redness
S=30, c=r+y=60=Y50R
3060-Y50R
-
7/30/2019 Color and Color Space
24/37
24
9.Color Space
Color Space:
RGB
YCbCr (YPbPr)
YUV
YIQ CMYK
A comparison of them
-
7/30/2019 Color and Color Space
25/37
25
9.Color Space
What is color space?
A 3D model used to define a specified
color
The difference between color spaces:
The choice of axes
-
7/30/2019 Color and Color Space
26/37
26
9.Color Space RGB
RGB:
The simplest color space
Axes: Red, green, blue
Advantages: simple
-
7/30/2019 Color and Color Space
27/37
27
9.Color Space YCbCr &YPbPr
YCbCr & YPbPr
Used for: digital video encoding, digital
camera
Axes:
Y: luma
Cb: blue chroma
Cr: red chroma
-
7/30/2019 Color and Color Space
28/37
28
9.Color Space YCbCr &YPbPr
Conversion from RGB: Y=0.299(R-G) + G + 0.114(B-G)
Cb=0.564(B-Y) Cr=0.713(R-Y)
The Matrix form:
0.299 0.587 0.114
0.168636 0.232932 0.064296
0.499813 0.418531 0.081282
Y R
Cb G
Cr B
-
7/30/2019 Color and Color Space
29/37
29
9.Color Space YCbCr &YPbPr
Why do we use the luma & chromachannel?
Advantage:
Bandwidth efficiency
-
7/30/2019 Color and Color Space
30/37
30
9.Color Space YUV
YUV
Used for: video encoding for some
standard such as NTSC, PAL, SECAM
Axes:
Y: luma
U: blue chroma
V: red chroma
-
7/30/2019 Color and Color Space
31/37
31
9.Color Space YUV
Conversion from RGB: Y=0.299R+0.587G+0.114B
U=0.436(B-Y)/(1-0.114) V=0.615(R-Y)/(1-0.299)
The Matrix form:
0.299 0.587 0.114
0.14713 0.28886 0.436
0.615 0.51499 0.10001
Y RU G
V B
-
7/30/2019 Color and Color Space
32/37
32
9.Color Space YIQ
YIQ
Used for: video encoding for some standard
such as NTSC Axes:
Y: luma
I: blue chroma
Q: red chroma I-Q channels are rotated from the U-V
channels in YUV
-
7/30/2019 Color and Color Space
33/37
33
9.Color Space YIQ
Conversion from RGB:
0.299 0.587 0.114
0.595716 0.274453 0.321263
0.211456 0.522591 0.311135
Y R
I G
Q B
-
7/30/2019 Color and Color Space
34/37
34
9.Color Space CMYK
Used for: printer printing
Use the subtractive color mixing
Axes:
Cyan
MagentaYellow
K: black
-
7/30/2019 Color and Color Space
35/37
35
9.Color Space CMYK
Conversion from RGB:
C = 255 -Y - 1.4021(Cr-128)
M = 255 - Y + 0.3441(Cb-128) + 0.7142(Cr-128)
Y = 255 - Y - 1.7718(Cb -128)
K = min (C, M, Y)
-
7/30/2019 Color and Color Space
36/37
36
9.Color Space Comparison
Color
space
Color
mixing
Primary
parameters
Used for Pros and
cons
RGB Additive Red,
Green, Blue
Easy but wasting
bandwidth
CMYK Subtractive Cyan, Magenta,
Yellow, Black
Printer Works in pigment
mixing
YCbCr
YPbPr
additive Y(luminance),
Cb(blue chroma),
Cr(red chroma)
Video encoding,
digital camera
Bandwidth efficient
YUV additive Y(luminance),U(blue chroma),
V(red chroma)
Video encodingfor NTSC, PAL,
SECAM
Bandwidth efficient
YIQ additive Y(luminance),
I(rotated from U),
Q(rotated from V)
Video encoding
for NTSC
Bandwidth efficient
-
7/30/2019 Color and Color Space
37/37
37
References
[1] R. G. Kuehni, Color Space and Its Divisions, WileyInter-Science, 2002
[2] P. Green, L.MacDonald, Colour Engineering, Wiley,2002
[3] R. W. G. Hunt, Measuring Colour, Ellis Horwood,1995
[4] H. J. Durrett, Color and The Computer, Academic,1987