SlideShare a Scribd company logo
1 of 28
Download to read offline
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Color Fundamentals
• Visible light can be represented by the combination of different colors with
changing electromagnetic wavelengths from violet to red in the visible spectrum.
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Color Fundamentals
• Chromatic (colored) light spans to electromagnetic waves between approximately
400 nm and 700 nm which corresponds to colors from violet to red. These colors
are perceived by the human eye in the following way.
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Color Fundamentals
• Primary Colors: Red(R), Green(G) and Blue(B) are referred as the primary
colors and when mixed with various intensity proportions, can produce all visible
colors.
•The primary colors can be mixed to generate secondary colors such as magenda
(red+blue), cyan( green + blue) and yellow (red+green).
Primary Colors-
RGB
Secondary Colors -
CMYK
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Color Models
• RGB Color Model: In this color model each color appears in its primary
spectral components of Red, Green and Blue.
•The model is based on the 3D Cartesian coordinate system, where the color
subspace of interest is the color cube shown below.
Color Cube
0,0,0=Black
1,1,1=White
24-bit Color Cube
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Color Models
• RGB Color Model:
R, G and B images are combined together to form a color image.
R Image
G Image
B Image
RGB Image
GB Image RB Image RG Image
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Color Models
• CMY Color Model: Cyan, Magenta and Yellow color model is made of
secondary colors.
•Some printers and devices use secondary colors instead of the primary colors.
•The conversion from RGB to CMY can be performed as follows:
1
1
1
C R
M G
Y B
     
           
          
• HSI Color Model: Hue, Saturation and Intensity are three important
descriptors used by human being in describing colors.
•Hue represents the purity of the color. (i.e. pure red, yellow, green).
•Saturation represents the measure of the degree to which a pure color is diluted
by white light.
•Intensity is the gray level value of the color.
•Hue and Saturation represents the color carrying Chrominance (Chromatic)
information.
•Intensity represents the gray-level Luminance (achromatic) information.
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Color Models
• HSI Color Model: Hue, Saturation and Intensity can be represented by:
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Color Models
• HSI Color Model: Hue, Saturation and Intensity
3D Circular HSI color plane
I=1
I=0
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Color Models
• Converting Color from RGB to HSI: Given an image in RGB color format, the
H component of each RGB pixel is obtained using:
360
if B G
H
if B G



 
 
 1
1/22
1
( ) ( )
2cos
( ) ( )( )
R G R B
R G R B G B
 
 
   
  
      
 
3
1 [min( , , )]
( )
S R G B
R G B
 
 
1
( )
3
I R G B  
• The RGB values are normalized to the
range [0,1].
•The SI values are in [0,1] and the H
value can be divided by 360o to be in the
same range.
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Color Models
• Converting from HSI to RGB : Given the HSI values in the interval of [0,1].
•Multiply the H by 360o so that it is in the range of [0, 360o].
•If (0≤ H < 120o), then color is in RG Sector and then:
)1( SIB 








)60cos(
cos
1
H
HS
IR o
)(1 BRG 
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Color Models
• Converting from HSI to RGB : Given the HSI values in the interval of[0,1].
•Multiply the H by 360o so that it is in the range of [0, 360o].
•If (120o≤ H < 240o), then color is in GB Sector and then. Firstly H in this sector
is:
)1( SIR 








)60cos(
cos
1
H
HS
IG o
)(1 GRB 
o
HH 120
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Color Models
• Converting from HSI to RGB : Given the HSI values in the interval of[0,1].
•Multiply the H by 360o so that it in the range of [0, 360o].
•If (240o≤ H < 360o), then color is in BR Sector and then. Firstly H in this sector
is:
)1( SIG 








)60cos(
cos
1
H
HS
IB o
)(1 BGR 
o
HH 240
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Color Models
• Converting from HSI to RGB :
RGB Image
H Image
S Image I Image
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Pseudocolor Image Processing
• This technique is based on assigning color (false/pseudo) values to different
gray levels. By converting monochrome images to color images human
visualization and interpretation of the gray level images can be improved.
• Intensity/density Slicing: The image is interpreted as 3D function (intensity
versus spatial coordinates), where, planes which are parallel to the coordinate
planes called “slices” are considered to slice the image function into two color
levels.
Intensity slicing
Let [0,L-1] represent the gray level image, and
lo represents black [f(x,y)=0] ,
lL-1 represents white [f(x,y)=L-1] ,
Consider P planes defined at l1 , l2 ,…, lP
intensity levels. Then P planes partition the gray
scale into P+1 intervals, V1 , V2 ,…, VP+1 . Each
interval is assigned to a different color and hence:
kk Vyxfifcyxf  ),(,),(
ck is the color with kth intensity interval Vk.
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Pseudocolor Image Processing
• Intensity/density Slicing:
Monochrome Image Intensity slicing into 8 colors
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Pseudocolor Image Processing
• Intensity/density Slicing:
Monochrome
Image
After intensity
slicing applied
Tropical regions
Zoom of south
America region
intensity slicing into 256 colors
Intensity values from 0 to 255
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Pseudocolor Image Processing
• Gray Level to Color Transformations : In this method, a given gray level image
is processed by 3 different transformation functions producing 3 enhanced
images in Red, Green and Blue channels respectively.
•By combining the 3 channel images we get a colored image.
fR, fG and FB are used to be inputs to an RGB monitor, producing a colored image.
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Pseudocolor Image Processing
• Gray Level to Color Transformations :
input image.
Transformation functions for R, G and B
channels.
Output Pseudocolor image.
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Full-Color Image Processing
• There two main methods in using full color images.
•In the first method each color component is processed separately to form a
composite color image.
•In the second approach we consider each pixel as a vector of 3 values and
process each pixel.
Each component is processed
like a gray-level image
Each pixel is considered as a
vector of RGB components.
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Full-Color Image Processing
• Various Color space components: Consider each color component as a gray
level image.
Full color image
C,M,Y components.
R,G,B components.
H,S,I components.
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Full-Color Image Processing
• Color Complements (inverse colors). Color complementing a color image is
identical to gray scale negatives in monochrome images.
•Color complement transformations are performed according to the following
color circle.
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Full-Color Image Processing
• Color Complements (inverse colors). If you apply respective color complement
transformation to each color component, you can obtain the complement of a
given color image.
Complementing RGB components Complementing HSI components
Transformation functions for RGB
Transformation functions for HSI
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Full-Color Image Processing
• Color Image Smoothing and Sharpening : The idea of gray-scale image
smoothing can be extended into processing of full color images.
•Let Sxy denote the set of coordinates defining a neighborhood centered at (x,y) in
RGB color image. Averaging (smoothing) and Sharpening using Laplacian
operator of the RGB component vectors in this neighborhood is:


xySyx
yx
K
yx
),(
),(
1
),( cc

























xy
xy
xy
Syx
Syx
Syx
yxB
K
yxG
K
yxR
K
yx
),(
),(
),(
),(
1
),(
1
),(
1
),(c
K is the number of pixels
within the neighborhood
of the averaging mask.
 














),(
),(
),(
),(
2
2
2
2
yxB
yxG
yxR
yxc
•Smoothing using Averaging Sharpening using Laplacian
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Full-Color Image Processing
• Color Image Smoothing: Given a full color image with the following color
components,
Full color RGB image R Image G Image B Image
Hue image Saturation Image Intensity Image
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Full-Color Image Processing
• Color Image Smoothing & Sharpening:
Each RGB component filtered Only I of the HSI filtered Difference of the 2 images
Each RGB component filtered Only I of the HSI filtered Difference of the 2 images
Smoothing by
5x5 averaging mask
Sharpened by
3x3 Laplacian mask
* Original Hue and Saturation
are maintained. Working with
HSI image is a better idea.
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Full-Color Image Processing
• Segmentation in RGB vector space : Although working with HSI space is more
intuitive in most applications, in segmentation working with RGB color vectors is
generally more advantages.
• Suppose that an object within a specified RGB color range is to be segmented.
Assume that a is the average RGB vector. Each RGB pixel is classified to have
color in the specified range/distance from the average color vector.
•Let z denote an arbitrary point in RGB space. Then the Euclidean Distance
between z and a is given by:
1/2
1/22 2 2
( , ) ( ) ( )
( ) ( ) ( )
T
R R G G B B
D z a
z a z a z a
      
       
z a z a z a
oDD a)z,(
•The segmented pixels fall into the solid sphere of radius Do where,
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Full-Color Image Processing
• Segmentation in RGB vector space :
oo DradiusDD  ,( a)z,
EE-583: Digital Image Processing
Prepared By: Dr. Hasan Demirel, PhD
Color Image Processing
Full-Color Image Processing
• Segmentation in RGB vector space :
Area of interest
Segmentation Procedure:
1. Sample data is taken from the area of interest.
2.Mean RGB components and their standard deviation values
are calculated.
3. Do is determined by using the standard deviation s .
For example in this example:
DoR =1.25 sR
DoG =1.25 sG
DoB =1.25 sB
4. Any pixel within Do distance from the mean is set to white
color and all the other pixels are set to black color.
Segmented region
Input image
Segmented Output image

More Related Content

What's hot

10 color image processing
10 color image processing10 color image processing
10 color image processingbabak danyal
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compressionasodariyabhavesh
 
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
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image CompressionMathankumar S
 
digital image processing
digital image processingdigital image processing
digital image processingAbinaya B
 
Color models in Digitel image processing
Color models in Digitel image processingColor models in Digitel image processing
Color models in Digitel image processingAryan Shivhare
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit NotesAAKANKSHA JAIN
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and SegmentationA B Shinde
 
Lect 03 - first portion
Lect 03 - first portionLect 03 - first portion
Lect 03 - first portionMoe Moe Myint
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image CompressionKalyan Acharjya
 
Fields of digital image processing slides
Fields of digital image processing slidesFields of digital image processing slides
Fields of digital image processing slidesSrinath Dhayalamoorthy
 
Color image processing
Color image processingColor image processing
Color image processingrmsurya
 

What's hot (20)

Image compression .
Image compression .Image compression .
Image compression .
 
Lect 06
Lect 06 Lect 06
Lect 06
 
Image compression
Image compression Image compression
Image compression
 
10 color image processing
10 color image processing10 color image processing
10 color image processing
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
digital image processing
digital image processingdigital image processing
digital 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
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
 
Color models
Color modelsColor models
Color models
 
Lect 03 - first portion
Lect 03 - first portionLect 03 - first portion
Lect 03 - first portion
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
 
Fields of digital image processing slides
Fields of digital image processing slidesFields of digital image processing slides
Fields of digital image processing slides
 
Color image processing
Color image processingColor image processing
Color image processing
 

Similar to color image processing

Color image processing ppt
Color image processing pptColor image processing ppt
Color image processing pptMvidhya9
 
Lecnoninecolorspacemodelindigitalimageprocess
LecnoninecolorspacemodelindigitalimageprocessLecnoninecolorspacemodelindigitalimageprocess
LecnoninecolorspacemodelindigitalimageprocessIrsaAamir
 
Establishment of an Efficient Color Model from Existing Models for Better Gam...
Establishment of an Efficient Color Model from Existing Models for Better Gam...Establishment of an Efficient Color Model from Existing Models for Better Gam...
Establishment of an Efficient Color Model from Existing Models for Better Gam...CSCJournals
 
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...Hemantha Kulathilake
 
Image enhancement lecture
Image enhancement lectureImage enhancement lecture
Image enhancement lectureISRAR HUSSAIN
 
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
 
Comprehensive Infrared Image Edge detection Algorithm
Comprehensive Infrared Image Edge detection AlgorithmComprehensive Infrared Image Edge detection Algorithm
Comprehensive Infrared Image Edge detection AlgorithmCSCJournals
 
Color Models Computer Graphics
Color Models Computer GraphicsColor Models Computer Graphics
Color Models Computer Graphicsdhruv141293
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)inventionjournals
 
Colour image processing(fip)
Colour image processing(fip)Colour image processing(fip)
Colour image processing(fip)Vijay Kumar
 
Color Image Processing.pptx
Color Image Processing.pptxColor Image Processing.pptx
Color Image Processing.pptxAntu Chowdhury
 
Color-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptxColor-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptxEveCarolino
 
Image_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptxImage_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptxMayuri Narkhede
 
Sign Language Recognition Using Image Processing For Mute People
Sign Language Recognition Using Image Processing For Mute PeopleSign Language Recognition Using Image Processing For Mute People
Sign Language Recognition Using Image Processing For Mute Peoplepaperpublications3
 

Similar to color 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
 
ch1ip.ppt
ch1ip.pptch1ip.ppt
ch1ip.ppt
 
Lecnoninecolorspacemodelindigitalimageprocess
LecnoninecolorspacemodelindigitalimageprocessLecnoninecolorspacemodelindigitalimageprocess
Lecnoninecolorspacemodelindigitalimageprocess
 
Establishment of an Efficient Color Model from Existing Models for Better Gam...
Establishment of an Efficient Color Model from Existing Models for Better Gam...Establishment of an Efficient Color Model from Existing Models for Better Gam...
Establishment of an Efficient Color Model from Existing Models for Better Gam...
 
image-pro.ppt
image-pro.pptimage-pro.ppt
image-pro.ppt
 
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)
 
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
 
Image enhancement lecture
Image enhancement lectureImage enhancement lecture
Image enhancement lecture
 
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...
 
Comprehensive Infrared Image Edge detection Algorithm
Comprehensive Infrared Image Edge detection AlgorithmComprehensive Infrared Image Edge detection Algorithm
Comprehensive Infrared Image Edge detection Algorithm
 
Id3115321536
Id3115321536Id3115321536
Id3115321536
 
Color Models Computer Graphics
Color Models Computer GraphicsColor Models Computer Graphics
Color Models Computer Graphics
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)
 
Colour image processing(fip)
Colour image processing(fip)Colour image processing(fip)
Colour image processing(fip)
 
Color Image Processing.pptx
Color Image Processing.pptxColor Image Processing.pptx
Color Image Processing.pptx
 
Color Models.pptx
Color Models.pptxColor Models.pptx
Color Models.pptx
 
Color-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptxColor-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptx
 
Image_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptxImage_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptx
 
Sign Language Recognition Using Image Processing For Mute People
Sign Language Recognition Using Image Processing For Mute PeopleSign Language Recognition Using Image Processing For Mute People
Sign Language Recognition Using Image Processing For Mute People
 

Recently uploaded

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
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
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
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
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 

Recently uploaded (20)

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
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
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
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 ...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 

color image processing

  • 1. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Color Fundamentals • Visible light can be represented by the combination of different colors with changing electromagnetic wavelengths from violet to red in the visible spectrum.
  • 2. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Color Fundamentals • Chromatic (colored) light spans to electromagnetic waves between approximately 400 nm and 700 nm which corresponds to colors from violet to red. These colors are perceived by the human eye in the following way.
  • 3. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Color Fundamentals • Primary Colors: Red(R), Green(G) and Blue(B) are referred as the primary colors and when mixed with various intensity proportions, can produce all visible colors. •The primary colors can be mixed to generate secondary colors such as magenda (red+blue), cyan( green + blue) and yellow (red+green). Primary Colors- RGB Secondary Colors - CMYK
  • 4. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Color Models • RGB Color Model: In this color model each color appears in its primary spectral components of Red, Green and Blue. •The model is based on the 3D Cartesian coordinate system, where the color subspace of interest is the color cube shown below. Color Cube 0,0,0=Black 1,1,1=White 24-bit Color Cube
  • 5. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Color Models • RGB Color Model: R, G and B images are combined together to form a color image. R Image G Image B Image RGB Image GB Image RB Image RG Image
  • 6. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Color Models • CMY Color Model: Cyan, Magenta and Yellow color model is made of secondary colors. •Some printers and devices use secondary colors instead of the primary colors. •The conversion from RGB to CMY can be performed as follows: 1 1 1 C R M G Y B                              • HSI Color Model: Hue, Saturation and Intensity are three important descriptors used by human being in describing colors. •Hue represents the purity of the color. (i.e. pure red, yellow, green). •Saturation represents the measure of the degree to which a pure color is diluted by white light. •Intensity is the gray level value of the color. •Hue and Saturation represents the color carrying Chrominance (Chromatic) information. •Intensity represents the gray-level Luminance (achromatic) information.
  • 7. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Color Models • HSI Color Model: Hue, Saturation and Intensity can be represented by:
  • 8. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Color Models • HSI Color Model: Hue, Saturation and Intensity 3D Circular HSI color plane I=1 I=0
  • 9. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Color Models • Converting Color from RGB to HSI: Given an image in RGB color format, the H component of each RGB pixel is obtained using: 360 if B G H if B G         1 1/22 1 ( ) ( ) 2cos ( ) ( )( ) R G R B R G R B G B                     3 1 [min( , , )] ( ) S R G B R G B     1 ( ) 3 I R G B   • The RGB values are normalized to the range [0,1]. •The SI values are in [0,1] and the H value can be divided by 360o to be in the same range.
  • 10. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Color Models • Converting from HSI to RGB : Given the HSI values in the interval of [0,1]. •Multiply the H by 360o so that it is in the range of [0, 360o]. •If (0≤ H < 120o), then color is in RG Sector and then: )1( SIB          )60cos( cos 1 H HS IR o )(1 BRG 
  • 11. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Color Models • Converting from HSI to RGB : Given the HSI values in the interval of[0,1]. •Multiply the H by 360o so that it is in the range of [0, 360o]. •If (120o≤ H < 240o), then color is in GB Sector and then. Firstly H in this sector is: )1( SIR          )60cos( cos 1 H HS IG o )(1 GRB  o HH 120
  • 12. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Color Models • Converting from HSI to RGB : Given the HSI values in the interval of[0,1]. •Multiply the H by 360o so that it in the range of [0, 360o]. •If (240o≤ H < 360o), then color is in BR Sector and then. Firstly H in this sector is: )1( SIG          )60cos( cos 1 H HS IB o )(1 BGR  o HH 240
  • 13. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Color Models • Converting from HSI to RGB : RGB Image H Image S Image I Image
  • 14. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Pseudocolor Image Processing • This technique is based on assigning color (false/pseudo) values to different gray levels. By converting monochrome images to color images human visualization and interpretation of the gray level images can be improved. • Intensity/density Slicing: The image is interpreted as 3D function (intensity versus spatial coordinates), where, planes which are parallel to the coordinate planes called “slices” are considered to slice the image function into two color levels. Intensity slicing Let [0,L-1] represent the gray level image, and lo represents black [f(x,y)=0] , lL-1 represents white [f(x,y)=L-1] , Consider P planes defined at l1 , l2 ,…, lP intensity levels. Then P planes partition the gray scale into P+1 intervals, V1 , V2 ,…, VP+1 . Each interval is assigned to a different color and hence: kk Vyxfifcyxf  ),(,),( ck is the color with kth intensity interval Vk.
  • 15. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Pseudocolor Image Processing • Intensity/density Slicing: Monochrome Image Intensity slicing into 8 colors
  • 16. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Pseudocolor Image Processing • Intensity/density Slicing: Monochrome Image After intensity slicing applied Tropical regions Zoom of south America region intensity slicing into 256 colors Intensity values from 0 to 255
  • 17. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Pseudocolor Image Processing • Gray Level to Color Transformations : In this method, a given gray level image is processed by 3 different transformation functions producing 3 enhanced images in Red, Green and Blue channels respectively. •By combining the 3 channel images we get a colored image. fR, fG and FB are used to be inputs to an RGB monitor, producing a colored image.
  • 18. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Pseudocolor Image Processing • Gray Level to Color Transformations : input image. Transformation functions for R, G and B channels. Output Pseudocolor image.
  • 19. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Full-Color Image Processing • There two main methods in using full color images. •In the first method each color component is processed separately to form a composite color image. •In the second approach we consider each pixel as a vector of 3 values and process each pixel. Each component is processed like a gray-level image Each pixel is considered as a vector of RGB components.
  • 20. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Full-Color Image Processing • Various Color space components: Consider each color component as a gray level image. Full color image C,M,Y components. R,G,B components. H,S,I components.
  • 21. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Full-Color Image Processing • Color Complements (inverse colors). Color complementing a color image is identical to gray scale negatives in monochrome images. •Color complement transformations are performed according to the following color circle.
  • 22. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Full-Color Image Processing • Color Complements (inverse colors). If you apply respective color complement transformation to each color component, you can obtain the complement of a given color image. Complementing RGB components Complementing HSI components Transformation functions for RGB Transformation functions for HSI
  • 23. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Full-Color Image Processing • Color Image Smoothing and Sharpening : The idea of gray-scale image smoothing can be extended into processing of full color images. •Let Sxy denote the set of coordinates defining a neighborhood centered at (x,y) in RGB color image. Averaging (smoothing) and Sharpening using Laplacian operator of the RGB component vectors in this neighborhood is:   xySyx yx K yx ),( ),( 1 ),( cc                          xy xy xy Syx Syx Syx yxB K yxG K yxR K yx ),( ),( ),( ),( 1 ),( 1 ),( 1 ),(c K is the number of pixels within the neighborhood of the averaging mask.                 ),( ),( ),( ),( 2 2 2 2 yxB yxG yxR yxc •Smoothing using Averaging Sharpening using Laplacian
  • 24. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Full-Color Image Processing • Color Image Smoothing: Given a full color image with the following color components, Full color RGB image R Image G Image B Image Hue image Saturation Image Intensity Image
  • 25. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Full-Color Image Processing • Color Image Smoothing & Sharpening: Each RGB component filtered Only I of the HSI filtered Difference of the 2 images Each RGB component filtered Only I of the HSI filtered Difference of the 2 images Smoothing by 5x5 averaging mask Sharpened by 3x3 Laplacian mask * Original Hue and Saturation are maintained. Working with HSI image is a better idea.
  • 26. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Full-Color Image Processing • Segmentation in RGB vector space : Although working with HSI space is more intuitive in most applications, in segmentation working with RGB color vectors is generally more advantages. • Suppose that an object within a specified RGB color range is to be segmented. Assume that a is the average RGB vector. Each RGB pixel is classified to have color in the specified range/distance from the average color vector. •Let z denote an arbitrary point in RGB space. Then the Euclidean Distance between z and a is given by: 1/2 1/22 2 2 ( , ) ( ) ( ) ( ) ( ) ( ) T R R G G B B D z a z a z a z a                z a z a z a oDD a)z,( •The segmented pixels fall into the solid sphere of radius Do where,
  • 27. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Full-Color Image Processing • Segmentation in RGB vector space : oo DradiusDD  ,( a)z,
  • 28. EE-583: Digital Image Processing Prepared By: Dr. Hasan Demirel, PhD Color Image Processing Full-Color Image Processing • Segmentation in RGB vector space : Area of interest Segmentation Procedure: 1. Sample data is taken from the area of interest. 2.Mean RGB components and their standard deviation values are calculated. 3. Do is determined by using the standard deviation s . For example in this example: DoR =1.25 sR DoG =1.25 sG DoB =1.25 sB 4. Any pixel within Do distance from the mean is set to white color and all the other pixels are set to black color. Segmented region Input image Segmented Output image