Professional Documents
Culture Documents
02 Computer Vision
02 Computer Vision
ﺻﺪق ﷲ اﻟﻌﻈﯿﻢ
1
واﻟﺼﻼة واﻟﺴﻼم ﻋﻠﻲ اﺷﺮف ﺧﻠﻖ ﷲ
ﻧﺒﯿﻨﺎ ﺳﯿﺪﻧﺎ ﻣﺤﻤﺪ ﺻﻠﻲ ﷲ ﻋﻠﯿﮫ وﺳﻠﻢ
اﻟﺒﺮﯾﺪ اﻻﻟﻜﺘﺮوﻧﻲ
ghoniemy1@cis.asu.edu.eg
mayat@cis.asu.edu.eg
Office hours: Thu 9-11 at G03
3
Textbook:
Digital Image Processing
Rafael C. Gonzalez
4
Chapter 2
Digital Image Fundamentals
5
2.1 Elements of Visual Perception
6
Human Visual Perception
7
Structure of the Human Eye
11
2.3 Image Sensing and Acquisition
12
The idea is simple:
13
Image Acquisition Using a Single Sensor
Figure 2.12(a) shows the components of a single
sensor. The most familiar sensor of this type is the
photodiode, whose output voltage waveform is
proportional to light.
14
The three principal
sensor arrangements
used to transform
illumination energy
into digital images.
15
In order to generate a 2-D image
using a single sensor, there must be relative displacements in
both the x- and y-directions between the sensor and the area
to be imaged.
16
17
Image Acquisition Using Sensor Arrays
Figure 2.12(c) shows individual sensors arranged in the
form of a 2-D array.
18
19
A Simple Image Formation Model
20
The basic nature of f(x,y) may be considered as being
characterized by two components:
21
The function i(x,y) and r(x,y) are combined as
a product to form f(x,y)
29
When a sensing array is used for image acquisition,
there is no motion and the number of sensors in the array
establishes the limits of sampling in both directions.
32
Representing Digital Images ( Continue )
36
Binary Image
Y 1 1 1
Row 1
0: Black 0
Row q
1: White
p
37
Gray Scale Image
10 5 9
100
38
Gray Scale Image
39
Color Image (RGB) B
G
40
41
42
43
44
45
46
47
48
49
Each element of the array is referred to as an image
element, or picture element, or pixel.
The term’s “ image “ and “ pixels “ will be used to
denote a digital image and its elements.
The above digitization process requires that a decision
be made on a value for N as well as on the number of
discrete levels ( L ) allowed for each pixel.
It is common practice in digital image processing to let
these quantities be integer powers of two, that is,
N = 2n, L = 2k.
The number , b , of bits required to store a digitized
image is given by :
b = M x N x k.
50
For example, a 128x128 image with 64 gray levels
requires 98,304 bits of storage.
Calculation number of bits as:
L = gray level = 64 = 2k, then k = 6 ( 64 = 26)
Then P = M x N x k = 128 x 128 x 6 = 98,304.
Solution:
(a) The total amount of data (including the start and stop bit) in an
8bit, 1024 x1024 image, is (1024)2 x [8 + 2] bits.
The total time required to transmit this image over a At 56K baud link
is (1024)2 x [8 + 2]/56000 = 187:25 sec or about 3.1 min.
(b) At 750K this time goes down to about =
(1024)2 x [8 + 2]/750000 = 14 sec. 52
Spatial and Gray-Level Resolution
Sampling is the principal factor determining the spatial
resolution of an image.
Spatial resolution is the smallest visible detail in an image.
Gray-level resolution similarly refers to the smallest
visible change in gray level.
Figure 2.19 shows an image of size 1024*1024 pixels whose
gray levels are represented by 8 bits. The other images are the results
of sub sampling the 1024*1024 image. The sub sampling was
accomplished by deleting the appropriate number of rows and columns
from the original image.
For example, the 512*512 image was obtained by deleting every
other row and column from the 1024*1024 image.
53
Spatial Resolution
The spatial resolution of an image is
The physical size of a pixel in an image.
Basically, it is the smallest discernable detail in an image.
54
Quantization
• n is usually an integral power of two
• b is the number of bits used for quantization
• Typically, b = 8 256 possible gray levels.
• If b=1, then there are only two values: 0 and 1
– This image is known as a BINARY image
• Sometimes the range of values spanned by the gray levels is called
the dynamic range of an image.
55
56
These images show the dimensional proportions between
various sampling densities, but their size differences
make it difficult to see the effects resulting from a
reduction in the number of samples.
The simplest way to compare these effects is to bring
all the sub sampled images up to size 1024*1024 by row
and column pixel replication.
The results are shown in Figs. 2.20(b) through (f). Figure
2.20(a) is the same 1024*1024, 256-level image shown
in Fig. 2.19; it is repeated to facilitate comparisons.
57
58
Zooming and Shrinking Digital Images.
اﻟﺸﺮﯾﺤﺔ R54
1 2 3 4 5 6 1 2 3 4 61
1 1 1 1 1
1 1 1 1 1
65
Figures 2.20(d) through (f) are shown again in the top
row of Fig. 2.25. *
x (column)
( x-1, y ) ( x, y ) ( x+1, y )
y
( x-1, y-1 ) ( x, y-1 ) ( x+1, y-1 )
(row)
69
This set of pixels, called the 4-neighbors of p, will be
denoted by N4(p).
71