SlideShare a Scribd company logo
1 of 73
Digital Image Processing
Colour Image Processing
Introduction
Today we’ll look at color image processing, covering:
• Color fundamentals
• Color models
2
Color Fundamentals
In 1666 Sir Isaac Newton discovered that when a
beam of sunlight passes through a glass prism, the
emerging beam is split into a spectrum of colors
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
3
Color Fundamentals (cont…)
The colors that humans and most animals perceive in
an object are determined by the nature of the light
reflected from the object
For example, green
objects reflect light
with wave lengths
primarily in the range
of 500 – 570 nm while
absorbing most of the
energy at other
wavelengths
Colors
Absorbed
4
Color Fundamentals (cont…)
Chromatic light spans the electromagnetic spectrum
from approximately 400 to 700 nm
As we mentioned before human color vision is
achieved through 6 to 7 million cones in each eye
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
5
Color Fundamentals (cont…)
Approximately 66% of these cones are sensitive to
red light, 33% to green light and 6% to blue light
Absorption curves for the different cones have been
determined experimentally
Strangely these do not match the CIE standards for
red (700nm), green (546.1nm) and blue (435.8nm)
light as the standards were developed before the
experiments!
6
Color Fundamentals (cont…)
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
7
Color Fundamentals (cont…)
3 basic qualities are used to describe the quality of a
chromatic light source:
• Radiance: the total amount of energy that flows from
the light source (measured in watts)
• Luminance: the amount of energy an observer perceives
from the light source (measured in lumens)
• Note we can have high radiance, but low luminance
• Brightness: a subjective (practically unmeasurable)
notion that embodies the intensity of light
We’ll return to these later on
8
CIE Chromacity Diagram
Specifying colors systematically can be achieved
using the CIE chromacity diagram
On this diagram the x-axis represents the proportion
of red and the y-axis represents the proportion of
green used
The proportion of blue used in a color is calculated
as:
z = 1 – (x + y)
9
CIE Chromacity Diagram (cont…)
Green: 62% green, 25%
red and 13% blue
Red: 32% green, 67% red
and 1% blue
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
10
CIE Chromacity Diagram (cont…)
Any color located on the boundary of the chromacity
chart is fully saturated
The point of equal energy has equal amounts of each
color and is the CIE standard for pure white
Any straight line joining two points in the diagram
defines all of the different colors that can be
obtained by combining these two colors additively
This can be easily extended to three points
11
CIE Chromacity Diagram (cont…)
This means the entire
color range cannot be
displayed based on any
three colors
The triangle shows the
typical color gamut
produced by RGB
monitors
The strange shape is the
gamut achieved by high
quality color printers
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
12
Color Models
From the previous discussion it should be obvious
that there are different ways to model color
We will consider two very popular models used in
color image processing:
• RGB (Red Green Blue)
• HIS (Hue Saturation Intensity)
13
RGB
In the RGB model each color appears in its
primary spectral components of red, green and
blue
The model is based on a Cartesian coordinate
system
• RGB values are at 3 corners
• Cyan magenta and yellow are at three other corners
• Black is at the origin
• White is the corner furthest from the origin
• Different colors are points on or inside the cube
represented by RGB vectors
14
RGB (cont…)
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
15
RGB (cont…)
Images represented in the RGB color model consist
of three component images – one for each primary
color
When fed into a monitor these images are combined
to create a composite color image
The number of bits used to represent each pixel is
referred to as the color depth
A 24-bit image is often referred to as a full-color
image as it allows = 16,777,216 colors
3
8
2
 
16
RGB (cont…)
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
17
The HSI Color Model
RGB is useful for hardware implementations and is
serendipitously related to the way in which the
human visual system works
However, RGB is not a particularly intuitive way in
which to describe colors
Rather when people describe colors they tend to use
hue, saturation and brightness
RGB is great for color generation, but HSI is great for
color description
18
The HSI Color Model (cont…)
The HSI model uses three measures to describe
colors:
• Hue: A color attribute that describes a pure color (pure
yellow, orange or red)
• Saturation: Gives a measure of how much a pure color is
diluted with white light
• Intensity: Brightness is nearly impossible to measure
because it is so subjective. Instead we use intensity.
Intensity is the same achromatic notion that we have
seen in grey level images
19
HSI, Intensity & RGB
Intensity can be extracted from RGB images – which
is not surprising if we stop to think about it
Remember the diagonal on the RGB color cube that
we saw previously ran from black to white
Now consider if we stand this cube on the black
vertex and position the white vertex directly above it
20
HSI, Intensity & RGB (cont…)
Now the intensity component
of any color can be
determined by passing a
plane perpendicular to
the intensity axis and
containing the color
point
The intersection of the plane
with the intensity axis gives us the intensity
component of the color
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
21
HSI, Hue & RGB
In a similar way we can extract the hue from the RGB
color cube
Consider a plane defined by
the three points cyan, black
and white
All points contained in
this plane must have the
same hue (cyan) as black
and white cannot contribute
hue information to a color
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
22
The HSI Color Model
Consider if we look straight down at the RGB cube
as it was arranged previously
We would see a hexagonal
shape with each primary
color separated by 120°
and secondary colors
at 60° from the primaries
So the HSI model is
composed of a vertical
intensity axis and the locus of color points that lie
on planes perpendicular to that axis
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
23
The HSI Color Model (cont…)
To the right we see a hexagonal
shape and an arbitrary color
point
• The hue is determined by an
angle from a reference point,
usually red
• The saturation is the distance from the origin to
the point
• The intensity is determined by how far up the
vertical intensity axis this hexagonal plane sits (not
apparent from this diagram
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
24
The HSI Color Model (cont…)
Because the only important things are the angle and
the length of the saturation vector this plane is also
often represented as a circle or a triangle
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
25
HSI Model Examples
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
26
HSI Model Examples
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
27
Converting From RGB To HSI
Given a color as R, G, and B its H, S, and I values are
calculated as follows:
H 
 if B  G
360  if B  G




  cos1
1
2 R G
  R  B
 
 
R G
 
2
 R  B
  G  B
 
 
1
2










S 1
3
R  G  B
 
min R,G,B
 
 

I  1
3 R  G  B
 
28
Converting From HSI To RGB
Given a color as H, S, and I it’s R, G, and B values are
calculated as follows:
• RG sector (0 <= H < 120°)
• GB sector (120° <= H < 240°)

G  3I  R  B
 

B  I 1 S
 

R  I 1
ScosH
cos 60  H
 






B  3I  R  G
 
R  I 1 S
  G  I 1
Scos H 120
 
cos H 60
 






29
Converting From HSI To RGB (cont…)
• BR sector (240° <= H <= 360°)

R  3I  G  B
 

G  I 1 S
 
 
  









180
cos
240
cos
1
H
H
S
I
B
30
HSI & RGB
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
RGB Color Cube
H, S, and I Components of RGB Color Cube 31
Manipulating Images In The HSI Model
In order to manipulate an image under the HSI
model we:
• First convert it from RGB to HSI
• Perform our manipulations under HSI
• Finally convert the image back from HSI to RGB
RGB
Image
HSI Image
RGB
Image
Manipulations
32
RGB -> HSI -> RGB
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
RGB
Image
Saturation
Hue
Intensity
33
Pseudocolor Image Processing
Pseudocolor (also called false color) image
processing consists of assigning colors to
grey values based on a specific criterion
The principle use of Pseudocolor image
processing is for human visualization
• Humans can discern between thousands of
color shades and intensities, compared to only
about two dozen or so shades of grey
34
Pseudo Color Image Processing –
Intensity Slicing
Intensity slicing and color coding is one of the
simplest kinds of Pseudocolor image processing
First we consider an image as a 3D function
mapping spatial coordinates to intensities (that
we can consider heights)
Now consider placing planes at certain levels
parallel to the coordinate plane
If a value is on one side of such a plane it is
rendered in one color, and a different color if on
the other side
35
Pseudocolor Image Processing –
Intensity Slicing (cont…)
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
36
RGB -> HSI -> RGB (cont…)
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
37
RGB -> HSI -> RGB (cont…)
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
38
RGB -> HSI -> RGB (cont…)
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
39
RGB -> HSI -> RGB (cont…)
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
40
Chapter 6
Color Image Processing
41
Chapter 6
Color Image Processing
42
Chapter 6
Color Image Processing
43
Chapter 6
Color Image Processing
44
Chapter 6
Color Image Processing
45
Chapter 6
Color Image Processing
46
Chapter 6
Color Image Processing
47
Chapter 6
Color Image Processing
48
Chapter 6
Color Image Processing
49
Chapter 6
Color Image Processing
50
Chapter 6
Color Image Processing
51
Chapter 6
Color Image Processing
52
Chapter 6
Color Image Processing
53
Chapter 6
Color Image Processing
54
Chapter 6
Color Image Processing
55
Chapter 6
Color Image Processing
56
Chapter 6
Color Image Processing
57
Chapter 6
Color Image Processing
58
Chapter 6
Color Image Processing
59
Chapter 6
Color Image Processing
60
Chapter 6
Color Image Processing
61
Chapter 6
Color Image Processing
62
Chapter 6
Color Image Processing
63
Chapter 6
Color Image Processing
64
Chapter 6
Color Image Processing
65
Chapter 6
Color Image Processing
66
Chapter 6
Color Image Processing
67
Chapter 6
Color Image Processing
68
Chapter 6
Color Image Processing
69
Chapter 6
Color Image Processing
70
Chapter 6
Color Image Processing
71
Chapter 6
Color Image Processing
72
Chapter 6
Color Image Processing
73

More Related Content

Similar to image-pro.ppt

Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: BasicsA B Shinde
 
Color Image Processing.pptx
Color Image Processing.pptxColor Image Processing.pptx
Color Image Processing.pptxAntu Chowdhury
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processingkiruthiammu
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING anam singla
 
Color image processing ppt
Color image processing pptColor image processing ppt
Color image processing pptMvidhya9
 
Colour image processing(fip)
Colour image processing(fip)Colour image processing(fip)
Colour image processing(fip)Vijay Kumar
 
Color models in Digitel image processing
Color models in Digitel image processingColor models in Digitel image processing
Color models in Digitel image processingAryan Shivhare
 
Lecnoninecolorspacemodelindigitalimageprocess
LecnoninecolorspacemodelindigitalimageprocessLecnoninecolorspacemodelindigitalimageprocess
LecnoninecolorspacemodelindigitalimageprocessIrsaAamir
 
Important features of color image processing
Important features of color image processingImportant features of color image processing
Important features of color image processingdhananjeyanrece
 
Color model in computer graphics
Color model in computer graphicsColor model in computer graphics
Color model in computer graphicsPuja Dhakal
 
CG04 Color Models.ppsx
CG04 Color Models.ppsxCG04 Color Models.ppsx
CG04 Color Models.ppsxjyoti_lakhani
 
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
 

Similar to image-pro.ppt (20)

Color image processing
Color image processingColor image processing
Color image processing
 
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)
 
ch1ip.ppt
ch1ip.pptch1ip.ppt
ch1ip.ppt
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 
Color models
Color modelsColor models
Color models
 
Color Image Processing.pptx
Color Image Processing.pptxColor Image Processing.pptx
Color Image Processing.pptx
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING
 
Color image processing ppt
Color image processing pptColor image processing ppt
Color image processing ppt
 
Colour image processing(fip)
Colour image processing(fip)Colour image processing(fip)
Colour image processing(fip)
 
About Color
About ColorAbout Color
About Color
 
color image processing
color image processingcolor image processing
color image processing
 
Color
ColorColor
Color
 
Lect 06
Lect 06 Lect 06
Lect 06
 
Color models in Digitel image processing
Color models in Digitel image processingColor models in Digitel image processing
Color models in Digitel image processing
 
Lecnoninecolorspacemodelindigitalimageprocess
LecnoninecolorspacemodelindigitalimageprocessLecnoninecolorspacemodelindigitalimageprocess
Lecnoninecolorspacemodelindigitalimageprocess
 
Important features of color image processing
Important features of color image processingImportant features of color image processing
Important features of color image processing
 
Color model in computer graphics
Color model in computer graphicsColor model in computer graphics
Color model in computer graphics
 
CG04 Color Models.ppsx
CG04 Color Models.ppsxCG04 Color Models.ppsx
CG04 Color Models.ppsx
 
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
 

Recently uploaded

Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 

Recently uploaded (20)

Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 

image-pro.ppt

  • 2. Introduction Today we’ll look at color image processing, covering: • Color fundamentals • Color models 2
  • 3. Color Fundamentals In 1666 Sir Isaac Newton discovered that when a beam of sunlight passes through a glass prism, the emerging beam is split into a spectrum of colors Images taken from Gonzalez & Woods, Digital Image Processing (2002) 3
  • 4. Color Fundamentals (cont…) The colors that humans and most animals perceive in an object are determined by the nature of the light reflected from the object For example, green objects reflect light with wave lengths primarily in the range of 500 – 570 nm while absorbing most of the energy at other wavelengths Colors Absorbed 4
  • 5. Color Fundamentals (cont…) Chromatic light spans the electromagnetic spectrum from approximately 400 to 700 nm As we mentioned before human color vision is achieved through 6 to 7 million cones in each eye Images taken from Gonzalez & Woods, Digital Image Processing (2002) 5
  • 6. Color Fundamentals (cont…) Approximately 66% of these cones are sensitive to red light, 33% to green light and 6% to blue light Absorption curves for the different cones have been determined experimentally Strangely these do not match the CIE standards for red (700nm), green (546.1nm) and blue (435.8nm) light as the standards were developed before the experiments! 6
  • 8. Color Fundamentals (cont…) 3 basic qualities are used to describe the quality of a chromatic light source: • Radiance: the total amount of energy that flows from the light source (measured in watts) • Luminance: the amount of energy an observer perceives from the light source (measured in lumens) • Note we can have high radiance, but low luminance • Brightness: a subjective (practically unmeasurable) notion that embodies the intensity of light We’ll return to these later on 8
  • 9. CIE Chromacity Diagram Specifying colors systematically can be achieved using the CIE chromacity diagram On this diagram the x-axis represents the proportion of red and the y-axis represents the proportion of green used The proportion of blue used in a color is calculated as: z = 1 – (x + y) 9
  • 10. CIE Chromacity Diagram (cont…) Green: 62% green, 25% red and 13% blue Red: 32% green, 67% red and 1% blue Images taken from Gonzalez & Woods, Digital Image Processing (2002) 10
  • 11. CIE Chromacity Diagram (cont…) Any color located on the boundary of the chromacity chart is fully saturated The point of equal energy has equal amounts of each color and is the CIE standard for pure white Any straight line joining two points in the diagram defines all of the different colors that can be obtained by combining these two colors additively This can be easily extended to three points 11
  • 12. CIE Chromacity Diagram (cont…) This means the entire color range cannot be displayed based on any three colors The triangle shows the typical color gamut produced by RGB monitors The strange shape is the gamut achieved by high quality color printers Images taken from Gonzalez & Woods, Digital Image Processing (2002) 12
  • 13. Color Models From the previous discussion it should be obvious that there are different ways to model color We will consider two very popular models used in color image processing: • RGB (Red Green Blue) • HIS (Hue Saturation Intensity) 13
  • 14. RGB In the RGB model each color appears in its primary spectral components of red, green and blue The model is based on a Cartesian coordinate system • RGB values are at 3 corners • Cyan magenta and yellow are at three other corners • Black is at the origin • White is the corner furthest from the origin • Different colors are points on or inside the cube represented by RGB vectors 14
  • 16. RGB (cont…) Images represented in the RGB color model consist of three component images – one for each primary color When fed into a monitor these images are combined to create a composite color image The number of bits used to represent each pixel is referred to as the color depth A 24-bit image is often referred to as a full-color image as it allows = 16,777,216 colors 3 8 2   16
  • 18. The HSI Color Model RGB is useful for hardware implementations and is serendipitously related to the way in which the human visual system works However, RGB is not a particularly intuitive way in which to describe colors Rather when people describe colors they tend to use hue, saturation and brightness RGB is great for color generation, but HSI is great for color description 18
  • 19. The HSI Color Model (cont…) The HSI model uses three measures to describe colors: • Hue: A color attribute that describes a pure color (pure yellow, orange or red) • Saturation: Gives a measure of how much a pure color is diluted with white light • Intensity: Brightness is nearly impossible to measure because it is so subjective. Instead we use intensity. Intensity is the same achromatic notion that we have seen in grey level images 19
  • 20. HSI, Intensity & RGB Intensity can be extracted from RGB images – which is not surprising if we stop to think about it Remember the diagonal on the RGB color cube that we saw previously ran from black to white Now consider if we stand this cube on the black vertex and position the white vertex directly above it 20
  • 21. HSI, Intensity & RGB (cont…) Now the intensity component of any color can be determined by passing a plane perpendicular to the intensity axis and containing the color point The intersection of the plane with the intensity axis gives us the intensity component of the color Images taken from Gonzalez & Woods, Digital Image Processing (2002) 21
  • 22. HSI, Hue & RGB In a similar way we can extract the hue from the RGB color cube Consider a plane defined by the three points cyan, black and white All points contained in this plane must have the same hue (cyan) as black and white cannot contribute hue information to a color Images taken from Gonzalez & Woods, Digital Image Processing (2002) 22
  • 23. The HSI Color Model Consider if we look straight down at the RGB cube as it was arranged previously We would see a hexagonal shape with each primary color separated by 120° and secondary colors at 60° from the primaries So the HSI model is composed of a vertical intensity axis and the locus of color points that lie on planes perpendicular to that axis Images taken from Gonzalez & Woods, Digital Image Processing (2002) 23
  • 24. The HSI Color Model (cont…) To the right we see a hexagonal shape and an arbitrary color point • The hue is determined by an angle from a reference point, usually red • The saturation is the distance from the origin to the point • The intensity is determined by how far up the vertical intensity axis this hexagonal plane sits (not apparent from this diagram Images taken from Gonzalez & Woods, Digital Image Processing (2002) 24
  • 25. The HSI Color Model (cont…) Because the only important things are the angle and the length of the saturation vector this plane is also often represented as a circle or a triangle Images taken from Gonzalez & Woods, Digital Image Processing (2002) 25
  • 28. Converting From RGB To HSI Given a color as R, G, and B its H, S, and I values are calculated as follows: H   if B  G 360  if B  G       cos1 1 2 R G   R  B     R G   2  R  B   G  B     1 2           S 1 3 R  G  B   min R,G,B      I  1 3 R  G  B   28
  • 29. Converting From HSI To RGB Given a color as H, S, and I it’s R, G, and B values are calculated as follows: • RG sector (0 <= H < 120°) • GB sector (120° <= H < 240°)  G  3I  R  B    B  I 1 S    R  I 1 ScosH cos 60  H         B  3I  R  G   R  I 1 S   G  I 1 Scos H 120   cos H 60         29
  • 30. Converting From HSI To RGB (cont…) • BR sector (240° <= H <= 360°)  R  3I  G  B    G  I 1 S                 180 cos 240 cos 1 H H S I B 30
  • 31. HSI & RGB Images taken from Gonzalez & Woods, Digital Image Processing (2002) RGB Color Cube H, S, and I Components of RGB Color Cube 31
  • 32. Manipulating Images In The HSI Model In order to manipulate an image under the HSI model we: • First convert it from RGB to HSI • Perform our manipulations under HSI • Finally convert the image back from HSI to RGB RGB Image HSI Image RGB Image Manipulations 32
  • 33. RGB -> HSI -> RGB Images taken from Gonzalez & Woods, Digital Image Processing (2002) RGB Image Saturation Hue Intensity 33
  • 34. Pseudocolor Image Processing Pseudocolor (also called false color) image processing consists of assigning colors to grey values based on a specific criterion The principle use of Pseudocolor image processing is for human visualization • Humans can discern between thousands of color shades and intensities, compared to only about two dozen or so shades of grey 34
  • 35. Pseudo Color Image Processing – Intensity Slicing Intensity slicing and color coding is one of the simplest kinds of Pseudocolor image processing First we consider an image as a 3D function mapping spatial coordinates to intensities (that we can consider heights) Now consider placing planes at certain levels parallel to the coordinate plane If a value is on one side of such a plane it is rendered in one color, and a different color if on the other side 35
  • 36. Pseudocolor Image Processing – Intensity Slicing (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002) 36
  • 37. RGB -> HSI -> RGB (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002) 37
  • 38. RGB -> HSI -> RGB (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002) 38
  • 39. RGB -> HSI -> RGB (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002) 39
  • 40. RGB -> HSI -> RGB (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002) 40
  • 41. Chapter 6 Color Image Processing 41
  • 42. Chapter 6 Color Image Processing 42
  • 43. Chapter 6 Color Image Processing 43
  • 44. Chapter 6 Color Image Processing 44
  • 45. Chapter 6 Color Image Processing 45
  • 46. Chapter 6 Color Image Processing 46
  • 47. Chapter 6 Color Image Processing 47
  • 48. Chapter 6 Color Image Processing 48
  • 49. Chapter 6 Color Image Processing 49
  • 50. Chapter 6 Color Image Processing 50
  • 51. Chapter 6 Color Image Processing 51
  • 52. Chapter 6 Color Image Processing 52
  • 53. Chapter 6 Color Image Processing 53
  • 54. Chapter 6 Color Image Processing 54
  • 55. Chapter 6 Color Image Processing 55
  • 56. Chapter 6 Color Image Processing 56
  • 57. Chapter 6 Color Image Processing 57
  • 58. Chapter 6 Color Image Processing 58
  • 59. Chapter 6 Color Image Processing 59
  • 60. Chapter 6 Color Image Processing 60
  • 61. Chapter 6 Color Image Processing 61
  • 62. Chapter 6 Color Image Processing 62
  • 63. Chapter 6 Color Image Processing 63
  • 64. Chapter 6 Color Image Processing 64
  • 65. Chapter 6 Color Image Processing 65
  • 66. Chapter 6 Color Image Processing 66
  • 67. Chapter 6 Color Image Processing 67
  • 68. Chapter 6 Color Image Processing 68
  • 69. Chapter 6 Color Image Processing 69
  • 70. Chapter 6 Color Image Processing 70
  • 71. Chapter 6 Color Image Processing 71
  • 72. Chapter 6 Color Image Processing 72
  • 73. Chapter 6 Color Image Processing 73