Professional Documents
Culture Documents
Volker Krger
Chapter 2
Digital Color Images
Image Processing
What is Color
Lecture Sistemi intelligenti naturali ed articiali (SINA) from 15. Oct. 2010
Colors and the Human Visual System (HVS) Additive / Subtractive Color
Dr. Volker Krger Dept. of Robotics, Brain and Cognitive Sciences Italian Inst. of Technology
2.1
1 What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
RGB Color Space HIS Color Space YUV Color Space Why Different Color Spaces?
Pseudo Color
4 Concluding Remarks
2.2
What is Color
What is Color
Colors and the Human Visual System (HVS)
What is Color?
2.3
What is Color
nature of the light reected from an object! Green objects reect green light!
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
Pseudo Color
Concluding Remarks
2.4
Red, Green,Blue
R,G,B are called Primary Colors R,G,B are used in cameras R,G,B were chosen due to the structue of the human eye
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
2.5
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
2.6
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
2.7
Example
TV, Video Projectors, LCD Monitors
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
Example
Red paint lters all light except red! Yellow paint absorbs blue, but reects red and grean
2.8
What is Color
Colors and the Human Visual System (HVS)
2.9
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
2.10
RGB Color Space A single pixel consists of three components: [0, 255]. Each pixel is a vector.
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
Caution
Sometimes pixels are not stored as vectors but in Image Bands. First, the complete red-component is stored, then the complete green, then blue.
2.11
Example RGB
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
Original Image
Red Band
HIS Color Space YUV Color Space Why Different Color Spaces?
Green Band
Blue Band
2.12
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
RGB Color Space HIS Color Space YUV Color Space Why Different Color Spaces?
I=
R+G+B 3
1 3
2.13
Same Color,
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
2.14
Same Color,
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
different intensities
2.14
Same Color,
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
2.14
Same Color,
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
2.14
Same Color,
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
2.14
Same Color,
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
r=
2.14
Another way of separating color and intensity: HSI H =Hue, S =Saturation, I =intensity
intensity I : H and S may characterize a color: Chromatics
is the color attribute that describes a pure color Saturation relative purity
Pure colors are fully saturated. Not saturated is, e.g., pink (red+white).
2.15
2.16
HSI Color Space A single pixel consists of three components: [0, 255]. Each pixel is a vector.
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
Caution
Sometimes pixels are not stored as vectors but in Image Bands. First, the complete red-component is stored, then the complete green, then blue.
2.17
Example HSI
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
Original Image
Hue
RGB Color Space HIS Color Space YUV Color Space Why Different Color Spaces?
Saturation
Intensity
2.18
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
signals
We need a format that decouples grayscale and color: HSI Poor-mans HSI because it is much easier to compute
2.19
YUV Color Space A single pixel consists of three components: [0, 255]. Each pixel is a vector.
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
Caution
Sometimes pixels are not stored as vectors but in Image Bands. First, the complete red-component is stored, then the complete green, then blue.
2.20
Example YUV
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
Original Image
Y-band
RGB Color Space HIS Color Space YUV Color Space Why Different Color Spaces?
U-Band
V-Band
2.21
works like Human Visual System (HVS) difcult to decouble color from intensity
HSI Color space
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
a more physically motivated description of color decoubles color, intensity and saturity difcult to compute
YUV Color space
Simple to compute similar to HSI motivated by broadcasting technology saves memory through biological arguments hardly used in Computer Vision and Computer Graphics
2.22
What is Color
Colors and the Human Visual System (HVS)
2.23
camer or scanner
What is Color
Colors and the Human Visual System (HVS)
Example
2.24
Example
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
2.25
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
2.26
What to remember
colors?
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
Color Spaces RGB: Used in cameras and the HVS Normalized RGB: Decouples intensity and color: Used in Computer Vision HSI: Decouples intensity, hue and saturity: Used in CG and Computer Vision YUV: Used in commercial color TV
2.27
Exercises
Questions about the lecture? What was good about the lecture and what oculd have How many different 512 512 grayscale (8bit) images How many different colors exist for 24bit pixel? How many different 512 512 color (24bit) images exist? Questions Why can we use RGB to generate almost all pixel colors? What is the difference between Achromatic and Chromatic? What is the difference between Subtractive Color and Additive Color? Describe the four different color spaces (RGB, rg, HSI, YUV) What are their characteristics and where are they used? What is a pseudo color image? How can a Pseudo color image be generated from a gray value image?
What is Color
Colors and the Human Visual System (HVS) Additive / Subtractive Color
2.28