Beruflich Dokumente
Kultur Dokumente
• IMPORTANT NOTE:
1
4/24/2019
– …..
• Pseudocolor Image Processing
2
4/24/2019
3
4/24/2019
4
4/24/2019
Mixing Colors
LIGHT SOURCE
Primary color (of light) is the one that
transmits the primary color and
subtracts the other two.
PIGMENT ( REFLECTION)
Primary color (of pigments) is the one
that subtracts or absorbs a primary
color of light and reflects or transmits
the other two.
A pigment is a material that changes the
color of reflected or transmitted light as
the result of wavelength-selective
absorption. e.g printed paper or any
object which reflects light.
5
4/24/2019
X Y Z
x y z
X Y Z X Y Z X Y Z
x y z 1
6
4/24/2019
Chromaticity Diagram
• A way of showing/specifying color
• Green pt marked (62% green, 25%
red and 13% blue)
• Boundary of tongue shaped shows
pure colors (violet 380nm to red
780nm)
• Straight line between two pts
shows color profiles between them
• Any pt on the boundary is fully
saturated (max Saturation)
• As the point leaves boundary and
reaches point of equal energy
becomes less and less saturated
• Saturation = Zero, at the Point of
Equal Energy.
• Extension of this to three colors is
simple
Color
Gamut
7
4/24/2019
Common Misperception
• A common misperception is that
we can produce all possible colors
by adding three primary colors.
• We can produce limited colors by
additive color mixing of three
primary (or any three) colors; But
not all.
• You can see that any triangle with
three vertices fixed at any three
colors in the diagram can not cover
the entire spectrum.
• So, we would also need to change
wavelength for full spectrum.
Color Models
• Specification of colors
• Color models:
– RGB (red, green blue)
– CMY (cyan, magenta, yellow)
– CMYK (cyan, magenta, yellow, black)
– HSI (hue, saturation, intensity)
8
4/24/2019
9
4/24/2019
10
4/24/2019
11
4/24/2019
C 1 R
M 1 G
Y 1 B
12
4/24/2019
HSI Model
HSI Model
13
4/24/2019
HSI
Model
HSI Model
14
4/24/2019
RGB to HSI
if B G
1
( R G ) ( R B)
cos 2
H
1
1/ 2
360 if B G
( R G ) ( R B)(G B )
2
3
S 1 [min( R, G, B)]
( R G B)
1
I ( R G B)
3
RGB to HSI
15
4/24/2019
HSI to RGB
16
4/24/2019
Intensity Slicing
17
4/24/2019
Intensity
Slicing
Intensity Slicing
18
4/24/2019
Color Images
Full-color image
(Image obtained by
Pseudo-color image
genuine acquisition
(Color is artificially
system like camera,
generated to show
scanner)
functionality)
19
4/24/2019
SAMPLE QUESTIONS
• Convert an Image from RGB to HSI and vice versa
• Convert an Image from RGB to grey scale
• Allocate a grey scale image pseudo colors according to a plotted function.
• Color Image segmentation. Convert to HIS and then filter on Hue for color
• Color image Smoothing and Sharpening
• Short Questions to test concepts
20