Lecture 08 - Introduction To Machine Vision
Lecture 08 - Introduction To Machine Vision
R. A. Prabhath Buddhika
B.Sc. Eng. (Hons), M.Sc.
Department of Electrical Electronic and Systems Engineering
Faculty of Engineering
NSBM Green University
What is an Image?
When x, y, and the intensity values of f are all finite, discrete quantities, we
call the image a digital image.
2
Digital Image Processing
These elements are called picture elements, image elements, pels, and pixels.
Pixel is the term used most widely to denote the elements of a digital image.
3
Computer Vision
However, the boundary between Image Processing and Computer Vision is not
quite clear.
Some say: Image processing is a process where input and output both are images
and Computer Vision is a process where input is an image and output is a decision.
4
Machine Vision
5
The Origins Of Digital Image Processing
7
A digital picture made in 1922 from a tape
punched after the signals had crossed the
Atlantic twice. (McFarlane.)
8
Initial Issues on Quality
Some of the initial problems in improving the visual quality of these early digital
pictures were related to the selection of printing procedures and the distribution
of intensity levels.
The printing method used to obtain Figure on slide 07 was abandoned toward the
end of 1921 in favor of a technique based on photographic reproduction made
from tapes perforated at the telegraph receiving terminal.
Figure on slide 08 shows an image obtained using this method. The improvements
over previous figure are evident, both in tonal quality and in resolution.
9
Impact Of Computers For Digital Image
Processing
The concept of a computer dates back to the invention of the abacus in Asia
Minor, more than 5000 years ago. More recently, there have been
developments in the past two centuries that are the foundation of what we
call a computer today.
However, the basis for what we call a modern digital computer dates back to
only the 1940s, with the introduction by John von Neumann of two key
concepts:
10
Impact Of Computers For Digital Image
Processing
These two ideas are the foundation of a central processing unit (CPU), which
is at the heart of computers today. Starting with von Neumann, there were a
series of key advances that led to computers powerful enough to be used
for digital image processing.
11
Impact Of Computers For Digital Image
Processing
13
Examples Of Fields That Use Digital Image
Processing
Gamma-Ray Imaging
X-Ray Imaging
14
Examples Of Fields That Use Digital Image
Processing
GAMMA-RAY IMAGING
Major uses of imaging based on gamma rays include nuclear medicine and
astronomical observations. In nuclear medicine, the approach is to inject a
patient with a radioactive isotope that emits gamma rays as it decays.
Images are produced from the emissions collected by gamma-ray detectors.
15
Examples Of Fields That Use Digital Image
Processing
X-RAY IMAGING
X-rays are among the oldest sources of EM radiation used for imaging. The
best known use of X-rays is medical diagnostics, but they are also used
extensively in industry and other areas, such as astronomy.
16
Examples Of Fields That Use Digital Image
Processing
17
Examples Of Fields That Use Digital Image
Processing
It is not surprising that imaging in this band outweighs by far all the others in
terms of breadth of application. The infrared band often is used in
conjunction with visual imaging.
18
Examples Of Fields That Use Digital Image
Processing
19
Examples Of Fields That Use Digital Image
Processing
In medicine, radio waves are used in magnetic resonance imaging (MRI). This
technique places a patient in a powerful magnet and passes radio waves
through the individual’s body in short pulses. Each pulse causes a responding
pulse of radio waves to be emitted by the patient’s tissues. The location
from which these signals originate and their strength are determined by a
computer, which produces a two-dimensional image of a section of the
patient.
20
Examples Of Fields That Use Digital Image
Processing
21
Components of a general-purpose image
processing system
22
Electromagnetic Spectrum
23
Electromagnetic Spectrum
24
Electromagnetic Spectrum
25
Electromagnetic Spectrum
Thus, radio waves have photons with low energies, microwaves have more
energy than radio waves, infrared still more, then visible, ultraviolet, X-rays,
and finally gamma rays, the most energetic of all.
26
Visible light
The visible band of the electromagnetic spectrum spans the range from
approximately 430 nm (violet) to about 790 nm (red).
For convenience, the color spectrum is divided into six broad regions: violet,
blue, green, yellow, orange, and red.
No color ends abruptly; rather, each range blends smoothly into the next, as
the figure on slide 23 shows.
27
Color objects
The colors perceived in an object are determined by the nature of the light
reflected by the object.
A body that reflects light relatively balanced in all visible wavelengths
appears white to the observer.
However, a body that favors reflectance in a limited range of the visible
spectrum exhibits some shades of color.
For example, green objects reflect light with wavelengths primarily in the
500 to 570nm range, while absorbing most of the energy at other
wavelengths.
28
monochromatic (or achromatic) light
29
Chromatic (color) light
30
Radiance
Radiance is the total amount of energy that flows from the light source, and
it is usually measured in Watts (W).
31
Luminance
For example, light emitted from a source operating in the far infrared region
of the spectrum could have significant energy (radiance), but an observer
would hardly perceive it; its luminance would be almost zero.
32
Brightness
It embodies the achromatic notion of intensity and is one of the key factors
in describing color sensation.
33
Basic Mathematical tools used in image
processing
34
Basic Mathematical tools used in image
processing
35
Basic Mathematical tools used in image
processing
On the other hand, the matrix product of the images is formed using the rules of matrix
multiplication:
36
Basic Mathematical tools used in image
processing
ARITHMETIC OPERATIONS
Arithmetic operations between two images f (x, y) and g(x, y) are denoted as:
37
Basic Mathematical tools used in image
processing
These are elementwise operations which means that they are performed
between corresponding pixel pairs in f and g for x = 0, 1, 2,…,M − 1 and y =
0, 1, 2,…, N − 1.
M and N are the row and column sizes of the images. Clearly, s, d, p, and v
are images of size M × N also.
Note that image arithmetic in the manner just defined involves images of the
same size.
38
Basic Mathematical tools used in image
processing
The set with no elements is called the null or empty set, and is denoted by ∅.
Example: C = {c | c = -d, d ∈ D}
39
Basic Mathematical tools used in image
processing
subset of B, denoted as A ⊆ B.
The sample space, 𝛺, (also called the set universe) is the set of all possible
set elements in a given application.
By definition, these set elements are members of the sample space for that
application.
Ac = {w | w ∉ A}
41
Basic Mathematical tools used in image
processing
X × Y = {(x, y) | x ∈ X and y ∈ Y}
42
Basic Mathematical tools used in image
processing
LOGICAL OPERATIONS
Logical operations deal with TRUE (typically denoted by 1) and FALSE (typically
denoted by 0) variables and expressions.
For our purposes, this means binary images composed of foreground (1-valued)
pixels, and a background composed of 0-valued pixels.
43
Reference
44