SlideShare a Scribd company logo
1 of 30
COLOR FUNDAMENTALS
AND
COLOR MODELS
INTRODUCTION
Color is the aspect of things that is caused by differing qualities of light
being reflected or emitted by them.
The characteristics used to distinguish one color from another are:
 Hue – refers to primary and secondary colors (Yellow, Red, Blue, and Green)
 Brightness – refers to amount of intensity
 Saturation – the degree of purity of a hue.
COLOR IN IMAGE PROCESSING
Motivation to use colors in image processing:
Humans can perceive thousands of shades of color as opposed to only
about two dozen shades of gray
Color is a powerful descriptor that greatly simplifies object
segmentation and identification
COLOR IN IMAGE PROCESSING
Color image processing is divided into two major areas
Full-color processing – images are acquired and processed in full color
Pseudo-color processing – images are by nature grayscale and are
converted to color images for visualization purposes
COLOR FUNDAMENTALS
In 1666, Isaac Newton discovered
that when a beam of sunlight passes
through a glass prism, the emerging
beam of light is split into a spectrum
of colors ranging from violet at one
end to red at the other.
COLOR FUNDAMENTALS
Three basic quantities are used to describe the quality of a chromatic light
source:
 Radiance is the total amount of energy that flows from the light source -
measured in watts (W).
 Luminance gives a measure of the amount of energy an observer
perceives from a light source - measured in lumens (lm)
 Brightness is a subjective descriptor that is practically unmeasurable
CONTD…
Hue and saturation taken together are called chromaticity
A color may be characterized by its brightness and chromaticity.
The amounts of red, green and blue needed to form any color are called
the tristimulus values and are denoted, X,Y and Z.
A color is then specified by its trichromatic coefficients which means
x + y + z = 1
COLOR FUNDAMENTALS
CONTD…
COLOR FUNDAMENTALS
Primary colors of light
 red(R)
 green(G)
 blue(B)
Secondary colors of light
cyan(green + blue)
magenta(red + blue)
yellow(red + green)
CONTD…
Mixing the three primaries,
or a secondary with its
opposite primary color,
produces white light.
COLOR FUNDAMENTALS
CONTD…
Primary colors of pigment
 cyan(C)
 magenta(M)
 yellow(Y)
Secondary colors of pigment
 red(R)
 green(G)
 blue(B)
Mixing the three pigment
primaries, or a secondary
with its opposite primary
color, produces black.
COLOR MODELS
The color model aims to facilitate the specifications of colors in some
standard way.
In Digital Image Processing, commonly used models are:
RGB
CMY
CMYK
HSI
COLOR MODELS
RGB
Each color appears in its primary colors red,
green, and blue
Based on Cartesian coordinate system
All color values R, G and B have been
normalized in the range [0, 1]
We can represent each of R, G and B from 0
to 255
CONTD…
COLOR MODELS
RGB
Each RGB color image consists of three
component images, one for each primary
color
CONTD…
COLOR MODELS
RGB
The three images are combined to
produce color image
Number of bits used to represent each
pixel is referred to as pixel depth
24-bit image is often referred as full-
color image
CONTD…
COLOR MODELS
Applications of RGB
Used in the representation and
display of images in electronic
systems like computers and
televisions.
Used in conventional photography as
well.
Image scanner which scans images
and converts it to a digital image
mostly supports RGB color.
Used in web graphics.
CONTD…
CMY
This model is made of secondary colors
of light - Cyan, Magenta and Yellow
It is a subtractive model appropriate to
absorption of colors - white is at (0.0,
0.0, 0.0) and black is at (1.0, 1.0, 1.0)
Any CMY color when passed through
white light will not reflect the color from
which the combination is made.
COLOR MODELS
CONTD…
CMY Example
COLOR MODELS
CONTD…
C, M, Y components of an image
Relation between CMY and RGB
CMY coordinates are the complements of RGB values.
The conversion formula is
COLOR MODELS
CONTD…
Applications of CMY
It is used in color printing as it uses
colored inks.
It is used in most commercial printing like
magazines, books, etc.
COLOR MODELS
CONTD…
CMYK
CMYK color space is a variation on the CMY model
It adds black (Cyan, Magenta, Yellow, and blacK)
Closes the gap between theory and practice.
When equal components of cyan, magenta, and yellow inks are mixed, the
result is usually a dark brown, not black.
Adding black ink solves problem.
COLOR MODELS
CONTD…
CONTD…
CMYK Example
COLOR MODELS
CONTD…
HSI
Stands for Hue, Saturation, Intensity
Human perceptual description of colors
Decouples the intensity component from
the color carrying information (hue and
saturation)
Ideal tool for developing color image
processing algorithms
COLOR MODELS
CONTD…
COLOR MODELS
CONTD…
HUE SATURATION INTENSITY
Component that
describes a pure color
(pure yellow, orange or
red)
Component represents the
measure of the degree to
which color is mixed with
white color.
0 degree – Red
120 degree – Green
240 degree – Blue
60 degree – Yellow
300 degree – Magenta
Component refers
to grey level.
Range is [0, 1]
 0 means white
 1 means black
HSI Example
COLOR MODELS
CONTD…
HSI Components of full color image
HSI AND RGB
Hue, Saturation and Intensity values can be
obtained from the RGB color cube.
Angle from the red(R) axis gives the Hue
Length of the vector is the saturation
Position of the plane on the vertical axis gives
intensity
CONVERSION FROM RGB TO HSI
We can convert any RGB point to a corresponding point in the HSI model
by the geometrical formulas:
The hue H is given by where
The saturation S is given by
The intensity I is given by
CONVERSION FROM RGB TO HSI
CONVERSION FROM RGB TO HSI
HSI Components of
RGB Cube
CONVERSION FROM HSI TO RGB
Applicable equations for converting colors from HSI to RGB
depends on the value of H:
MANIPULATING HSI COMPONENT
IMAGES
Thank you!

More Related Content

What's hot

What's hot (20)

Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filter
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Color Models
Color ModelsColor Models
Color Models
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image Processing
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
Color models
Color modelsColor models
Color models
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
 
Color Models Computer Graphics
Color Models Computer GraphicsColor Models Computer Graphics
Color Models Computer Graphics
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
 
Psuedo color
Psuedo colorPsuedo color
Psuedo color
 
Image compression in digital image processing
Image compression in digital image processingImage compression in digital image processing
Image compression in digital image processing
 
Segmentation
SegmentationSegmentation
Segmentation
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processing
 

Similar to Color fundamentals and color models - Digital 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
wasrse
 
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.pptx
Color Image Processing.pptxColor Image Processing.pptx
Color Image Processing.pptx
Antu Chowdhury
 

Similar to Color fundamentals and color models - Digital Image Processing (20)

Color image processing.ppt
Color image processing.pptColor image processing.ppt
Color image processing.ppt
 
Color image processing
Color image processingColor image processing
Color image processing
 
10 color image processing
10 color image processing10 color image processing
10 color image processing
 
Color image processing ppt
Color image processing pptColor image processing ppt
Color image processing ppt
 
Colormodels
ColormodelsColormodels
Colormodels
 
About Color
About ColorAbout Color
About Color
 
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
 
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 models
Color modelsColor models
Color models
 
Color models in Digitel image processing
Color models in Digitel image processingColor models in Digitel image processing
Color models in Digitel image processing
 
Color_Spaces.pptx
Color_Spaces.pptxColor_Spaces.pptx
Color_Spaces.pptx
 
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)
 
Question bank for students.pdf
Question bank for students.pdfQuestion bank for students.pdf
Question bank for students.pdf
 
Color image processing
Color image processingColor image processing
Color image processing
 
Color-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptxColor-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptx
 
Color and color models
Color and color modelsColor and color models
Color and color models
 
colorimage
colorimagecolorimage
colorimage
 
Color Image Processing.pptx
Color Image Processing.pptxColor Image Processing.pptx
Color Image Processing.pptx
 
Colour image processing(fip)
Colour image processing(fip)Colour image processing(fip)
Colour image processing(fip)
 
image-pro.ppt
image-pro.pptimage-pro.ppt
image-pro.ppt
 

More from Amna

More from Amna (7)

Handicrafts of pakistan
Handicrafts of pakistanHandicrafts of pakistan
Handicrafts of pakistan
 
Clap switch
Clap switchClap switch
Clap switch
 
Should colleges be responsible for the jobs of students upon graduation
Should colleges be responsible for the jobs of students upon graduationShould colleges be responsible for the jobs of students upon graduation
Should colleges be responsible for the jobs of students upon graduation
 
Porsche
PorschePorsche
Porsche
 
Challenges and future directions of software technology: secure software deve...
Challenges and future directions of software technology: secure software deve...Challenges and future directions of software technology: secure software deve...
Challenges and future directions of software technology: secure software deve...
 
Morality in ummayad and abbasid time period
Morality in ummayad and abbasid time periodMorality in ummayad and abbasid time period
Morality in ummayad and abbasid time period
 
Ransomware attack
Ransomware attackRansomware attack
Ransomware attack
 

Recently uploaded

Jet reorientation in central galaxies of clusters and groups: insights from V...
Jet reorientation in central galaxies of clusters and groups: insights from V...Jet reorientation in central galaxies of clusters and groups: insights from V...
Jet reorientation in central galaxies of clusters and groups: insights from V...
Sérgio Sacani
 
Exomoons & Exorings with the Habitable Worlds Observatory I: On the Detection...
Exomoons & Exorings with the Habitable Worlds Observatory I: On the Detection...Exomoons & Exorings with the Habitable Worlds Observatory I: On the Detection...
Exomoons & Exorings with the Habitable Worlds Observatory I: On the Detection...
Sérgio Sacani
 
The importance of continents, oceans and plate tectonics for the evolution of...
The importance of continents, oceans and plate tectonics for the evolution of...The importance of continents, oceans and plate tectonics for the evolution of...
The importance of continents, oceans and plate tectonics for the evolution of...
Sérgio Sacani
 

Recently uploaded (20)

In-pond Race way systems for Aquaculture (IPRS).pptx
In-pond Race way systems for Aquaculture (IPRS).pptxIn-pond Race way systems for Aquaculture (IPRS).pptx
In-pond Race way systems for Aquaculture (IPRS).pptx
 
GBSN - Microbiology (Unit 7) Microbiology in Everyday Life
GBSN - Microbiology (Unit 7) Microbiology in Everyday LifeGBSN - Microbiology (Unit 7) Microbiology in Everyday Life
GBSN - Microbiology (Unit 7) Microbiology in Everyday Life
 
NuGOweek 2024 programme final FLYER short.pdf
NuGOweek 2024 programme final FLYER short.pdfNuGOweek 2024 programme final FLYER short.pdf
NuGOweek 2024 programme final FLYER short.pdf
 
family therapy psychotherapy types .pdf
family therapy psychotherapy types  .pdffamily therapy psychotherapy types  .pdf
family therapy psychotherapy types .pdf
 
Jet reorientation in central galaxies of clusters and groups: insights from V...
Jet reorientation in central galaxies of clusters and groups: insights from V...Jet reorientation in central galaxies of clusters and groups: insights from V...
Jet reorientation in central galaxies of clusters and groups: insights from V...
 
Erythropoiesis- Dr.E. Muralinath-C Kalyan
Erythropoiesis- Dr.E. Muralinath-C KalyanErythropoiesis- Dr.E. Muralinath-C Kalyan
Erythropoiesis- Dr.E. Muralinath-C Kalyan
 
Film Coated Tablet and Film Coating raw materials.pdf
Film Coated Tablet and Film Coating raw materials.pdfFilm Coated Tablet and Film Coating raw materials.pdf
Film Coated Tablet and Film Coating raw materials.pdf
 
GBSN - Microbiology Lab (Compound Microscope)
GBSN - Microbiology Lab (Compound Microscope)GBSN - Microbiology Lab (Compound Microscope)
GBSN - Microbiology Lab (Compound Microscope)
 
Alternative method of dissolution in-vitro in-vivo correlation and dissolutio...
Alternative method of dissolution in-vitro in-vivo correlation and dissolutio...Alternative method of dissolution in-vitro in-vivo correlation and dissolutio...
Alternative method of dissolution in-vitro in-vivo correlation and dissolutio...
 
A Giant Impact Origin for the First Subduction on Earth
A Giant Impact Origin for the First Subduction on EarthA Giant Impact Origin for the First Subduction on Earth
A Giant Impact Origin for the First Subduction on Earth
 
Hemoglobin metabolism: C Kalyan & E. Muralinath
Hemoglobin metabolism: C Kalyan & E. MuralinathHemoglobin metabolism: C Kalyan & E. Muralinath
Hemoglobin metabolism: C Kalyan & E. Muralinath
 
ERTHROPOIESIS: Dr. E. Muralinath & R. Gnana Lahari
ERTHROPOIESIS: Dr. E. Muralinath & R. Gnana LahariERTHROPOIESIS: Dr. E. Muralinath & R. Gnana Lahari
ERTHROPOIESIS: Dr. E. Muralinath & R. Gnana Lahari
 
Manganese‐RichSandstonesasanIndicatorofAncientOxic LakeWaterConditionsinGale...
Manganese‐RichSandstonesasanIndicatorofAncientOxic  LakeWaterConditionsinGale...Manganese‐RichSandstonesasanIndicatorofAncientOxic  LakeWaterConditionsinGale...
Manganese‐RichSandstonesasanIndicatorofAncientOxic LakeWaterConditionsinGale...
 
Land use land cover change analysis and detection of its drivers using geospa...
Land use land cover change analysis and detection of its drivers using geospa...Land use land cover change analysis and detection of its drivers using geospa...
Land use land cover change analysis and detection of its drivers using geospa...
 
GBSN - Microbiology (Unit 6) Human and Microbial interaction
GBSN - Microbiology (Unit 6) Human and Microbial interactionGBSN - Microbiology (Unit 6) Human and Microbial interaction
GBSN - Microbiology (Unit 6) Human and Microbial interaction
 
Microbial bio Synthesis of nanoparticles.pptx
Microbial bio Synthesis of nanoparticles.pptxMicrobial bio Synthesis of nanoparticles.pptx
Microbial bio Synthesis of nanoparticles.pptx
 
Exomoons & Exorings with the Habitable Worlds Observatory I: On the Detection...
Exomoons & Exorings with the Habitable Worlds Observatory I: On the Detection...Exomoons & Exorings with the Habitable Worlds Observatory I: On the Detection...
Exomoons & Exorings with the Habitable Worlds Observatory I: On the Detection...
 
Lubrication System in forced feed system
Lubrication System in forced feed systemLubrication System in forced feed system
Lubrication System in forced feed system
 
Cellular Communication and regulation of communication mechanisms to sing the...
Cellular Communication and regulation of communication mechanisms to sing the...Cellular Communication and regulation of communication mechanisms to sing the...
Cellular Communication and regulation of communication mechanisms to sing the...
 
The importance of continents, oceans and plate tectonics for the evolution of...
The importance of continents, oceans and plate tectonics for the evolution of...The importance of continents, oceans and plate tectonics for the evolution of...
The importance of continents, oceans and plate tectonics for the evolution of...
 

Color fundamentals and color models - Digital Image Processing

  • 2. INTRODUCTION Color is the aspect of things that is caused by differing qualities of light being reflected or emitted by them. The characteristics used to distinguish one color from another are:  Hue – refers to primary and secondary colors (Yellow, Red, Blue, and Green)  Brightness – refers to amount of intensity  Saturation – the degree of purity of a hue.
  • 3. COLOR IN IMAGE PROCESSING Motivation to use colors in image processing: Humans can perceive thousands of shades of color as opposed to only about two dozen shades of gray Color is a powerful descriptor that greatly simplifies object segmentation and identification
  • 4. COLOR IN IMAGE PROCESSING Color image processing is divided into two major areas Full-color processing – images are acquired and processed in full color Pseudo-color processing – images are by nature grayscale and are converted to color images for visualization purposes
  • 5. COLOR FUNDAMENTALS In 1666, Isaac Newton discovered that when a beam of sunlight passes through a glass prism, the emerging beam of light is split into a spectrum of colors ranging from violet at one end to red at the other.
  • 6. COLOR FUNDAMENTALS Three basic quantities are used to describe the quality of a chromatic light source:  Radiance is the total amount of energy that flows from the light source - measured in watts (W).  Luminance gives a measure of the amount of energy an observer perceives from a light source - measured in lumens (lm)  Brightness is a subjective descriptor that is practically unmeasurable CONTD…
  • 7. Hue and saturation taken together are called chromaticity A color may be characterized by its brightness and chromaticity. The amounts of red, green and blue needed to form any color are called the tristimulus values and are denoted, X,Y and Z. A color is then specified by its trichromatic coefficients which means x + y + z = 1 COLOR FUNDAMENTALS CONTD…
  • 8. COLOR FUNDAMENTALS Primary colors of light  red(R)  green(G)  blue(B) Secondary colors of light cyan(green + blue) magenta(red + blue) yellow(red + green) CONTD… Mixing the three primaries, or a secondary with its opposite primary color, produces white light.
  • 9. COLOR FUNDAMENTALS CONTD… Primary colors of pigment  cyan(C)  magenta(M)  yellow(Y) Secondary colors of pigment  red(R)  green(G)  blue(B) Mixing the three pigment primaries, or a secondary with its opposite primary color, produces black.
  • 10. COLOR MODELS The color model aims to facilitate the specifications of colors in some standard way. In Digital Image Processing, commonly used models are: RGB CMY CMYK HSI
  • 11. COLOR MODELS RGB Each color appears in its primary colors red, green, and blue Based on Cartesian coordinate system All color values R, G and B have been normalized in the range [0, 1] We can represent each of R, G and B from 0 to 255 CONTD…
  • 12. COLOR MODELS RGB Each RGB color image consists of three component images, one for each primary color CONTD…
  • 13. COLOR MODELS RGB The three images are combined to produce color image Number of bits used to represent each pixel is referred to as pixel depth 24-bit image is often referred as full- color image CONTD…
  • 14. COLOR MODELS Applications of RGB Used in the representation and display of images in electronic systems like computers and televisions. Used in conventional photography as well. Image scanner which scans images and converts it to a digital image mostly supports RGB color. Used in web graphics. CONTD…
  • 15. CMY This model is made of secondary colors of light - Cyan, Magenta and Yellow It is a subtractive model appropriate to absorption of colors - white is at (0.0, 0.0, 0.0) and black is at (1.0, 1.0, 1.0) Any CMY color when passed through white light will not reflect the color from which the combination is made. COLOR MODELS CONTD…
  • 16. CMY Example COLOR MODELS CONTD… C, M, Y components of an image
  • 17. Relation between CMY and RGB CMY coordinates are the complements of RGB values. The conversion formula is COLOR MODELS CONTD…
  • 18. Applications of CMY It is used in color printing as it uses colored inks. It is used in most commercial printing like magazines, books, etc. COLOR MODELS CONTD…
  • 19. CMYK CMYK color space is a variation on the CMY model It adds black (Cyan, Magenta, Yellow, and blacK) Closes the gap between theory and practice. When equal components of cyan, magenta, and yellow inks are mixed, the result is usually a dark brown, not black. Adding black ink solves problem. COLOR MODELS CONTD… CONTD…
  • 21. HSI Stands for Hue, Saturation, Intensity Human perceptual description of colors Decouples the intensity component from the color carrying information (hue and saturation) Ideal tool for developing color image processing algorithms COLOR MODELS CONTD…
  • 22. COLOR MODELS CONTD… HUE SATURATION INTENSITY Component that describes a pure color (pure yellow, orange or red) Component represents the measure of the degree to which color is mixed with white color. 0 degree – Red 120 degree – Green 240 degree – Blue 60 degree – Yellow 300 degree – Magenta Component refers to grey level. Range is [0, 1]  0 means white  1 means black
  • 23. HSI Example COLOR MODELS CONTD… HSI Components of full color image
  • 24. HSI AND RGB Hue, Saturation and Intensity values can be obtained from the RGB color cube. Angle from the red(R) axis gives the Hue Length of the vector is the saturation Position of the plane on the vertical axis gives intensity
  • 25. CONVERSION FROM RGB TO HSI We can convert any RGB point to a corresponding point in the HSI model by the geometrical formulas: The hue H is given by where The saturation S is given by The intensity I is given by
  • 27. CONVERSION FROM RGB TO HSI HSI Components of RGB Cube
  • 28. CONVERSION FROM HSI TO RGB Applicable equations for converting colors from HSI to RGB depends on the value of H: