0% found this document useful (0 votes)
24 views41 pages

Chap 6 Color1

Uploaded by

mathi.malar1000
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views41 pages

Chap 6 Color1

Uploaded by

mathi.malar1000
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 41

Color Image Processing

Preview
 Why use color in image processing?
 Color is a powerful descriptor


Object identification and extraction

eg. Face detection using skin colors
 Humans can discern thousands of color shades

and intensities

Human discern only two dozen shades of
grays
Preview (cont.)
 Two category of color image
processing
 Full color processing

Images are acquired from full-color sensor or
equipments
 Pseudo-color processing

In the past decade, color sensors and
processing hardware are not available

Colors are assigned to a range of monochrome
intensities
Outline
 Color fundamentals
 Color models
 Basics of full-color image
processing
 Noise in color images
 Color image compression
Color fundamentals
 Physical phenomenon
 Physical nature of color is known

 Psysio-psychological phenomenon
 How human brain perceive and interpret
color?
Color fundamentals (cont.)
 1666, Isaac Newton
Visible light
 Chromatic light span the
electromagnetic spectrum (EM) from
400 to 700 nm
Color fundamentals (cont.)
 The color that human perceive in an
object = the light reflected from the
object

scene
Illumination source

reflection
eye
describe a chromatic light
source
 Radiance: total amount of energy that flow from the
light source, measured in watts (W)
 Luminance: amount of energy an observer perceives
from a light source, measured in lumens (lm)
 infrared light: high radiance, but 0 luminance
 Brightness: subjective descriptor that is hard to
measure, similar to the achromatic notion of intensity
How human eyes sense
light?
 3 principal sensing categories in
eyes
 Red light 65%, green light 33%, and
blue light 2%
Primary and secondary
colors
In 1931, International Commission on
Illumination defines
 specific wavelength values to the primary
colors
 B = 435.8 nm, G = 546.1 nm, R = 700 nm
 However, we know that no single color may
be called red, green, or blue
 Secondary colors:
G+B=Cyan, R+G=Yellow, R+B=Magenta
Primary colors of light v.s.
primary colors of pigments
 Primary color of pigments
 Color that subtracts or absorbs a primary
color of light and reflects or transmits the
other two
Color of light: R G B

Color of pigments: absorb R absorb G absorb B


Cyan Magenta Yellow
Application of additive
nature of light colors
 Color TV
CIE XYZ model
 RGB -> CIE XYZ model
 X   0.431 0.342 0.178  R 
 Y   0.222 0.707 0.071  G 
    
 Z   0.020 0.130 0.939  B 
 Normalized tristimulus values
X Y Z
x y z
X Y  Z X Y  Z X Y  Z

=> x+y+z=1. Thus, x, y (chromaticity coordinate) is


enough to describe all colors
By additivity of colors:
Any color inside the
triangle can be produce
by combinations of the
three initial colors

RGB gamut of
monitors
Color gamut of
printers
Outline
 Color fundamentals
 Color models
 Basics of full-color image
processing
 Color transformations
 Smoothing and sharpening
Color models
 Color model / color space / color system
 Specify colors in a standard way
 A coordinate system that each color is
represented by a single point

 RGB model Suitable for hardware


 CYM model (printers/ monitors / cameras)
 CYMK model or
Applications (graphics / animations)
 HSI model

- match
CYMK - Cyan, Yellow, Magenta, the human
Black description
 HIS  Hue , Saturation, Intensity
RGB color model
Pixel depth
 Pixel depth: the number of bits used
to represent each pixel in RGB space
 Full-color image: 24-bit RGB color
image
 (R, G, B) = (8 bits, 8 bits, 8 bits)
 Total no of colos = (2 pow 8 pow 3)
Safe RGB colors
 Subset of colors is enough for some
applications
 Safe RGB colors (safe Web colors, safe
browser colors)

(6)3 = 216
Safe RGB color (cont.)

Full color cube Safe color cube


000000  black
FFFFFF  White
CMY model (+Black =
CMYK)
 CMY: secondary colors of light /
primary colors of pigments
 Used to generate hardcopy output

 C  1  R
 M  1   G
     
 Y  1  B 
HSI color model
 Will you describe a color using its R, G,
B components?
 Human describe a color by its hue,
saturation, and brightness
 Hue : color attribute
 Saturation: purity of color (white->0,
primary color->1)
 Brightness: achromatic notion of intensity
HSI color model (cont.)
 RGB -> HSI model Relation
Colors on this triangle
Have the same hue
Intensity
line
saturation
HSI model: hue and
saturation
HSI model
Convert colors from RGB – HSI

I/P : Image RGB color Format


Hue (H) = Theta (an angle)  if B<=G
360 – Theta  if B>G

Theta = cos -1
{ ½ [(R-G) + (R-B)] /
[(R-G)2 + (R-B)(G-B)]2}

Saturation (S) = 1- [3/(R+G+B)*[min()R,G,B]]

Intensity (I) = 1/3 (R+G+B)


Convert HIS  RGB

RG Sector – (0 <=H <120 degrees)

B=I(1-S)
R=I[1+((S cos H) / cos (60deg – H))]
G = 3I – (R+B)

GB Sector – (120 <=H <240 degrees)


H = H-120 deg

R=I(1-S)
G=I[1+((S cos H) / cos (60deg – H))]
B = 3I – (R+B)

BR Sector – (240 <=H <360 degrees)


H = H-240 deg

G=I(1-S)
B=I[1+((S cos H) / cos (60deg – H))]
R= 3I – (R+B)
Manipulating
HSI component images

R,G,B Hue

intensity
saturation
Outline
 Color fundamentals
 Color models
 Basics of full-color image
processing
 Color transformations
 Smoothing and sharpening
Color pixel
 A pixel at (x,y) is a vector in the color
space
 RGB color space
 R ( x, y ) 
c( x, y )  G ( x, y )
 B ( x, y ) 

c.f. gray-scale image


f(x,y) = I(x,y)
Example: spatial mask
Dealing with color vector?
 Per-color-component processing
 Process each color component

 Vector-based processing
 Process the color vector of each pixel

 When can the above methods be equivalent?


 Process can be applied to both scalars and

vectors
 Operation on each component of a vector

must be independent of the other


component
Two spatial processing
categories
 Similar to gray scale processing
studied before, we have to major
categories
 Pixel-wise processing
 Neighborhood processing
Color image smoothing
 Neighborhood processing
Outline
 Color fundamentals
 Color models
 Pseudo-color image processing
 Basics of full-color image
processing
 Noise in Color Images
Noises in color Images
 Diff noise levels caused by differences
in the relative strength of illumination
of each color channels

 EG: use of Red (reject) filter in ccd


camera reduces illumination of red
sensors
original R

G B
Color Image Compression
 No. of bits rep. for color images are
3times the no.of bits of gray scale
images
 Data Compression is needed for
 Storage
 Transmission of colors
 Def :
 Process of reducing / eliminating
redundant or irrelevant data

You might also like