SlideShare a Scribd company logo
Computer Graphics
Color Models
Represented By: Haitham Abdel-atty Abdullah
Donia Gamal El-din
Pre-Master 2014-2015
Supervised by: Prof. Taha El-Areef
1
2
Properties of Light
Color Models
Standard primaries and the chromaticity diagram
The RGB color model
The YIQ and related color model
The HSV color model
The HSL Color model
The CMY and CMYK Color models
Color Models Applications
Dithering VS Half-toning
3
Properties of Light
Each frequency value within the visible region of the electromagnetic spectrum
corresponds to a distinct spectral color.
FIGURE-1
4
• When white light is incident on an opaque object , some
frequencies are reflected and some are absorbed.
• The combination of frequencies present in the reflected in the
reflected light determines the color of the object that we
see.(Dominant frequency or Hue)
Properties of Light
5
Period (T)
Properties of Light
6
Characteristics of Color
1. Dominant Frequency (Hue)
The color we see (red, green,
purple).
2. Brightness
The total light energy, how bright is the color (How bright
are the lights illuminating the object?)
3. Purity (Saturation)
Purity describes how close a light appears to be to a pure
spectral color, such as pink is less saturated than red.
Chromaticity refers to the two properties (purity & hue)
together.
7
•A color model is an abstract mathematical model
describing the way colors can be represented as tuples of
numbers, typically as three or four values or color
components. [Wikipedia]
•Any method for explaining the properties or behavior of
color within some particular context is called a Color
Model.[Hearn, Baker ,computer graphics with OpenGL]
Color Model
8
Color Model
Primary Colors
Sets of colors that can be combined to make a useful range of
colors
Color Gamut
Set of all colors that we can produce from the primary colors.
Complementary Colors
Pairs of colors which, when combined in the right proportions,
produce white.
Example, in the RGB model: red & cyan , green & magenta , blue
& yellow.
•No finite set of real primary colors can be combined to produce all possible visible
colors.
•However, given a set of three primary colors, we can characterize any fourth color
using color-mixing processes.
9
Shades , Tints & Tones
• A shade is produced by “dimming ” a hue.[Adding black].
Dark Blue = pure blue + black
• A tint is produced by "lightening" a hue. [Adding white].
Pastel red = pure red + white
• Tone refers to the effects of reducing the "colorfulness" of a hue.
[adding gray] or [adding black & white].
Thus, shading takes a hue toward black, tinting takes a hue
towards white, and tones cover the range between.
Color Model
10
Color Model
Additive color
Uses light to display color. Mixing begins with black and ends with white; as more
color is added, the result is lighter and tends to white. Used for computer displays
Example: The RGB colors are light primaries and colors are created with light.
A subtractive color
Uses ink to display color. Mixing means that one begins with white and ends with
black; as one adds color, the result gets darker and tends to black. Used for printed
material
It is called 'subtractive' because its wavelength is less than sum of the wavelengths
of its constituting colors.
Example: The CMYK color system is the color system used for printing.
11
Standard Primaries & the chromaticity diagram
•This is an international standard for primary colors
established in 1931.
• It allows all other colors to be defined as weighted sum of the
three "primary" colors.
• There are no real three colors that can be combined to give
all possible colors. Therefore the Three standard primaries are
selected [imaginary numbers].
•They are defined mathematically with positive color-matching
functions that specify the amount of each primary needed to
describe any spectral color.
12
Standard Primaries & the chromaticity diagram
Color-matching functions
A color in the
vicinity of
500nm can be
matched only
but subtracting
an amount of
red light from a
combination of
blue and green
lights.
13
Standard Primaries & the chromaticity diagram
14
Standard Primaries & the chromaticity diagram
To define a color in CIE model, provide weights for
the X, Y and Z primaries, just as you would for an
RGB display (e.g. color = xX + yY + zZ).
• X, Y and Z form a three dimensional color volume.
• We can ignore the dimension of luminance by
normalizing with total light intensity, x+y+z = 1.
CIE chromaticity diagram.
15
Standard Primaries & the chromaticity diagram
Gamut Color
Complementary Color Dominant Wavelength
&
Purity
RGB Model
16
•The red, green, and blue (RGB) color space is
widely used throughout computer graphics.
•Additive Color Model.
•Unit Cube defined on R, G & B axes.
•The Origin (0,0,0) represents black and the
diagonally opposite vertex (1,1,1) is White.
•Vertices of the cube on the axes represent
primary colors, and the remaining vertices are
the complementary color points for each of the
primary colors.
•Shades of gray are represented along the
main diagonal.
RGB Model
17
Each color point within the unit cube can be represented as
w weighted vector sum of the primary colors, using unit
vectors R,G and B.
C(λ) =(R,G,B) = RR +GG+ BB
Where R,G, and B are assigned values in the range from 0
to 1.0.
For example , the magenta vertex is obtained by adding the
maximum red and blue values to produce : (1,0,1)
RGB Model
18
YIQ model
•YIQ model is used for US TV broadcast.
•This model was designed to separate chrominance (I and
Q) from luminance (Y).
•This was a requirement in the early days of color television
when black-and-white sets still were expected to pick up
and display what were originally color pictures
•The Y-channel contains luminance information (sufficient
for black-and-white television sets) while the I and Q
channels carried the color information.
19
•A color television set would take these three channels, Y, I, and Q, and map
the information back to R, G, and B levels for display on a screen.
•The advantage of this model is that more bandwidth can be assigned to the
Y-component (luminance) because the human visual system is more
sensitive to changes in luminance than to changes in hue or saturation
YIQ model
Convert From RGB To YIQ Convert From YIQ To RGB
20
HSV Model
Every color is represented by three components Hue ( H ),
Saturation ( S ) and Value ( V )
21
HSV Model
The Hue (H) of a color refers to which pure color it resembles.
All tints, tones and shades of red have the same hue. (simply
the color we see)
22
HSV Model
The Saturation (S) of a color describes how white the color is.
Or the amount of white added to the color. A pure red is fully
saturated (S=1) means no white added
23
HSV Model
The Value (V) of a color, also called its lightness, describes
how dark the color is. A value of 0 is black, with increasing
lightness moving away from black.
24
HSL Model
• Double-cone Representation
Parameters are :
• Hue (H)
• Lightness (L)
• Saturation (S)
25
HSL Model
• Vertical Axis is called Lightness(L).
• At L=0 we have black , and at L=1 we have white
• Grayscale values are along the L axis
• The pure colors lie at the axis where L=0.5 and S=1.0
26
•Subtractive Color Model.
•Stands for cyan-magenta-yellow.
•Used for hardcopy devices (ex. Printers).
•A printed color that looks red absorbs
the other two components G and B and
reflects R.
•Thus the C-M-Y coordinates are just the
complements of the R-G-B coordinates.
CMY and CMYK Model
27
In additive color models such as RGB, white is the “additive”
combination of all primary colored lights, while black is the absence
of light.
In the CMYK model, it is the opposite: white is the natural color of the
paper or other background, while black results from a full
combination of colored inks.
CMY and CMYK Model
RGB To CMY CMY To RGB
28
CMYK Color Model
Although cyan, magenta and yellow inks might be expected be sufficient for
color printing, most actual color printing uses black ink in addition.
This is partly because a mixture of the first three inks may not yield a black
that is neutral enough, or dark enough, but also because the use of black
spares the use of the more expensive colored inks, and also reduces the total
amount of ink used, thus speeding drying times.
K used instead of equal amounts of CMY
• called under color removal
• richer black
• less ink deposited on paper – dries more quickly
• First approximation – nonlinearities must be
accommodated:
K = min(C, M, Y)
C’ = C – K
M’ = M – K
Y’ = Y – K
CMY and CMYK Model
Color Model Application Area Color Model Application Area
RGB
- Computer graphics
- Image processing
- Image Analysis
- Image Storage
CMY(K) Printing
HSV, HSL
- Human visual perception
- Computer graphics processing
- Computer Vision
- Image Analysis
- Design image
- Human vision
- Image editing software
- Video editor
YIQ
- TV broadcasting
- Video system
Color Models Applications
30
• A technique used in newspaper printing
Only two intensities are possible, blob of ink and no blob of
ink. But, the size of the blob can be varied
Halftone
31
Dithering
The process of approximating colors you don't have by
mixing colors you do have.
32
Half toning is the reproduction of grayscale images using dots
but with varying size.
Typical Application Laser printer.
If a monitor can't show a certain color, dithering approximates
the color by placing close together pixels in colors that the
computer can display.
Typical Application Web graphic designers often limit their
images to 256 colors and use dithering to imply other colors.
Halt-Toning Vs. Dithering
33
References
• Hearn, Baker and Carithers,
Computer Graphics with OpenGL
• https://www.siggraph.org/education/m
aterials/HyperGraph/color/colorcm.ht
m
• www.wikipedia.com
• http://www.cs.sun.ac.za/~lvzijl/courses
/rw778/grafika/OpenGLtuts/Big/graphi
csnotes008.html
34
35

More Related Content

What's hot

HSL & HSV colour models
HSL & HSV colour modelsHSL & HSV colour models
HSL & HSV colour models
Vishnu RC Vijayan
 
Halftoning in Computer Graphics
Halftoning  in Computer GraphicsHalftoning  in Computer Graphics
Halftoning in Computer Graphics
University of Potsdam
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
kiruthiammu
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
lavanya marichamy
 
Polygon filling algorithm
Polygon filling algorithmPolygon filling algorithm
Polygon filling algorithm
Aparna Joshi
 
Lect 06
Lect 06 Lect 06
Lect 06
Moe Moe Myint
 
Color model
Color modelColor model
Attributes of output primitives( curve attributes & area fill attributes)
Attributes of output primitives( curve attributes & area fill attributes)Attributes of output primitives( curve attributes & area fill attributes)
Attributes of output primitives( curve attributes & area fill attributes)
shalinikarunakaran1
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
A B Shinde
 
Raster scan system & random scan system
Raster scan system & random scan systemRaster scan system & random scan system
Raster scan system & random scan system
shalinikarunakaran1
 
Frame buffer
Frame bufferFrame buffer
Frame buffer
Aparna Joshi
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
Shami Al Rahad
 
Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processing
asodariyabhavesh
 
fractals
fractalsfractals
Illumination Models & Shading
Illumination Models & ShadingIllumination Models & Shading
Color image processing
Color image processingColor image processing
Color image processing
Madhuri Sachane
 
Color models in Digitel image processing
Color models in Digitel image processingColor models in Digitel image processing
Color models in Digitel image processing
Aryan Shivhare
 
Attributes of output primitive(line attributes)
Attributes of output primitive(line attributes)Attributes of output primitive(line attributes)
Attributes of output primitive(line attributes)
shalinikarunakaran1
 
Attributes of Output Primitives
Attributes of Output PrimitivesAttributes of Output Primitives
Attributes of Output Primitives
Renita Santhmayora
 
Multimedia color in image and video
Multimedia color in image and videoMultimedia color in image and video
Multimedia color in image and video
Mazin Alwaaly
 

What's hot (20)

HSL & HSV colour models
HSL & HSV colour modelsHSL & HSV colour models
HSL & HSV colour models
 
Halftoning in Computer Graphics
Halftoning  in Computer GraphicsHalftoning  in Computer Graphics
Halftoning in Computer Graphics
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
 
Polygon filling algorithm
Polygon filling algorithmPolygon filling algorithm
Polygon filling algorithm
 
Lect 06
Lect 06 Lect 06
Lect 06
 
Color model
Color modelColor model
Color model
 
Attributes of output primitives( curve attributes & area fill attributes)
Attributes of output primitives( curve attributes & area fill attributes)Attributes of output primitives( curve attributes & area fill attributes)
Attributes of output primitives( curve attributes & area fill attributes)
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 
Raster scan system & random scan system
Raster scan system & random scan systemRaster scan system & random scan system
Raster scan system & random scan system
 
Frame buffer
Frame bufferFrame buffer
Frame buffer
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
 
Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processing
 
fractals
fractalsfractals
fractals
 
Illumination Models & Shading
Illumination Models & ShadingIllumination Models & Shading
Illumination Models & Shading
 
Color image processing
Color image processingColor image processing
Color image processing
 
Color models in Digitel image processing
Color models in Digitel image processingColor models in Digitel image processing
Color models in Digitel image processing
 
Attributes of output primitive(line attributes)
Attributes of output primitive(line attributes)Attributes of output primitive(line attributes)
Attributes of output primitive(line attributes)
 
Attributes of Output Primitives
Attributes of Output PrimitivesAttributes of Output Primitives
Attributes of Output Primitives
 
Multimedia color in image and video
Multimedia color in image and videoMultimedia color in image and video
Multimedia color in image and video
 

Viewers also liked

Colour models
Colour modelsColour models
Colour models
BCET
 
10 color image processing
10 color image processing10 color image processing
10 color image processing
babak danyal
 
Lecture 3b: Decision Trees (1 part)
Lecture 3b: Decision Trees (1 part)Lecture 3b: Decision Trees (1 part)
Lecture 3b: Decision Trees (1 part)
Marina Santini
 
Digital image processing question bank
Digital image processing question bankDigital image processing question bank
Digital image processing question bankYaseen Albakry
 
Lecture 4 Decision Trees (2): Entropy, Information Gain, Gain Ratio
Lecture 4 Decision Trees (2): Entropy, Information Gain, Gain RatioLecture 4 Decision Trees (2): Entropy, Information Gain, Gain Ratio
Lecture 4 Decision Trees (2): Entropy, Information Gain, Gain Ratio
Marina Santini
 
Digital image processing img smoothning
Digital image processing img smoothningDigital image processing img smoothning
Digital image processing img smoothningVinay Gupta
 

Viewers also liked (6)

Colour models
Colour modelsColour models
Colour models
 
10 color image processing
10 color image processing10 color image processing
10 color image processing
 
Lecture 3b: Decision Trees (1 part)
Lecture 3b: Decision Trees (1 part)Lecture 3b: Decision Trees (1 part)
Lecture 3b: Decision Trees (1 part)
 
Digital image processing question bank
Digital image processing question bankDigital image processing question bank
Digital image processing question bank
 
Lecture 4 Decision Trees (2): Entropy, Information Gain, Gain Ratio
Lecture 4 Decision Trees (2): Entropy, Information Gain, Gain RatioLecture 4 Decision Trees (2): Entropy, Information Gain, Gain Ratio
Lecture 4 Decision Trees (2): Entropy, Information Gain, Gain Ratio
 
Digital image processing img smoothning
Digital image processing img smoothningDigital image processing img smoothning
Digital image processing img smoothning
 

Similar to Color models

Colormodels
ColormodelsColormodels
Colormodels
Bhavik Vashi
 
Color models
Color modelsColor models
Color models
Rakesh Pandey
 
Displays and color system in computer graphics(Computer graphics tutorials)
Displays and color system in computer graphics(Computer graphics tutorials)Displays and color system in computer graphics(Computer graphics tutorials)
Displays and color system in computer graphics(Computer graphics tutorials)
Daroko blog(www.professionalbloggertricks.com)
 
Colour image processing(fip)
Colour image processing(fip)Colour image processing(fip)
Colour image processing(fip)
Vijay Kumar
 
Lecnoninecolorspacemodelindigitalimageprocess
LecnoninecolorspacemodelindigitalimageprocessLecnoninecolorspacemodelindigitalimageprocess
Lecnoninecolorspacemodelindigitalimageprocess
IrsaAamir
 
Color image processing ppt
Color image processing pptColor image processing ppt
Color image processing ppt
Mvidhya9
 
Color Models.pptx
Color Models.pptxColor Models.pptx
Color Models.pptx
ssuser9203ca
 
"Color model" Slide for Computer Graphics Presentation
"Color model" Slide for Computer Graphics Presentation"Color model" Slide for Computer Graphics Presentation
"Color model" Slide for Computer Graphics Presentation
Ashek Shanto
 
Computer science Color image processing.pdf
Computer science Color image processing.pdfComputer science Color image processing.pdf
Computer science Color image processing.pdf
SFASEEHM
 
Color Image Processing.pptx
Color Image Processing.pptxColor Image Processing.pptx
Color Image Processing.pptx
Antu Chowdhury
 
Color-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptxColor-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptx
EveCarolino
 
ch1ip.ppt
ch1ip.pptch1ip.ppt
ch1ip.ppt
ShabanamTamboli1
 
Color_Spaces.pptx
Color_Spaces.pptxColor_Spaces.pptx
Color_Spaces.pptx
JosRamnIglesiasGamar
 
Color image processing
Color image processingColor image processing
Color image processing
rmsurya
 
Rgb and Cmy color model
Rgb and Cmy color modelRgb and Cmy color model
Rgb and Cmy color model
Sajid Hasan
 
image-pro.ppt
image-pro.pptimage-pro.ppt
image-pro.ppt
RANJITHA58
 
Color
ColorColor
Color
FNian
 
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)
Daroko blog(www.professionalbloggertricks.com)
 
Color image processing.ppt
Color image processing.pptColor image processing.ppt
Color image processing.ppt
Papajuvvanapudi
 
RGB & CMYK Color Model
RGB & CMYK Color ModelRGB & CMYK Color Model
RGB & CMYK Color Model
AsifShahariar1
 

Similar to Color models (20)

Colormodels
ColormodelsColormodels
Colormodels
 
Color models
Color modelsColor models
Color models
 
Displays and color system in computer graphics(Computer graphics tutorials)
Displays and color system in computer graphics(Computer graphics tutorials)Displays and color system in computer graphics(Computer graphics tutorials)
Displays and color system in computer graphics(Computer graphics tutorials)
 
Colour image processing(fip)
Colour image processing(fip)Colour image processing(fip)
Colour image processing(fip)
 
Lecnoninecolorspacemodelindigitalimageprocess
LecnoninecolorspacemodelindigitalimageprocessLecnoninecolorspacemodelindigitalimageprocess
Lecnoninecolorspacemodelindigitalimageprocess
 
Color image processing ppt
Color image processing pptColor image processing ppt
Color image processing ppt
 
Color Models.pptx
Color Models.pptxColor Models.pptx
Color Models.pptx
 
"Color model" Slide for Computer Graphics Presentation
"Color model" Slide for Computer Graphics Presentation"Color model" Slide for Computer Graphics Presentation
"Color model" Slide for Computer Graphics Presentation
 
Computer science Color image processing.pdf
Computer science Color image processing.pdfComputer science Color image processing.pdf
Computer science Color image processing.pdf
 
Color Image Processing.pptx
Color Image Processing.pptxColor Image Processing.pptx
Color Image Processing.pptx
 
Color-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptxColor-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptx
 
ch1ip.ppt
ch1ip.pptch1ip.ppt
ch1ip.ppt
 
Color_Spaces.pptx
Color_Spaces.pptxColor_Spaces.pptx
Color_Spaces.pptx
 
Color image processing
Color image processingColor image processing
Color image processing
 
Rgb and Cmy color model
Rgb and Cmy color modelRgb and Cmy color model
Rgb and Cmy color model
 
image-pro.ppt
image-pro.pptimage-pro.ppt
image-pro.ppt
 
Color
ColorColor
Color
 
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)
 
Color image processing.ppt
Color image processing.pptColor image processing.ppt
Color image processing.ppt
 
RGB & CMYK Color Model
RGB & CMYK Color ModelRGB & CMYK Color Model
RGB & CMYK Color Model
 

More from Haitham Ahmed

Time series
Time seriesTime series
Time series
Haitham Ahmed
 
Hidden markov model
Hidden markov modelHidden markov model
Hidden markov model
Haitham Ahmed
 
Software cost estimation
Software cost estimationSoftware cost estimation
Software cost estimation
Haitham Ahmed
 
Image denoising
Image denoisingImage denoising
Image denoising
Haitham Ahmed
 
Comparison of image segmentation
Comparison of image segmentationComparison of image segmentation
Comparison of image segmentation
Haitham Ahmed
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems
Haitham Ahmed
 

More from Haitham Ahmed (6)

Time series
Time seriesTime series
Time series
 
Hidden markov model
Hidden markov modelHidden markov model
Hidden markov model
 
Software cost estimation
Software cost estimationSoftware cost estimation
Software cost estimation
 
Image denoising
Image denoisingImage denoising
Image denoising
 
Comparison of image segmentation
Comparison of image segmentationComparison of image segmentation
Comparison of image segmentation
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems
 

Recently uploaded

Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 

Recently uploaded (20)

Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 

Color models

  • 1. Computer Graphics Color Models Represented By: Haitham Abdel-atty Abdullah Donia Gamal El-din Pre-Master 2014-2015 Supervised by: Prof. Taha El-Areef 1
  • 2. 2 Properties of Light Color Models Standard primaries and the chromaticity diagram The RGB color model The YIQ and related color model The HSV color model The HSL Color model The CMY and CMYK Color models Color Models Applications Dithering VS Half-toning
  • 3. 3 Properties of Light Each frequency value within the visible region of the electromagnetic spectrum corresponds to a distinct spectral color. FIGURE-1
  • 4. 4 • When white light is incident on an opaque object , some frequencies are reflected and some are absorbed. • The combination of frequencies present in the reflected in the reflected light determines the color of the object that we see.(Dominant frequency or Hue) Properties of Light
  • 6. 6 Characteristics of Color 1. Dominant Frequency (Hue) The color we see (red, green, purple). 2. Brightness The total light energy, how bright is the color (How bright are the lights illuminating the object?) 3. Purity (Saturation) Purity describes how close a light appears to be to a pure spectral color, such as pink is less saturated than red. Chromaticity refers to the two properties (purity & hue) together.
  • 7. 7 •A color model is an abstract mathematical model describing the way colors can be represented as tuples of numbers, typically as three or four values or color components. [Wikipedia] •Any method for explaining the properties or behavior of color within some particular context is called a Color Model.[Hearn, Baker ,computer graphics with OpenGL] Color Model
  • 8. 8 Color Model Primary Colors Sets of colors that can be combined to make a useful range of colors Color Gamut Set of all colors that we can produce from the primary colors. Complementary Colors Pairs of colors which, when combined in the right proportions, produce white. Example, in the RGB model: red & cyan , green & magenta , blue & yellow. •No finite set of real primary colors can be combined to produce all possible visible colors. •However, given a set of three primary colors, we can characterize any fourth color using color-mixing processes.
  • 9. 9 Shades , Tints & Tones • A shade is produced by “dimming ” a hue.[Adding black]. Dark Blue = pure blue + black • A tint is produced by "lightening" a hue. [Adding white]. Pastel red = pure red + white • Tone refers to the effects of reducing the "colorfulness" of a hue. [adding gray] or [adding black & white]. Thus, shading takes a hue toward black, tinting takes a hue towards white, and tones cover the range between. Color Model
  • 10. 10 Color Model Additive color Uses light to display color. Mixing begins with black and ends with white; as more color is added, the result is lighter and tends to white. Used for computer displays Example: The RGB colors are light primaries and colors are created with light. A subtractive color Uses ink to display color. Mixing means that one begins with white and ends with black; as one adds color, the result gets darker and tends to black. Used for printed material It is called 'subtractive' because its wavelength is less than sum of the wavelengths of its constituting colors. Example: The CMYK color system is the color system used for printing.
  • 11. 11 Standard Primaries & the chromaticity diagram •This is an international standard for primary colors established in 1931. • It allows all other colors to be defined as weighted sum of the three "primary" colors. • There are no real three colors that can be combined to give all possible colors. Therefore the Three standard primaries are selected [imaginary numbers]. •They are defined mathematically with positive color-matching functions that specify the amount of each primary needed to describe any spectral color.
  • 12. 12 Standard Primaries & the chromaticity diagram Color-matching functions A color in the vicinity of 500nm can be matched only but subtracting an amount of red light from a combination of blue and green lights.
  • 13. 13 Standard Primaries & the chromaticity diagram
  • 14. 14 Standard Primaries & the chromaticity diagram To define a color in CIE model, provide weights for the X, Y and Z primaries, just as you would for an RGB display (e.g. color = xX + yY + zZ). • X, Y and Z form a three dimensional color volume. • We can ignore the dimension of luminance by normalizing with total light intensity, x+y+z = 1. CIE chromaticity diagram.
  • 15. 15 Standard Primaries & the chromaticity diagram Gamut Color Complementary Color Dominant Wavelength & Purity RGB Model
  • 16. 16 •The red, green, and blue (RGB) color space is widely used throughout computer graphics. •Additive Color Model. •Unit Cube defined on R, G & B axes. •The Origin (0,0,0) represents black and the diagonally opposite vertex (1,1,1) is White. •Vertices of the cube on the axes represent primary colors, and the remaining vertices are the complementary color points for each of the primary colors. •Shades of gray are represented along the main diagonal. RGB Model
  • 17. 17 Each color point within the unit cube can be represented as w weighted vector sum of the primary colors, using unit vectors R,G and B. C(λ) =(R,G,B) = RR +GG+ BB Where R,G, and B are assigned values in the range from 0 to 1.0. For example , the magenta vertex is obtained by adding the maximum red and blue values to produce : (1,0,1) RGB Model
  • 18. 18 YIQ model •YIQ model is used for US TV broadcast. •This model was designed to separate chrominance (I and Q) from luminance (Y). •This was a requirement in the early days of color television when black-and-white sets still were expected to pick up and display what were originally color pictures •The Y-channel contains luminance information (sufficient for black-and-white television sets) while the I and Q channels carried the color information.
  • 19. 19 •A color television set would take these three channels, Y, I, and Q, and map the information back to R, G, and B levels for display on a screen. •The advantage of this model is that more bandwidth can be assigned to the Y-component (luminance) because the human visual system is more sensitive to changes in luminance than to changes in hue or saturation YIQ model Convert From RGB To YIQ Convert From YIQ To RGB
  • 20. 20 HSV Model Every color is represented by three components Hue ( H ), Saturation ( S ) and Value ( V )
  • 21. 21 HSV Model The Hue (H) of a color refers to which pure color it resembles. All tints, tones and shades of red have the same hue. (simply the color we see)
  • 22. 22 HSV Model The Saturation (S) of a color describes how white the color is. Or the amount of white added to the color. A pure red is fully saturated (S=1) means no white added
  • 23. 23 HSV Model The Value (V) of a color, also called its lightness, describes how dark the color is. A value of 0 is black, with increasing lightness moving away from black.
  • 24. 24 HSL Model • Double-cone Representation Parameters are : • Hue (H) • Lightness (L) • Saturation (S)
  • 25. 25 HSL Model • Vertical Axis is called Lightness(L). • At L=0 we have black , and at L=1 we have white • Grayscale values are along the L axis • The pure colors lie at the axis where L=0.5 and S=1.0
  • 26. 26 •Subtractive Color Model. •Stands for cyan-magenta-yellow. •Used for hardcopy devices (ex. Printers). •A printed color that looks red absorbs the other two components G and B and reflects R. •Thus the C-M-Y coordinates are just the complements of the R-G-B coordinates. CMY and CMYK Model
  • 27. 27 In additive color models such as RGB, white is the “additive” combination of all primary colored lights, while black is the absence of light. In the CMYK model, it is the opposite: white is the natural color of the paper or other background, while black results from a full combination of colored inks. CMY and CMYK Model RGB To CMY CMY To RGB
  • 28. 28 CMYK Color Model Although cyan, magenta and yellow inks might be expected be sufficient for color printing, most actual color printing uses black ink in addition. This is partly because a mixture of the first three inks may not yield a black that is neutral enough, or dark enough, but also because the use of black spares the use of the more expensive colored inks, and also reduces the total amount of ink used, thus speeding drying times. K used instead of equal amounts of CMY • called under color removal • richer black • less ink deposited on paper – dries more quickly • First approximation – nonlinearities must be accommodated: K = min(C, M, Y) C’ = C – K M’ = M – K Y’ = Y – K CMY and CMYK Model
  • 29. Color Model Application Area Color Model Application Area RGB - Computer graphics - Image processing - Image Analysis - Image Storage CMY(K) Printing HSV, HSL - Human visual perception - Computer graphics processing - Computer Vision - Image Analysis - Design image - Human vision - Image editing software - Video editor YIQ - TV broadcasting - Video system Color Models Applications
  • 30. 30 • A technique used in newspaper printing Only two intensities are possible, blob of ink and no blob of ink. But, the size of the blob can be varied Halftone
  • 31. 31 Dithering The process of approximating colors you don't have by mixing colors you do have.
  • 32. 32 Half toning is the reproduction of grayscale images using dots but with varying size. Typical Application Laser printer. If a monitor can't show a certain color, dithering approximates the color by placing close together pixels in colors that the computer can display. Typical Application Web graphic designers often limit their images to 256 colors and use dithering to imply other colors. Halt-Toning Vs. Dithering
  • 33. 33 References • Hearn, Baker and Carithers, Computer Graphics with OpenGL • https://www.siggraph.org/education/m aterials/HyperGraph/color/colorcm.ht m • www.wikipedia.com • http://www.cs.sun.ac.za/~lvzijl/courses /rw778/grafika/OpenGLtuts/Big/graphi csnotes008.html
  • 34. 34
  • 35. 35