M4 Chapter 6
M4 Chapter 6
•We do not see objects, but the light that has been reflected by or transmitted
through the objects
Color Fundamentals
In 1666 Sir Isaac Newton discovered that g (2002) when a beam
of sunlight passes through a glass prism, the emerging beam is
split into a spectrum of colors.
8
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
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.
10
Three basic quantities 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)
13
Chromatic light spans the electromagnetic spectrum from approximately
400 to 700 nm.
Human color vision is achieved through 6 to 7 million cones in each eye.
Three principal sensing groups:
–66% of these cones are sensitive to red light
–33% to green light
–2% 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!
The primary colors can be added to produce the secondary colors.
Mixing the three primaries produces white.
Mixing a secondary with its opposite primary produces white
(e.g. red+cyan).
Primary colors of light (red, green, blue)
Primary colors of pigments (colorants)
– A color that subtracts or absorbs a primary color of light and
reflects the other two.
– These are cyan, magenta and yellow (CMY).
– A proper combination of pigment primaries produces black.
18
Primary and Secondary Colors (cont.)
Additive primary colors: RGB
use in the case of light sources
such as color monitors
Saturation: the amount of white light mixed with a hue. Pure colors are
fully saturated. Pink (red+white) is less saturated.
Hue and saturation are called chromaticity.
Therefore any color is characterized by its brightness and chromaticity.
The amounts of red, green and blue needed to form a particular color
are called tristimulus values and are denoted by X, Y, Z.
21
6.2 Color modules
RGB Color model
6.2.2 CMY and CMYK Color Models
• Additive color won’t work for printing because we can’t begin with
black.
• We must begin with a piece of paper, and that’s usually white.
• White, as we know, is all colors. So we can’t add to all colors. We
must subtract.
• Furthermore, an offset printing press can’t generate the enormous
number of colors available on a computer screen.
• We need to run a piece of paper through the press for each ink
6.3 Pseudo color image processing
•Pseudo colour (also called false colour) image processing consists of assigning colours
to grey values based on a specific criterion
•The principle use of pseudo colour image processing is for human visualisation
• Humans can discern between thousands of colour shades and intensities,
compared to only about two dozen or so shades of grey
True-color images are images with natural color rendition: a red apple
appears red, a blue ocean appears blue, etc. It’s difficult to achieve
absolute true color in images, but being approximately close to human
perception is acceptable.
False color images, on the other hand, sacrifices natural color rendition
in order to facilitate the detection of some objects. They are mainly used
for satellite and space images.
– Intensity slicing and colour coding is one of the simplest kinds of
pseudocolour image processing
– First we consider an image as a 3D function mapping spatial
coordinates to intensities
– Now consider placing planes at certain levels parallel to the
coordinate plane
– If a value is one side of such a plane it is rendered in one colour, and
a different colour if on the other side
•In general intensity slicing can be summarised as:
– Let l0 represent black [f(x, y) = 0] and let lL-1 represent white [f(x, y) = L-1]
– Suppose P planes perpendicular to the intensity axis are defined at levels l1, l2,
l
…, p
– Assuming that 0 < P < L-1 then the P planes partition the grey scale into P
+ 1 intervals V1, V2,…,VP+1
– Grey level colour assignments can then be made according to the relation:
– where ck is the colour associated with the kth intensity level Vk defined by the
partitioning planes at l = k – 1 and l = k
Module 4
Chapter 3 Morphological Image Processing
• Preliminaries,
• Erosion and Dilation,
• Opening and Closing,
• The Hit-or-Miss Transforms,
• Some Basic Morphological Algorithms.
• [Text: Chapter 9: Sections 9.1 to 9.5]
Morphology
What are Morphological Operations?
https://www.mathwarehouse.com/animated-gifs/transformati
ons.php#reflect-point-x-axis
Rotation
Operators by graphical example
Logical operators for binary Images
Structuring Element
How structuring elements are used
Example: Dilation
Cont….
Cont…
Cont…
Cont…
Cont…
Cont..
Cont….
Example 2:dilation
Example: Erosion
Example 2:Erosion
3 .Opening and Closing
• Opening generally smoothest the contour of ab object, break narrow
Isthmuses and eliminates thin protrusions.