SlideShare a Scribd company logo
1 of 14
Chapter 4
color in ImageandVideo
Kumkumo K. @DDU IoT
Color Science
light is an electromagnetic wave and that its color is characterized by the
wavelength of the wave.
Color is produced by the absorption of selected wavelengths of light by an object.
 Objects can be thought of as absorbing all colors except the colors of their
appearance which are reflected back.
 Visible light is an electromagnetic wave in the range 400--700
nm.
.
2
 Most light we see is not one wavelength, it's a combination of
many wavelengths. Kumkumo K. @DDU IoT
3
The Eye and Color Sensation
 Our perception of color arises from the composition of light - the energy
spectrum of photons - which enter the eye.
 The eye works like a camera, with the lens focusing an image onto
the retina (upside, down and left-right reversed).
 The retina on the inner surface of the back of the eye contains photosensitive cells.
 These cells contain pigments which absorb visible light.
 The retina consists of an array of rods and cones.
 The rods contain the elements that are sensitive to light amounts.
 Rods are not sensitive to color.
Color Science
Kumkumo K. @DDU IoT
4 Cones and Color
For higher light levels, the cones produce a signal.
Because of their differing pigments, the three kinds of
cones are most sensitive to red (R), green (G), and blue
(B) light.
Red cones: responds to red light
Green cones: respond to green light
Blue cones: responds to blue light
Color Science
Kumkumo K. @DDU IoT
5
 The cones provide humans with vision during the daylight and are
believed to be separated into three types, where each type is more
sensitive to a particular wavelength
 The color signal to the brain comes from the response of the 3 cones
to the spectra being observed. That is, the signal consists of 3
numbers:
 A color can be specified as the sum of three colors. So colors form a 3
dimensional vector space.
Color Science
Kumkumo K. @DDU IoT
Color Spaces
 Color space specifies how color information is represented.
 It is also called color model.
 Color space described in a three-dimensional graph.
 There are different ways of representing color. Some of these are:
RGB Color Space
 RGB stands for Red, Green, Blue.
 RGB color space expresses/defines color as a mixture of three primary
colors:
 All other colors are produced by varying the intensity of these three
primaries and mixing the colors. It is used self-luminous devices such as
TV, monitor, camera, and scanner.
6
Kumkumo K. @DDU IoT
RGB Color Spaces
 Color images can be described with three components, commonly Red,
Green, and Blue.
 It combines (adds) the three components with varying intensity to make all
other colors.
 Absence of all (RGB)(zero values for all the components) create black.
 The presence of the (RGB) colors form white.
 Grey is any value where R=G=B, thus it requires all three (RGB) signals to
produce a "black and white" picture. In other words, a "black and white"
picture must be computed.
 Pure black (0,0,0)
 Pure white (255,255,255)
 RGB colors are called additive colors since they add together the way light
adds to make colors, and is a natural color space to use with video displays.
7
Kumkumo K. @DDU IoT
CMY color space
 Three primary colors, cyan (C), magenta (M), and yellow (Y), are used to
reproduce all colors.
 (CMY) are complementary colors of RGB.
 They can be used as Subtractive Primaries.
 The three colors together absorb all the light that attacks it, appearing black
(as contrasted to RGB where the three colors together made white).
 "Nothing" on the paper is white (as contrasted to RGB where nothing was
black). These are called the subtractive or "paint" colors.
 A color model used with printers and other peripherals.
 In practice, it is difficult to have the exact mix of the three colors to perfectly
absorb all light and thus produce a black color.
 CMYK color
 Sometimes, an alternative CMYK model (K stands for Black) is used in color
printings
 (e.g., to produce darker black than simply mixing CMY)
8
Kumkumo K. @DDU IoT
9
Color Models for Images
RGB Additive Model
 CRT displays have (RGB) color
which produce a combination of
wavelengths when animated with
electrons
 A color image is a 2-D array of
(R,G,B) integer triplets. These
triplets encode how much the
corresponding phosphor should be
excited in devices such as a monitor.
CMY Subtractive Model
 CMY are complementary colors of
RGB.
 CMY model is mostly used in
printing devices where the color
pigments on the paper absorb certain
colors (e.g., no red light is reflected
from cyan ink).
Kumkumo K. @DDU IoT
10
Color Models for Video
YUV Model
 Human perception is more sensitive to luminance (brightness) than chrominance
(color). Therefore, instead of separating colors, one can separate the brightness
info. from the color info.
 Y is luminance
 Chrominance is defined as the difference between a color and a reference white
at the same luminance. It can be represented by U and V -- the color differences.
U = B - Y
V = R - Y
 Eye is most sensitive to luminance (Y) than the chrominance (U,V) values.
 YUV uses properties of the human eye to prioritize information. Y is the
black and white (luminance) image, U and V are the color difference
(chrominance) images.
Used in PAL, 5.5 MHz is allocated to Y, 1.8 MHz each to U and V
Kumkumo K. @DDU IoT
11
YIQ Model
 Although U and V nicely define the color differences, they do not align with
the desired human perceptual color sensitivities. Hence, I and Q are used
instead.
I = 0.74(R - Y) - 0.27(B - Y) = 0.596R - 0.275G - 0.321B
Q = 0.48(R - Y) + 0.41(B - Y) = 0.212R - 0.523G + 0.311B
 YIQ is used in NTSC color TV broadcasting, it is downward compatible with
B/W TV where only Y is used.
 Eye is most sensitive to Y, next to I, next to Q. In NTSC broadcast TV, 4.2
MHz is allocated to Y, 1.5 MHz to I, 0.55 MHz to Q.
Color Models for Video
Kumkumo K. @DDU IoT
12
Color Models for Video (…Contd)
YCbCr Color Model
 The YCbCr model is closely related to the YUV, it is a scaled and shifted
YUV.
Cb = ((B - Y)/ 2) + 0.5
Cr = ((R - Y) / 1.6) + 0.5
 The chrominance values in YCbCr are always in the range of 0 to 1.
 YCbCr is used in JPEG and MPEG.
Kumkumo K. @DDU IoT
13 Summary: Color
 Color images are encoded as triplets of values.
 RGB is an additive color model that is used for light-emitting devices, e.g., CRT
displays. CMY is a subtractive model that is used often for printers
 Sometimes, an alternative CMYK model (K stands for Black) is used in color
printing (e.g., to produce darker black than simply mixing CMY).
 Two common color models in imaging are RGB and CMY, two common color
models in video are YUV and YIQ.
 YUV uses properties of the human eye to prioritize information. Y is the black
and white (luminance) image, U and V are the color difference (chrominance)
images. YIQ uses similar idea.
Kumkumo K. @DDU IoT
Thanks
14

More Related Content

Similar to chapter 4.pptx

Introduction to Color Science for display engineer
Introduction to Color Science for display engineerIntroduction to Color Science for display engineer
Introduction to Color Science for display engineerBrian Kim, PhD
 
"Color" Art and Science Exhibit Label Text
"Color" Art and Science Exhibit Label Text"Color" Art and Science Exhibit Label Text
"Color" Art and Science Exhibit Label TextNathan Baughman
 
Color image processing
Color image processingColor image processing
Color image processingrmsurya
 
introduction to colors in images and videos
introduction to colors in images and videosintroduction to colors in images and videos
introduction to colors in images and videoswasrse
 
Color models in Digitel image processing
Color models in Digitel image processingColor models in Digitel image processing
Color models in Digitel image processingAryan Shivhare
 
WEB I - 08 - Digital Media
WEB I - 08 - Digital MediaWEB I - 08 - Digital Media
WEB I - 08 - Digital MediaRandy Connolly
 
Color fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingColor fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingAmna
 
Project report_DTRL_subrat
Project report_DTRL_subratProject report_DTRL_subrat
Project report_DTRL_subratSubrat Prasad
 
Question bank for students.pdf
Question bank for students.pdfQuestion bank for students.pdf
Question bank for students.pdfNehaVerma258827
 
Lec-11_RGB and CMY color Model- complete.pptx
Lec-11_RGB and CMY color Model- complete.pptxLec-11_RGB and CMY color Model- complete.pptx
Lec-11_RGB and CMY color Model- complete.pptxabhinavkar36
 
A primer for colour computer vision
A primer for colour computer visionA primer for colour computer vision
A primer for colour computer visionpotaters
 

Similar to chapter 4.pptx (20)

lecture3 color representation in computer graphics(Computer graphics tutorials)
lecture3 color representation in computer graphics(Computer graphics tutorials)lecture3 color representation in computer graphics(Computer graphics tutorials)
lecture3 color representation in computer graphics(Computer graphics tutorials)
 
Introduction to Color Science for display engineer
Introduction to Color Science for display engineerIntroduction to Color Science for display engineer
Introduction to Color Science for display engineer
 
"Color" Art and Science Exhibit Label Text
"Color" Art and Science Exhibit Label Text"Color" Art and Science Exhibit Label Text
"Color" Art and Science Exhibit Label Text
 
ch1ip.ppt
ch1ip.pptch1ip.ppt
ch1ip.ppt
 
MM3.ppt
MM3.pptMM3.ppt
MM3.ppt
 
Color image processing
Color image processingColor image processing
Color image processing
 
introduction to colors in images and videos
introduction to colors in images and videosintroduction to colors in images and videos
introduction to colors in images and videos
 
About Color
About ColorAbout Color
About Color
 
Color models in Digitel image processing
Color models in Digitel image processingColor models in Digitel image processing
Color models in Digitel image processing
 
WEB I - 08 - Digital Media
WEB I - 08 - Digital MediaWEB I - 08 - Digital Media
WEB I - 08 - Digital Media
 
Color fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingColor fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image Processing
 
Chapter2 DIP
Chapter2 DIP Chapter2 DIP
Chapter2 DIP
 
Color_Spaces.pptx
Color_Spaces.pptxColor_Spaces.pptx
Color_Spaces.pptx
 
Project report_DTRL_subrat
Project report_DTRL_subratProject report_DTRL_subrat
Project report_DTRL_subrat
 
Question bank for students.pdf
Question bank for students.pdfQuestion bank for students.pdf
Question bank for students.pdf
 
3º Unit 1 Color
3º Unit 1 Color3º Unit 1 Color
3º Unit 1 Color
 
Lec-11_RGB and CMY color Model- complete.pptx
Lec-11_RGB and CMY color Model- complete.pptxLec-11_RGB and CMY color Model- complete.pptx
Lec-11_RGB and CMY color Model- complete.pptx
 
A primer for colour computer vision
A primer for colour computer visionA primer for colour computer vision
A primer for colour computer vision
 
Image processing report
Image processing reportImage processing report
Image processing report
 
Image processing tatorial
Image processing tatorialImage processing tatorial
Image processing tatorial
 

More from KUMKUMOKUSSIA

2_ProgrammingOnAndroidDevice.pdf
2_ProgrammingOnAndroidDevice.pdf2_ProgrammingOnAndroidDevice.pdf
2_ProgrammingOnAndroidDevice.pdfKUMKUMOKUSSIA
 
Advanced_Networking_Principles_and_Protocols_Lecture_3_part2.pptx
Advanced_Networking_Principles_and_Protocols_Lecture_3_part2.pptxAdvanced_Networking_Principles_and_Protocols_Lecture_3_part2.pptx
Advanced_Networking_Principles_and_Protocols_Lecture_3_part2.pptxKUMKUMOKUSSIA
 
Massage oriented communication.pptx
Massage oriented communication.pptxMassage oriented communication.pptx
Massage oriented communication.pptxKUMKUMOKUSSIA
 
Chapter 1 android.pdf
Chapter 1 android.pdfChapter 1 android.pdf
Chapter 1 android.pdfKUMKUMOKUSSIA
 
Software Project Management
Software Project ManagementSoftware Project Management
Software Project ManagementKUMKUMOKUSSIA
 

More from KUMKUMOKUSSIA (9)

2_ProgrammingOnAndroidDevice.pdf
2_ProgrammingOnAndroidDevice.pdf2_ProgrammingOnAndroidDevice.pdf
2_ProgrammingOnAndroidDevice.pdf
 
Advanced_Networking_Principles_and_Protocols_Lecture_3_part2.pptx
Advanced_Networking_Principles_and_Protocols_Lecture_3_part2.pptxAdvanced_Networking_Principles_and_Protocols_Lecture_3_part2.pptx
Advanced_Networking_Principles_and_Protocols_Lecture_3_part2.pptx
 
Quiz.pptx
Quiz.pptxQuiz.pptx
Quiz.pptx
 
Massage oriented communication.pptx
Massage oriented communication.pptxMassage oriented communication.pptx
Massage oriented communication.pptx
 
3Requirements.ppt
3Requirements.ppt3Requirements.ppt
3Requirements.ppt
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
Chapter 1 android.pdf
Chapter 1 android.pdfChapter 1 android.pdf
Chapter 1 android.pdf
 
Multimedia Systems
Multimedia SystemsMultimedia Systems
Multimedia Systems
 
Software Project Management
Software Project ManagementSoftware Project Management
Software Project Management
 

Recently uploaded

Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 

Recently uploaded (20)

Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 

chapter 4.pptx

  • 1. Chapter 4 color in ImageandVideo Kumkumo K. @DDU IoT
  • 2. Color Science light is an electromagnetic wave and that its color is characterized by the wavelength of the wave. Color is produced by the absorption of selected wavelengths of light by an object.  Objects can be thought of as absorbing all colors except the colors of their appearance which are reflected back.  Visible light is an electromagnetic wave in the range 400--700 nm. . 2  Most light we see is not one wavelength, it's a combination of many wavelengths. Kumkumo K. @DDU IoT
  • 3. 3 The Eye and Color Sensation  Our perception of color arises from the composition of light - the energy spectrum of photons - which enter the eye.  The eye works like a camera, with the lens focusing an image onto the retina (upside, down and left-right reversed).  The retina on the inner surface of the back of the eye contains photosensitive cells.  These cells contain pigments which absorb visible light.  The retina consists of an array of rods and cones.  The rods contain the elements that are sensitive to light amounts.  Rods are not sensitive to color. Color Science Kumkumo K. @DDU IoT
  • 4. 4 Cones and Color For higher light levels, the cones produce a signal. Because of their differing pigments, the three kinds of cones are most sensitive to red (R), green (G), and blue (B) light. Red cones: responds to red light Green cones: respond to green light Blue cones: responds to blue light Color Science Kumkumo K. @DDU IoT
  • 5. 5  The cones provide humans with vision during the daylight and are believed to be separated into three types, where each type is more sensitive to a particular wavelength  The color signal to the brain comes from the response of the 3 cones to the spectra being observed. That is, the signal consists of 3 numbers:  A color can be specified as the sum of three colors. So colors form a 3 dimensional vector space. Color Science Kumkumo K. @DDU IoT
  • 6. Color Spaces  Color space specifies how color information is represented.  It is also called color model.  Color space described in a three-dimensional graph.  There are different ways of representing color. Some of these are: RGB Color Space  RGB stands for Red, Green, Blue.  RGB color space expresses/defines color as a mixture of three primary colors:  All other colors are produced by varying the intensity of these three primaries and mixing the colors. It is used self-luminous devices such as TV, monitor, camera, and scanner. 6 Kumkumo K. @DDU IoT
  • 7. RGB Color Spaces  Color images can be described with three components, commonly Red, Green, and Blue.  It combines (adds) the three components with varying intensity to make all other colors.  Absence of all (RGB)(zero values for all the components) create black.  The presence of the (RGB) colors form white.  Grey is any value where R=G=B, thus it requires all three (RGB) signals to produce a "black and white" picture. In other words, a "black and white" picture must be computed.  Pure black (0,0,0)  Pure white (255,255,255)  RGB colors are called additive colors since they add together the way light adds to make colors, and is a natural color space to use with video displays. 7 Kumkumo K. @DDU IoT
  • 8. CMY color space  Three primary colors, cyan (C), magenta (M), and yellow (Y), are used to reproduce all colors.  (CMY) are complementary colors of RGB.  They can be used as Subtractive Primaries.  The three colors together absorb all the light that attacks it, appearing black (as contrasted to RGB where the three colors together made white).  "Nothing" on the paper is white (as contrasted to RGB where nothing was black). These are called the subtractive or "paint" colors.  A color model used with printers and other peripherals.  In practice, it is difficult to have the exact mix of the three colors to perfectly absorb all light and thus produce a black color.  CMYK color  Sometimes, an alternative CMYK model (K stands for Black) is used in color printings  (e.g., to produce darker black than simply mixing CMY) 8 Kumkumo K. @DDU IoT
  • 9. 9 Color Models for Images RGB Additive Model  CRT displays have (RGB) color which produce a combination of wavelengths when animated with electrons  A color image is a 2-D array of (R,G,B) integer triplets. These triplets encode how much the corresponding phosphor should be excited in devices such as a monitor. CMY Subtractive Model  CMY are complementary colors of RGB.  CMY model is mostly used in printing devices where the color pigments on the paper absorb certain colors (e.g., no red light is reflected from cyan ink). Kumkumo K. @DDU IoT
  • 10. 10 Color Models for Video YUV Model  Human perception is more sensitive to luminance (brightness) than chrominance (color). Therefore, instead of separating colors, one can separate the brightness info. from the color info.  Y is luminance  Chrominance is defined as the difference between a color and a reference white at the same luminance. It can be represented by U and V -- the color differences. U = B - Y V = R - Y  Eye is most sensitive to luminance (Y) than the chrominance (U,V) values.  YUV uses properties of the human eye to prioritize information. Y is the black and white (luminance) image, U and V are the color difference (chrominance) images. Used in PAL, 5.5 MHz is allocated to Y, 1.8 MHz each to U and V Kumkumo K. @DDU IoT
  • 11. 11 YIQ Model  Although U and V nicely define the color differences, they do not align with the desired human perceptual color sensitivities. Hence, I and Q are used instead. I = 0.74(R - Y) - 0.27(B - Y) = 0.596R - 0.275G - 0.321B Q = 0.48(R - Y) + 0.41(B - Y) = 0.212R - 0.523G + 0.311B  YIQ is used in NTSC color TV broadcasting, it is downward compatible with B/W TV where only Y is used.  Eye is most sensitive to Y, next to I, next to Q. In NTSC broadcast TV, 4.2 MHz is allocated to Y, 1.5 MHz to I, 0.55 MHz to Q. Color Models for Video Kumkumo K. @DDU IoT
  • 12. 12 Color Models for Video (…Contd) YCbCr Color Model  The YCbCr model is closely related to the YUV, it is a scaled and shifted YUV. Cb = ((B - Y)/ 2) + 0.5 Cr = ((R - Y) / 1.6) + 0.5  The chrominance values in YCbCr are always in the range of 0 to 1.  YCbCr is used in JPEG and MPEG. Kumkumo K. @DDU IoT
  • 13. 13 Summary: Color  Color images are encoded as triplets of values.  RGB is an additive color model that is used for light-emitting devices, e.g., CRT displays. CMY is a subtractive model that is used often for printers  Sometimes, an alternative CMYK model (K stands for Black) is used in color printing (e.g., to produce darker black than simply mixing CMY).  Two common color models in imaging are RGB and CMY, two common color models in video are YUV and YIQ.  YUV uses properties of the human eye to prioritize information. Y is the black and white (luminance) image, U and V are the color difference (chrominance) images. YIQ uses similar idea. Kumkumo K. @DDU IoT