SlideShare a Scribd company logo
1 of 71
Color Image Processing
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Spectrum of White Light
1666 Sir Isaac Newton, 24 year old, discovered white light spectrum.
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Electromagnetic Spectrum
Visible light wavelength: from around 400 to 700 nm
1. For an achromatic (monochrome) light source,
there is only 1 attribute to describe the quality: intensity
2. For a chromatic light source, there are 3 attributes to describe
the quality:
Radiance = total amount of energy flow from a light source (Watts)
Luminance = amount of energy received by an observer (lumens)
Brightness = intensity
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Sensitivity of Cones in the Human Eye
6-7 millions cones
in a human eye
- 65% sensitive to Red light
- 33% sensitive to Green light
- 2 % sensitive to Blue light
Primary colors:
Defined CIE in 1931
Red = 700 nm
Green = 546.1nm
Blue = 435.8 nm
CIE = Commission Internationale de l’Eclairage
(The International Commission on Illumination)
Primary and Secondary Colors
Primary
color
Primary
color
Primary
color
Secondary
colors
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Primary and Secondary Colors (cont.)
Additive primary colors: RGB
use in the case of light sources
such as color monitors
Subtractive primary colors: CMY
use in the case of pigments in
printing devices
RGB add together to get white
White subtracted by CMY to get
Black
Hue: dominant color corresponding to a dominant
wavelength of mixture light wave
Saturation: Relative purity or amount of white light mixed
with a hue (inversely proportional to amount of white
light added)
Brightness: Intensity
Color Characterization
Hue
Saturation
Chromaticity
amount of red (X), green (Y) and blue (Z) to form any particular
color is called tristimulus.
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
CIE Chromaticity Diagram
Trichromatic coefficients:
ZYX
X
x


ZYX
Y
y


ZYX
Z
z


1 zyx
x
y
Points on the boundary are
fully saturated colors
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Color Gamut of Color Monitors and Printing Devices
Color Monitors
Printing devices
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
RGB Color Model
Purpose of color models: to facilitate the specification of colors in
some standard
RGB color models:
- based on cartesian
coordinate system
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
RGB Color Cube
R = 8 bits
G = 8 bits
B = 8 bits
Color depth 24 bits
= 16777216 colors
Hidden faces
of the cube
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
RGB Color Model (cont.)
Red fixed at 127
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Safe RGB Colors
Safe RGB colors: a subset of RGB colors.
There are 216 colors common in most operating systems.
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
RGB Safe-color Cube
The RGB Cube is divided into
6 intervals on each axis to achieve
the total 63 = 216 common colors.
However, for 8 bit color
representation, there are the total
256 colors. Therefore, the remaining
40 colors are left to OS.
CMY and CMYK Color Models
































B
G
R
Y
M
C
1
1
1
C = Cyan
M = Magenta
Y = Yellow
K = Black
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
HSI Color Model
RGB, CMY models are not good for human interpreting
HSI Color model:
Hue: Dominant color
Saturation: Relative purity (inversely proportional
to amount of white light added)
Intensity: Brightness
Color carrying
information
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Relationship Between RGB and HSI Color Models
RGB HSI
Hue and Saturation on Color Planes
1. A dot is the plane is an arbitrary color
2. Hue is an angle from a red axis.
3. Saturation is a distance to the point.
HSI Color Model (cont.)
Intensity is given by a position on the vertical axis.
HSI Color Model
Intensity is given by a position on the vertical axis.
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Example: HSI Components of RGB Cube
Hue Saturation Intensity
RGB Cube
Converting Colors from RGB to HSI






GB
GB
H
if360
if


 
  











 
2/12
1
))(()(
)()(
2
1
cos
BGBRGR
BRGR

BGR
S


3
1
)(
3
1
BGRI 
Converting Colors from HSI to RGB
)1( SIB 








)60cos(
cos
1
H
HS
IR 
)(1 BRG 
RG sector: 1200  H GB sector: 240120  H
)1( SIR 








)60cos(
cos
1
H
HS
IG 
)(1 GRB 
)1( SIG 








)60cos(
cos
1
H
HS
IB 
)(1 BGR 
BR sector: 360240  H
120 HH
240 HH
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Example: HSI Components of RGB Colors
Hue
Saturation Intensity
RGB
Image
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Example: Manipulating HSI Components
Hue
Saturation Intensity
RGB
Image Hue Saturation
Intensity RGB
Image
Color Image Processing
There are 2 types of color image processes
1. Pseudocolor image process: Assigning colors to gray
values based on a specific criterion. Gray scale images to be processed
may be a single image or multiple images such as multispectral images
2. Full color image process: The process to manipulate real
color images such as color photographs.
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Pseudocolor Image Processing
Why we need to assign colors to gray scale image?
Answer: Human can distinguish different colors better than different
shades of gray.
Pseudo color = false color : In some case there is no “color” concept
for a gray scale image but we can assign “false” colors to an image.
Intensity Slicing or Density Slicing






TyxfC
TyxfC
yxg
),(if
),(if
),(
2
1
Formula:
C1 = Color No. 1
C2 = Color No. 2
T
Intensity
Color
C1
C2
T0 L-1
A gray scale image viewed as a 3D surface.
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Intensity Slicing Example
An X-ray image of a weld with cracks
After assigning a yellow color to pixels with
value 255 and a blue color to all other pixels.
Multi Level Intensity Slicing
kkk lyxflCyxg   ),(for),( 1
Ck = Color No. k
lk = Threshold level k
Intensity
Color
C
1
C2
0
L-1
l1 l2 l3 lklk-1
C3
Ck-1
Ck
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Multi Level Intensity Slicing Example
kkk lyxflCyxg   ),(for),( 1
Ck = Color No. k
lk = Threshold level k
An X-ray image of the Picker
Thyroid Phantom.
After density slicing into 8 colors
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Color Coding Example
A unique color is assigned to
each intensity value.
Gray-scale image of average
monthly rainfall.
Color coded image
Color
map
South America region
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Gray Level to Color Transformation
Assigning colors to gray levels based on specific mapping functions
Red component
Green component
Blue component
Gray scale image
(Images from Rafael C.
Gonzalez and Richard
E. Wood, Digital Image
Processing, 2nd Edition.
Gray Level to Color Transformation Example
An X-ray image of a
garment bag with a
simulated explosive
device
An X-ray image
of a garment bag
Color
coded
images
Transformations
(Images from Rafael C.
Gonzalez and Richard
E. Wood, Digital Image
Processing, 2nd Edition.
Gray Level to Color Transformation Example
An X-ray image of a
garment bag with a
simulated explosive
device
An X-ray image
of a garment bag
Color
coded
images
Transformations
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Pseudocolor Coding
Used in the case where there are many monochrome images such as multispectral
satellite images.
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Pseudocolor Coding Example
Washington D.C. area
Visible blue
= 0.45-0.52 mm
Max water penetration
Visible green
= 0.52-0.60 mm
Measuring plant
Visible red
= 0.63-0.69 mm
Plant discrimination
Near infrared
= 0.76-0.90 mm
Biomass and shoreline mapping
1 2
3 4 Red =
Green =
Blue =
Color composite images
1
2
3
Red =
Green =
Blue =
1
2
4
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Pseudocolor Coding Example
Psuedocolor rendition
of Jupiter moon Io
A close-up
Yellow areas = older sulfur deposits.
Red areas = material ejected from
active volcanoes.
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Basics of Full-Color Image Processing
2 Methods:
1. Per-color-component processing: process each component separately.
2. Vector processing: treat each pixel as a vector to be processed.
Example of per-color-component processing: smoothing an image
By smoothing each RGB component separately.
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Example: Full-Color Image and Variouis Color Space Components
Color image
CMYK components
RGB components
HSI components
Color Transformation
Formulation:
 ),(),( yxfTyxg 
f(x,y) = input color image, g(x,y) = output color image
T = operation on f over a spatial neighborhood of (x,y)
When only data at one pixel is used in the transformation, we
can express the transformation as:
),,,( 21 nii rrrTs  i= 1, 2, …, n
Where ri = color component of f(x,y)
si = color component of g(x,y)
Use to transform colors to colors.
For RGB images, n = 3
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Example: Color Transformation
),(),(
),(),(
),(),(
yxkryxs
yxkryxs
yxkryxs
BB
GG
RR



Formula for RGB:
),(),( yxkryxs II 
Formula for CMY:
)1(),(),(
)1(),(),(
)1(),(),(
kyxkryxs
kyxkryxs
kyxkryxs
YY
MM
CC



Formula for HSI:
These 3 transformations give
the same results.
k = 0.7
I H,S
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Color Complements
Color complement replaces each color with its opposite color in the
color circle of the Hue component. This operation is analogous to
image negative in a gray scale image.
Color circle
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Color Complement Transformation Example
Color Slicing Transformation









 
otherwise
2
if5.0
1
i
njany
jj
i
r
W
ar
s
We can perform “slicing” in color space: if the color of each pixel
is far from a desired color more than threshold distance, we set that
color to some specific color such as gray, otherwise we keep the
original color unchanged.
i= 1, 2, …, n
or
 





 
otherwise
if5.0
1
2
0
2
i
n
j
jj
i
r
Rar
s
Set to gray
Keep the original
color
Set to gray
Keep the original
color
i= 1, 2, …, n
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Color Slicing Transformation Example
Original image
After color slicing
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Tonal Correction Examples
In these examples, only
brightness and contrast are
adjusted while keeping color
unchanged.
This can be done by
using the same transformation
for all RGB components.
Power law transformations
Contrast enhancement
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Color Balancing Correction Examples
Color imbalance: primary color components in white area
are not balance. We can measure these components by
using a color spectrometer.
Color balancing can be
performed by adjusting
color components separately
as seen in this slide.
Histogram Equalization of a Full-Color Image
 Histogram equalization of a color image can be performed by
adjusting color intensity uniformly while leaving color unchanged.
 The HSI model is suitable for histogram equalization where only
Intensity (I) component is equalized.






k
j
j
k
j
jrkk
N
n
rprTs
0
0
)()(
where r and s are intensity components of input and output color image.
(Images from Rafael C.
Gonzalez and Richard E.
Wood, Digital Image
Processing, 2nd Edition.
Histogram Equalization of a Full-Color Image
Original image
After histogram
equalization
After increasing
saturation component
Color Image Smoothing
2 Methods:
1. Per-color-plane method: for RGB, CMY color models
Smooth each color plane using moving averaging and
the combine back to RGB
2. Smooth only Intensity component of a HSI image while leaving
H and S unmodified.



























xy
xy
xy
xy
Syx
Syx
Syx
Syx
yxB
K
yxG
K
yxR
K
yx
K
yx
),(
),(
),(
),(
),(
1
),(
1
),(
1
),(
1
),( cc
Note: 2 methods are not equivalent.
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Color Image Smoothing Example (cont.)
Color image Red
Green Blue
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Color Image Smoothing Example (cont.)
Hue Saturation Intensity
Color image
HSI Components
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Color Image Smoothing Example (cont.)
Smooth all RGB components Smooth only I component of HSI
(faster)
Color Image Smoothing Example (cont.)
Difference between
smoothed results from 2
methods in the previous
slide.
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Color Image Sharpening
We can do in the same manner as color image smoothing:
1. Per-color-plane method for RGB,CMY images
2. Sharpening only I component of a HSI image
Sharpening all RGB components Sharpening only I component of HSI
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Color Image Sharpening Example (cont.)
Difference between
sharpened results from 2
methods in the previous
slide.
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Color Segmentation
2 Methods:
1. Segmented in HSI color space:
A thresholding function based on color information in H and S
Components. We rarely use I component for color image
segmentation.
2. Segmentation in RGB vector space:
A thresholding function based on distance in a color vector space.
Color Segmentation in HSI Color Space
Hue
Saturation Intensity
Color image
1 2
3 4
(Images from Rafael C.
Gonzalez and Richard E.
Wood, Digital Image
Processing, 2nd Edition.
Color Segmentation in HSI Color Space (cont.)
Product of and
5 6
7 8
52Binary thresholding of S component
with T = 10%
Histogram of 6 Segmentation of red color pixels
Red pixels
(Images from Rafael C.
Gonzalez and Richard E.
Wood, Digital Image
Processing, 2nd Edition.
Color Segmentation in HSI Color Space (cont.)
Color image Segmented results of red pixels
(Images from Rafael C.
Gonzalez and Richard E.
Wood, Digital Image
Processing, 2nd Edition.
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Color Segmentation in RGB Vector Space
1. Each point with (R,G,B) coordinate in the vector space represents
one color.
2. Segmentation is based on distance thresholding in a vector space






TyxD
TyxD
yxg
T
T
)),,((if0
)),,((if1
),(
cc
cc
cT = color to be segmented.
c(x,y) = RGB vector at pixel (x,y).D(u,v) = distance function
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Example: Segmentation in RGB Vector Space
Color image
Results of segmentation in
RGB vector space with Threshold
value
Reference color cT to be segmented
boxtheinpixelofcoloraverageTc
T = 1.25 times the SD of R,G,B values
In the box
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Gradient of a Color Image
Since gradient is define only for a scalar image, there is no concept
of gradient for a color image. We can’t compute gradient of each
color component and combine the results to get the gradient of a color
image.
Red Green Blue
Edges
We see
4 objects.
We see
2 objects.
Gradient of a Color Image (cont.)
One way to compute the maximum rate of change of a color image
which is close to the meaning of gradient is to use the following
formula: Gradient computed in RGB color space:
  2
1
2sin22cos)()(
2
1
)(






  xyyyxxyyxx gggggF
 








 
yyxx
xy
gg
g2
tan
2
1 1

222
x
B
x
G
x
R
gxx









222
y
B
y
G
y
R
gyy









y
B
x
B
y
G
x
G
y
R
x
R
gxy















(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Obtained using
the formula
in the previous
slide
Sum of
gradients of
each color
component
Original
image
Difference
between
2 and 3
2
3
2 3
Gradient of a Color Image Example
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Gradients of each color component
Red Green Blue
Gradient of a Color Image Example
Noise in Color Images
Noise can corrupt each color component independently.
(Images from Rafael C.
Gonzalez and Richard E.
Wood, Digital Image
Processing, 2nd Edition.
Noise is less
noticeable
in a color
image
AWGN sh
2=800 AWGN sh
2=800
AWGN sh
2=800
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Noise in Color Images
Hue Saturation Intensity
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Noise in Color Images
Hue
Saturation Intensity
Salt & pepper noise
in Green component
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Color Image Compression
JPEG2000 File
Original image
After lossy compression with ratio 230:1

More Related Content

What's hot

Hough Transform By Md.Nazmul Islam
Hough Transform By Md.Nazmul IslamHough Transform By Md.Nazmul Islam
Hough Transform By Md.Nazmul IslamNazmul Islam
 
Point processing
Point processingPoint processing
Point processingpanupriyaa7
 
Lect 03 - first portion
Lect 03 - first portionLect 03 - first portion
Lect 03 - first portionMoe Moe Myint
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)asodariyabhavesh
 
Interpixel redundancy
Interpixel redundancyInterpixel redundancy
Interpixel redundancyNaveen Kumar
 
Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesDiwaker Pant
 
Image Restoration
Image RestorationImage Restoration
Image RestorationPoonam Seth
 
DIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTESDIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTESEzhilya venkat
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression modelslavanya marichamy
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filteringGautam Saxena
 
Lecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image ProcessingLecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image ProcessingVARUN KUMAR
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & DescriptorsPundrikPatel
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency DomainAmnaakhaan
 
Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Kalyan Acharjya
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image FundamentalsA B Shinde
 

What's hot (20)

Hough Transform By Md.Nazmul Islam
Hough Transform By Md.Nazmul IslamHough Transform By Md.Nazmul Islam
Hough Transform By Md.Nazmul Islam
 
Point processing
Point processingPoint processing
Point processing
 
Lect 03 - first portion
Lect 03 - first portionLect 03 - first portion
Lect 03 - first portion
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
 
Interpixel redundancy
Interpixel redundancyInterpixel redundancy
Interpixel redundancy
 
Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement Techniques
 
Color image processing
Color image processingColor image processing
Color image processing
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
DIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTESDIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTES
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filtering
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Lecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image ProcessingLecture 16 KL Transform in Image Processing
Lecture 16 KL Transform in Image Processing
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & Descriptors
 
Image compression .
Image compression .Image compression .
Image compression .
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
 
Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
Segmentation
SegmentationSegmentation
Segmentation
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 

Viewers also liked

10 color image processing
10 color image processing10 color image processing
10 color image processingbabak danyal
 
Colour models
Colour modelsColour models
Colour modelsBCET
 
Lecture 3b: Decision Trees (1 part)
Lecture 3b: Decision Trees (1 part)Lecture 3b: Decision Trees (1 part)
Lecture 3b: Decision Trees (1 part) Marina Santini
 
Digital image processing question bank
Digital image processing question bankDigital image processing question bank
Digital image processing question bankYaseen Albakry
 
Color Models Computer Graphics
Color Models Computer GraphicsColor Models Computer Graphics
Color Models Computer Graphicsdhruv141293
 
Lecture 4 Decision Trees (2): Entropy, Information Gain, Gain Ratio
Lecture 4 Decision Trees (2): Entropy, Information Gain, Gain RatioLecture 4 Decision Trees (2): Entropy, Information Gain, Gain Ratio
Lecture 4 Decision Trees (2): Entropy, Information Gain, Gain RatioMarina Santini
 
Digital image processing img smoothning
Digital image processing img smoothningDigital image processing img smoothning
Digital image processing img smoothningVinay Gupta
 

Viewers also liked (10)

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

Similar to Color image processing Presentation

Important features of color image processing
Important features of color image processingImportant features of color image processing
Important features of color image processingdhananjeyanrece
 
Color-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptxColor-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptxEveCarolino
 
06 color image processing
06 color image processing06 color image processing
06 color image processingJaiverdhan .
 
DIGITAL SIGNAL PROCESSING - Day 3 colour Image processing
DIGITAL SIGNAL PROCESSING - Day 3 colour Image processingDIGITAL SIGNAL PROCESSING - Day 3 colour Image processing
DIGITAL SIGNAL PROCESSING - Day 3 colour Image processingvijayanand Kandaswamy
 
digital image processing color processing
digital image processing color processingdigital image processing color processing
digital image processing color processingrajaramsharath
 
Chapter 3. Intensity Transformations and Spatial Filtering.pdf
Chapter 3. Intensity Transformations and Spatial Filtering.pdfChapter 3. Intensity Transformations and Spatial Filtering.pdf
Chapter 3. Intensity Transformations and Spatial Filtering.pdfDngThanh44
 
The Impact of Color Space and Intensity Normalization to Face Detection Perfo...
The Impact of Color Space and Intensity Normalization to Face Detection Perfo...The Impact of Color Space and Intensity Normalization to Face Detection Perfo...
The Impact of Color Space and Intensity Normalization to Face Detection Perfo...TELKOMNIKA JOURNAL
 

Similar to Color image processing Presentation (20)

Important features of color image processing
Important features of color image processingImportant features of color image processing
Important features of 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
 
Chapter01 (2)
Chapter01 (2)Chapter01 (2)
Chapter01 (2)
 
Chapter02.ppt
Chapter02.pptChapter02.ppt
Chapter02.ppt
 
06 color image processing
06 color image processing06 color image processing
06 color image processing
 
ch1ip.ppt
ch1ip.pptch1ip.ppt
ch1ip.ppt
 
DIGITAL SIGNAL PROCESSING - Day 3 colour Image processing
DIGITAL SIGNAL PROCESSING - Day 3 colour Image processingDIGITAL SIGNAL PROCESSING - Day 3 colour Image processing
DIGITAL SIGNAL PROCESSING - Day 3 colour Image processing
 
digital image processing color processing
digital image processing color processingdigital image processing color processing
digital image processing color processing
 
image-pro.ppt
image-pro.pptimage-pro.ppt
image-pro.ppt
 
Image processing report
Image processing reportImage processing report
Image processing report
 
It 603
It 603It 603
It 603
 
It 603
It 603It 603
It 603
 
Image processing tatorial
Image processing tatorialImage processing tatorial
Image processing tatorial
 
Chapter01 Lecture 1.ppt
Chapter01 Lecture 1.pptChapter01 Lecture 1.ppt
Chapter01 Lecture 1.ppt
 
Chapter01 lecture 1
Chapter01 lecture 1Chapter01 lecture 1
Chapter01 lecture 1
 
Chapter 3. Intensity Transformations and Spatial Filtering.pdf
Chapter 3. Intensity Transformations and Spatial Filtering.pdfChapter 3. Intensity Transformations and Spatial Filtering.pdf
Chapter 3. Intensity Transformations and Spatial Filtering.pdf
 
DIP-Questions.pdf
DIP-Questions.pdfDIP-Questions.pdf
DIP-Questions.pdf
 
It 603
It 603It 603
It 603
 
The Impact of Color Space and Intensity Normalization to Face Detection Perfo...
The Impact of Color Space and Intensity Normalization to Face Detection Perfo...The Impact of Color Space and Intensity Normalization to Face Detection Perfo...
The Impact of Color Space and Intensity Normalization to Face Detection Perfo...
 
[IJET-V1I6P10] Authors: Mr.B.V.Sathish Kumar, M.Tech Scholar G.Sumalatha
[IJET-V1I6P10] Authors: Mr.B.V.Sathish Kumar, M.Tech Scholar G.Sumalatha [IJET-V1I6P10] Authors: Mr.B.V.Sathish Kumar, M.Tech Scholar G.Sumalatha
[IJET-V1I6P10] Authors: Mr.B.V.Sathish Kumar, M.Tech Scholar G.Sumalatha
 

Recently uploaded

Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdfKamal Acharya
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEselvakumar948
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...Amil baba
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Call Girls Mumbai
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersMairaAshraf6
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxSCMS School of Architecture
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesRAJNEESHKUMAR341697
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiessarkmank1
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 

Recently uploaded (20)

Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 

Color image processing Presentation

  • 2. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Spectrum of White Light 1666 Sir Isaac Newton, 24 year old, discovered white light spectrum.
  • 3. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Electromagnetic Spectrum Visible light wavelength: from around 400 to 700 nm 1. For an achromatic (monochrome) light source, there is only 1 attribute to describe the quality: intensity 2. For a chromatic light source, there are 3 attributes to describe the quality: Radiance = total amount of energy flow from a light source (Watts) Luminance = amount of energy received by an observer (lumens) Brightness = intensity
  • 4. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Sensitivity of Cones in the Human Eye 6-7 millions cones in a human eye - 65% sensitive to Red light - 33% sensitive to Green light - 2 % sensitive to Blue light Primary colors: Defined CIE in 1931 Red = 700 nm Green = 546.1nm Blue = 435.8 nm CIE = Commission Internationale de l’Eclairage (The International Commission on Illumination)
  • 5. Primary and Secondary Colors Primary color Primary color Primary color Secondary colors
  • 6. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Primary and Secondary Colors (cont.) Additive primary colors: RGB use in the case of light sources such as color monitors Subtractive primary colors: CMY use in the case of pigments in printing devices RGB add together to get white White subtracted by CMY to get Black
  • 7. Hue: dominant color corresponding to a dominant wavelength of mixture light wave Saturation: Relative purity or amount of white light mixed with a hue (inversely proportional to amount of white light added) Brightness: Intensity Color Characterization Hue Saturation Chromaticity amount of red (X), green (Y) and blue (Z) to form any particular color is called tristimulus.
  • 8. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. CIE Chromaticity Diagram Trichromatic coefficients: ZYX X x   ZYX Y y   ZYX Z z   1 zyx x y Points on the boundary are fully saturated colors
  • 9. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Color Gamut of Color Monitors and Printing Devices Color Monitors Printing devices
  • 10. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. RGB Color Model Purpose of color models: to facilitate the specification of colors in some standard RGB color models: - based on cartesian coordinate system
  • 11. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. RGB Color Cube R = 8 bits G = 8 bits B = 8 bits Color depth 24 bits = 16777216 colors Hidden faces of the cube
  • 12. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. RGB Color Model (cont.) Red fixed at 127
  • 13. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Safe RGB Colors Safe RGB colors: a subset of RGB colors. There are 216 colors common in most operating systems.
  • 14. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. RGB Safe-color Cube The RGB Cube is divided into 6 intervals on each axis to achieve the total 63 = 216 common colors. However, for 8 bit color representation, there are the total 256 colors. Therefore, the remaining 40 colors are left to OS.
  • 15. CMY and CMYK Color Models                                 B G R Y M C 1 1 1 C = Cyan M = Magenta Y = Yellow K = Black
  • 16. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. HSI Color Model RGB, CMY models are not good for human interpreting HSI Color model: Hue: Dominant color Saturation: Relative purity (inversely proportional to amount of white light added) Intensity: Brightness Color carrying information
  • 17. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Relationship Between RGB and HSI Color Models RGB HSI
  • 18. Hue and Saturation on Color Planes 1. A dot is the plane is an arbitrary color 2. Hue is an angle from a red axis. 3. Saturation is a distance to the point.
  • 19. HSI Color Model (cont.) Intensity is given by a position on the vertical axis.
  • 20. HSI Color Model Intensity is given by a position on the vertical axis.
  • 21. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Example: HSI Components of RGB Cube Hue Saturation Intensity RGB Cube
  • 22. Converting Colors from RGB to HSI       GB GB H if360 if                     2/12 1 ))(()( )()( 2 1 cos BGBRGR BRGR  BGR S   3 1 )( 3 1 BGRI 
  • 23. Converting Colors from HSI to RGB )1( SIB          )60cos( cos 1 H HS IR  )(1 BRG  RG sector: 1200  H GB sector: 240120  H )1( SIR          )60cos( cos 1 H HS IG  )(1 GRB  )1( SIG          )60cos( cos 1 H HS IB  )(1 BGR  BR sector: 360240  H 120 HH 240 HH
  • 24. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Example: HSI Components of RGB Colors Hue Saturation Intensity RGB Image
  • 25. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Example: Manipulating HSI Components Hue Saturation Intensity RGB Image Hue Saturation Intensity RGB Image
  • 26. Color Image Processing There are 2 types of color image processes 1. Pseudocolor image process: Assigning colors to gray values based on a specific criterion. Gray scale images to be processed may be a single image or multiple images such as multispectral images 2. Full color image process: The process to manipulate real color images such as color photographs.
  • 27. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Pseudocolor Image Processing Why we need to assign colors to gray scale image? Answer: Human can distinguish different colors better than different shades of gray. Pseudo color = false color : In some case there is no “color” concept for a gray scale image but we can assign “false” colors to an image.
  • 28. Intensity Slicing or Density Slicing       TyxfC TyxfC yxg ),(if ),(if ),( 2 1 Formula: C1 = Color No. 1 C2 = Color No. 2 T Intensity Color C1 C2 T0 L-1 A gray scale image viewed as a 3D surface.
  • 29. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Intensity Slicing Example An X-ray image of a weld with cracks After assigning a yellow color to pixels with value 255 and a blue color to all other pixels.
  • 30. Multi Level Intensity Slicing kkk lyxflCyxg   ),(for),( 1 Ck = Color No. k lk = Threshold level k Intensity Color C 1 C2 0 L-1 l1 l2 l3 lklk-1 C3 Ck-1 Ck
  • 31. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Multi Level Intensity Slicing Example kkk lyxflCyxg   ),(for),( 1 Ck = Color No. k lk = Threshold level k An X-ray image of the Picker Thyroid Phantom. After density slicing into 8 colors
  • 32. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Color Coding Example A unique color is assigned to each intensity value. Gray-scale image of average monthly rainfall. Color coded image Color map South America region
  • 33. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Gray Level to Color Transformation Assigning colors to gray levels based on specific mapping functions Red component Green component Blue component Gray scale image
  • 34. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Gray Level to Color Transformation Example An X-ray image of a garment bag with a simulated explosive device An X-ray image of a garment bag Color coded images Transformations
  • 35. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Gray Level to Color Transformation Example An X-ray image of a garment bag with a simulated explosive device An X-ray image of a garment bag Color coded images Transformations
  • 36. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Pseudocolor Coding Used in the case where there are many monochrome images such as multispectral satellite images.
  • 37. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Pseudocolor Coding Example Washington D.C. area Visible blue = 0.45-0.52 mm Max water penetration Visible green = 0.52-0.60 mm Measuring plant Visible red = 0.63-0.69 mm Plant discrimination Near infrared = 0.76-0.90 mm Biomass and shoreline mapping 1 2 3 4 Red = Green = Blue = Color composite images 1 2 3 Red = Green = Blue = 1 2 4
  • 38. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Pseudocolor Coding Example Psuedocolor rendition of Jupiter moon Io A close-up Yellow areas = older sulfur deposits. Red areas = material ejected from active volcanoes.
  • 39. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Basics of Full-Color Image Processing 2 Methods: 1. Per-color-component processing: process each component separately. 2. Vector processing: treat each pixel as a vector to be processed. Example of per-color-component processing: smoothing an image By smoothing each RGB component separately.
  • 40. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Example: Full-Color Image and Variouis Color Space Components Color image CMYK components RGB components HSI components
  • 41. Color Transformation Formulation:  ),(),( yxfTyxg  f(x,y) = input color image, g(x,y) = output color image T = operation on f over a spatial neighborhood of (x,y) When only data at one pixel is used in the transformation, we can express the transformation as: ),,,( 21 nii rrrTs  i= 1, 2, …, n Where ri = color component of f(x,y) si = color component of g(x,y) Use to transform colors to colors. For RGB images, n = 3
  • 42. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Example: Color Transformation ),(),( ),(),( ),(),( yxkryxs yxkryxs yxkryxs BB GG RR    Formula for RGB: ),(),( yxkryxs II  Formula for CMY: )1(),(),( )1(),(),( )1(),(),( kyxkryxs kyxkryxs kyxkryxs YY MM CC    Formula for HSI: These 3 transformations give the same results. k = 0.7 I H,S
  • 43. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Color Complements Color complement replaces each color with its opposite color in the color circle of the Hue component. This operation is analogous to image negative in a gray scale image. Color circle
  • 44. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Color Complement Transformation Example
  • 45. Color Slicing Transformation            otherwise 2 if5.0 1 i njany jj i r W ar s We can perform “slicing” in color space: if the color of each pixel is far from a desired color more than threshold distance, we set that color to some specific color such as gray, otherwise we keep the original color unchanged. i= 1, 2, …, n or          otherwise if5.0 1 2 0 2 i n j jj i r Rar s Set to gray Keep the original color Set to gray Keep the original color i= 1, 2, …, n
  • 46. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Color Slicing Transformation Example Original image After color slicing
  • 47. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Tonal Correction Examples In these examples, only brightness and contrast are adjusted while keeping color unchanged. This can be done by using the same transformation for all RGB components. Power law transformations Contrast enhancement
  • 48. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Color Balancing Correction Examples Color imbalance: primary color components in white area are not balance. We can measure these components by using a color spectrometer. Color balancing can be performed by adjusting color components separately as seen in this slide.
  • 49. Histogram Equalization of a Full-Color Image  Histogram equalization of a color image can be performed by adjusting color intensity uniformly while leaving color unchanged.  The HSI model is suitable for histogram equalization where only Intensity (I) component is equalized.       k j j k j jrkk N n rprTs 0 0 )()( where r and s are intensity components of input and output color image.
  • 50. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Histogram Equalization of a Full-Color Image Original image After histogram equalization After increasing saturation component
  • 51. Color Image Smoothing 2 Methods: 1. Per-color-plane method: for RGB, CMY color models Smooth each color plane using moving averaging and the combine back to RGB 2. Smooth only Intensity component of a HSI image while leaving H and S unmodified.                            xy xy xy xy Syx Syx Syx Syx yxB K yxG K yxR K yx K yx ),( ),( ),( ),( ),( 1 ),( 1 ),( 1 ),( 1 ),( cc Note: 2 methods are not equivalent.
  • 52. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Color Image Smoothing Example (cont.) Color image Red Green Blue
  • 53. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Color Image Smoothing Example (cont.) Hue Saturation Intensity Color image HSI Components
  • 54. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Color Image Smoothing Example (cont.) Smooth all RGB components Smooth only I component of HSI (faster)
  • 55. Color Image Smoothing Example (cont.) Difference between smoothed results from 2 methods in the previous slide. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 56. Color Image Sharpening We can do in the same manner as color image smoothing: 1. Per-color-plane method for RGB,CMY images 2. Sharpening only I component of a HSI image Sharpening all RGB components Sharpening only I component of HSI
  • 57. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Color Image Sharpening Example (cont.) Difference between sharpened results from 2 methods in the previous slide.
  • 58. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Color Segmentation 2 Methods: 1. Segmented in HSI color space: A thresholding function based on color information in H and S Components. We rarely use I component for color image segmentation. 2. Segmentation in RGB vector space: A thresholding function based on distance in a color vector space.
  • 59. Color Segmentation in HSI Color Space Hue Saturation Intensity Color image 1 2 3 4 (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 60. Color Segmentation in HSI Color Space (cont.) Product of and 5 6 7 8 52Binary thresholding of S component with T = 10% Histogram of 6 Segmentation of red color pixels Red pixels (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 61. Color Segmentation in HSI Color Space (cont.) Color image Segmented results of red pixels (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 62. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Color Segmentation in RGB Vector Space 1. Each point with (R,G,B) coordinate in the vector space represents one color. 2. Segmentation is based on distance thresholding in a vector space       TyxD TyxD yxg T T )),,((if0 )),,((if1 ),( cc cc cT = color to be segmented. c(x,y) = RGB vector at pixel (x,y).D(u,v) = distance function
  • 63. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Example: Segmentation in RGB Vector Space Color image Results of segmentation in RGB vector space with Threshold value Reference color cT to be segmented boxtheinpixelofcoloraverageTc T = 1.25 times the SD of R,G,B values In the box
  • 64. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Gradient of a Color Image Since gradient is define only for a scalar image, there is no concept of gradient for a color image. We can’t compute gradient of each color component and combine the results to get the gradient of a color image. Red Green Blue Edges We see 4 objects. We see 2 objects.
  • 65. Gradient of a Color Image (cont.) One way to compute the maximum rate of change of a color image which is close to the meaning of gradient is to use the following formula: Gradient computed in RGB color space:   2 1 2sin22cos)()( 2 1 )(         xyyyxxyyxx gggggF             yyxx xy gg g2 tan 2 1 1  222 x B x G x R gxx          222 y B y G y R gyy          y B x B y G x G y R x R gxy               
  • 66. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Obtained using the formula in the previous slide Sum of gradients of each color component Original image Difference between 2 and 3 2 3 2 3 Gradient of a Color Image Example
  • 67. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Gradients of each color component Red Green Blue Gradient of a Color Image Example
  • 68. Noise in Color Images Noise can corrupt each color component independently. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Noise is less noticeable in a color image AWGN sh 2=800 AWGN sh 2=800 AWGN sh 2=800
  • 69. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Noise in Color Images Hue Saturation Intensity
  • 70. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Noise in Color Images Hue Saturation Intensity Salt & pepper noise in Green component
  • 71. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Color Image Compression JPEG2000 File Original image After lossy compression with ratio 230:1