SlideShare a Scribd company logo
1 of 5
Download to read offline
Color Images
We have seen that photographs and images can be in grayscale or in color. We utilize color in
many contexts to convey information.
The retina is a light-sensitive layer at the back of the eye that covers about 65 percent of its
interior surface. The human eye contains two different kinds of photosensitive receptor cells
called rods and cones in the retina that convert incident light energy into signals that are carried
to the brain by the optic nerve.
(http://hyperphysics.phy-astr.gsu.edu/hbase/vision/eye.html)
Rods are used for night vision and are mostly color independent. Cones mediate color vision.
There are three types of cones. The wavelength of visible light is between 400 nm and 700 nm.
(http://hyperphysics.phy-astr.gsu.edu/hbase/vision/colcon.html)
The tristimulus theory states that any color can be specified by a weighted combination of three
(primary) colors. Red, green and blue are one set of additive primary colors. Additive colors are
defined as the three colors of light that when mixed can produce white.
Color depth in digital representations
The total number of bits over all primary colors used to represent a color is called the color
depth. When we refer to a 24-bit color depth with a tristimulus color model we mean each color
is represented with 8 bits and hence can have one of 256 different intensities for each color. The
total number of colors is 2^24; approximately 16.7 million colors.
Indexed color
Not all images need to have 16 million different colors. The image itself can have a limited
number of colors or an approximation could be tolerated in exchange for file size. Indexed color
uses a table to store the colors and stores the index of a color in the table instead of the full color
for each pixel. For example, a 1024x1024 image with 256 colors would need 3x1024x1024 = 3
Megabytes using a 24-bit color representation and only need 3x256+1024x1024 ~= 1 Megabyte
with an indexed color format; almost 3 fold. The figure below shows the palette and images in
two formats.
The figures below show the 256-element palettes (left) corresponding to the indexed color images
(right) obtained from the original color images (middle).
(Original) (Palette) (Indexed)
The RGB color model
Uses the three primary colors RGB to construct colors. The RGB color space is shown below. It
is a cube with red, green and blue as the intensities on the principal axes (X, Y and Z).
This, however, only produces a subset of actual colors seen by humans. The triangle in the figure
below shows the limits of the RGB model compared to human vision. Nevertheless, this model is
useful because TV and computer monitor manufacturers use these three colors to produce an
approximation to the color spectrum in an affordable way.
(http://dot-color.com/)
(CIE: International Commission on Illumination)
The HSV color model
Another way to describe color is through its hue, saturation and value (brightness). Hue is
defined as the wavelength at which most of the energy is concentrated. Brightness or value is a
measure of how light or dark the color is. Saturation refers to the color’s purity or colorfulness.
There is a direct conversion between the RGB color representation and the HSV representation.
(https://en.wikipedia.org/wiki/HSL_and_HSV)
MATLAB has two functions to convert between the RGB and HSV representations. The
functions are called hsv2rgb and rgb2hsv. See the help pages for their use. Remember that
MATLAB will only display RGB images, so if you are working with an HSV representation you
need to convert it to RGB before using imshow.
CMYK color model
Is a subtractive color model. It is usually used for printing. Mixtures of cyan, magenta and
yellow are used to produce colors and black (K) is used to produce pure black.

More Related Content

What's hot

RGB Color Model and Monitor Resolution
RGB Color Model and Monitor ResolutionRGB Color Model and Monitor Resolution
RGB Color Model and Monitor ResolutionAdya Tiwari
 
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
 
Color model in computer graphics
Color model in computer graphicsColor model in computer graphics
Color model in computer graphicsPuja Dhakal
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING anam singla
 
Color image processing
Color image processingColor image processing
Color image processingrmsurya
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processingkiruthiammu
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing PresentationRevanth Chimmani
 
Multimedia color in image and video
Multimedia color in image and videoMultimedia color in image and video
Multimedia color in image and videoMazin Alwaaly
 
Color models in Digitel image processing
Color models in Digitel image processingColor models in Digitel image processing
Color models in Digitel image processingAryan Shivhare
 
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 Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: BasicsA B Shinde
 

What's hot (20)

Color model
Color modelColor model
Color model
 
RGB Color Model and Monitor Resolution
RGB Color Model and Monitor ResolutionRGB Color Model and Monitor Resolution
RGB Color Model and Monitor Resolution
 
Rgb colour model
Rgb colour modelRgb colour model
Rgb colour model
 
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
 
Color models
Color modelsColor models
Color models
 
test 1
test 1test 1
test 1
 
Computer graphices presentation
Computer graphices presentationComputer graphices presentation
Computer graphices presentation
 
Color model in computer graphics
Color model in computer graphicsColor model in computer graphics
Color model in computer graphics
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING
 
Color image processing
Color image processingColor image processing
Color image processing
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing Presentation
 
Coloring
ColoringColoring
Coloring
 
Multimedia color in image and video
Multimedia color in image and videoMultimedia color in image and video
Multimedia color in image and video
 
Image processing
Image processingImage processing
Image processing
 
Lect 06
Lect 06 Lect 06
Lect 06
 
Color models in Digitel image processing
Color models in Digitel image processingColor models in Digitel image processing
Color models in Digitel 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
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 
color image processing
color image processingcolor image processing
color image processing
 

Similar to Color

Project report_DTRL_subrat
Project report_DTRL_subratProject report_DTRL_subrat
Project report_DTRL_subratSubrat Prasad
 
Color image processing.ppt
Color image processing.pptColor image processing.ppt
Color image processing.pptPapajuvvanapudi
 
Color Models Computer Graphics
Color Models Computer GraphicsColor Models Computer Graphics
Color Models Computer Graphicsdhruv141293
 
An investigation for steganography using different color system
An investigation for steganography using different color systemAn investigation for steganography using different color system
An investigation for steganography using different color systemDr Amira Bibo
 
06 color image processing
06 color image processing06 color image processing
06 color image processingJaiverdhan .
 
Colorization of Gray Scale Images in YCbCr Color Space Using Texture Extract...
Colorization of Gray Scale Images in YCbCr Color Space Using  Texture Extract...Colorization of Gray Scale Images in YCbCr Color Space Using  Texture Extract...
Colorization of Gray Scale Images in YCbCr Color Space Using Texture Extract...IOSR Journals
 
Color-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptxColor-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptxEveCarolino
 
Color theorykareemebrahim
Color theorykareemebrahimColor theorykareemebrahim
Color theorykareemebrahimKareem .
 
Lecnoninecolorspacemodelindigitalimageprocess
LecnoninecolorspacemodelindigitalimageprocessLecnoninecolorspacemodelindigitalimageprocess
LecnoninecolorspacemodelindigitalimageprocessIrsaAamir
 

Similar to Color (20)

About Color
About ColorAbout Color
About Color
 
Project report_DTRL_subrat
Project report_DTRL_subratProject report_DTRL_subrat
Project report_DTRL_subrat
 
Image processing tatorial
Image processing tatorialImage processing tatorial
Image processing tatorial
 
Color_Spaces.pptx
Color_Spaces.pptxColor_Spaces.pptx
Color_Spaces.pptx
 
Image processing report
Image processing reportImage processing report
Image processing report
 
Color image processing.ppt
Color image processing.pptColor image processing.ppt
Color image processing.ppt
 
Colour spaces
Colour spacesColour spaces
Colour spaces
 
Color Models Computer Graphics
Color Models Computer GraphicsColor Models Computer Graphics
Color Models Computer Graphics
 
An investigation for steganography using different color system
An investigation for steganography using different color systemAn investigation for steganography using different color system
An investigation for steganography using different color system
 
06 color image processing
06 color image processing06 color image processing
06 color image processing
 
Colorization of Gray Scale Images in YCbCr Color Space Using Texture Extract...
Colorization of Gray Scale Images in YCbCr Color Space Using  Texture Extract...Colorization of Gray Scale Images in YCbCr Color Space Using  Texture Extract...
Colorization of Gray Scale Images in YCbCr Color Space Using Texture Extract...
 
Color-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptxColor-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptx
 
Color theorykareemebrahim
Color theorykareemebrahimColor theorykareemebrahim
Color theorykareemebrahim
 
Colormodels
ColormodelsColormodels
Colormodels
 
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)
 
image-pro.ppt
image-pro.pptimage-pro.ppt
image-pro.ppt
 
Id3115321536
Id3115321536Id3115321536
Id3115321536
 
Color models
Color modelsColor models
Color models
 
Color image processing
Color image processingColor image processing
Color image processing
 
Lecnoninecolorspacemodelindigitalimageprocess
LecnoninecolorspacemodelindigitalimageprocessLecnoninecolorspacemodelindigitalimageprocess
Lecnoninecolorspacemodelindigitalimageprocess
 

Recently uploaded

VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 

Recently uploaded (20)

VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 

Color

  • 1. Color Images We have seen that photographs and images can be in grayscale or in color. We utilize color in many contexts to convey information. The retina is a light-sensitive layer at the back of the eye that covers about 65 percent of its interior surface. The human eye contains two different kinds of photosensitive receptor cells called rods and cones in the retina that convert incident light energy into signals that are carried to the brain by the optic nerve. (http://hyperphysics.phy-astr.gsu.edu/hbase/vision/eye.html) Rods are used for night vision and are mostly color independent. Cones mediate color vision. There are three types of cones. The wavelength of visible light is between 400 nm and 700 nm. (http://hyperphysics.phy-astr.gsu.edu/hbase/vision/colcon.html)
  • 2. The tristimulus theory states that any color can be specified by a weighted combination of three (primary) colors. Red, green and blue are one set of additive primary colors. Additive colors are defined as the three colors of light that when mixed can produce white. Color depth in digital representations The total number of bits over all primary colors used to represent a color is called the color depth. When we refer to a 24-bit color depth with a tristimulus color model we mean each color is represented with 8 bits and hence can have one of 256 different intensities for each color. The total number of colors is 2^24; approximately 16.7 million colors. Indexed color Not all images need to have 16 million different colors. The image itself can have a limited number of colors or an approximation could be tolerated in exchange for file size. Indexed color uses a table to store the colors and stores the index of a color in the table instead of the full color for each pixel. For example, a 1024x1024 image with 256 colors would need 3x1024x1024 = 3 Megabytes using a 24-bit color representation and only need 3x256+1024x1024 ~= 1 Megabyte with an indexed color format; almost 3 fold. The figure below shows the palette and images in two formats.
  • 3. The figures below show the 256-element palettes (left) corresponding to the indexed color images (right) obtained from the original color images (middle). (Original) (Palette) (Indexed)
  • 4. The RGB color model Uses the three primary colors RGB to construct colors. The RGB color space is shown below. It is a cube with red, green and blue as the intensities on the principal axes (X, Y and Z). This, however, only produces a subset of actual colors seen by humans. The triangle in the figure below shows the limits of the RGB model compared to human vision. Nevertheless, this model is useful because TV and computer monitor manufacturers use these three colors to produce an approximation to the color spectrum in an affordable way. (http://dot-color.com/) (CIE: International Commission on Illumination)
  • 5. The HSV color model Another way to describe color is through its hue, saturation and value (brightness). Hue is defined as the wavelength at which most of the energy is concentrated. Brightness or value is a measure of how light or dark the color is. Saturation refers to the color’s purity or colorfulness. There is a direct conversion between the RGB color representation and the HSV representation. (https://en.wikipedia.org/wiki/HSL_and_HSV) MATLAB has two functions to convert between the RGB and HSV representations. The functions are called hsv2rgb and rgb2hsv. See the help pages for their use. Remember that MATLAB will only display RGB images, so if you are working with an HSV representation you need to convert it to RGB before using imshow. CMYK color model Is a subtractive color model. It is usually used for printing. Mixtures of cyan, magenta and yellow are used to produce colors and black (K) is used to produce pure black.