Digital Image Processing: Chapter Two
Digital Image Processing: Chapter Two
Chapter two
1
Digital image fundamentals
2
contents
3
Basic concept of image
4
Digital Image Processing Introduction
Signals:
Electrical engineering: the fundamental quantity of
representing some information is called a signal.
Mathematics: a signal is a function that conveys some
information.
A signal could be of any dimension and could be of any
form.
A signal cab be: Analog or Digital.
6
Signal and System Introduction
Analog signals:
It is a continuous signal.
They are difficult to analyze, as they carry a huge number of
values.
They are very much accurate due to a large sample of
values.
Needs infinite memory to store and denoted by sin waves.
Example: Human voices (having independent variables of
space and time)
7
Signal and System Introduction
Digital signals:
They are discontinuous signals.
They are very easy to analyze.
Digital signals are less accurate than analog signals because
they are the discrete samples of an analog signal.
Digital signals are not subject to noise so that they last long
and are easy to interpret.
Digital signals are denoted by square waves.
Example: computer
8
Signal and System Introduction
9
Signal and System Introduction
11
Signal and System Introduction
12
Signal and System Introduction
13
Applications and Usage
15
Applications and Usage
An image has only height and width. An image does not have depth.
17
Concept of Dimensions
18
Image Formation on Camera
20
Image Formation on Camera
21
Image Formation on Camera
23
Image Formation on Camera
It also means that each sensor could have only one and
only one value.
24
Concept of Pixel
26
Concept of Bits per Pixel
Bpp or bits per pixel denotes the number of bits per pixel.
The number of different colors in an image is depends on the
depth of color or bits per pixel.
27
Concept of Bits per Pixel
28
Concept of Bits per Pixel
29
Types of Images
Vary from 0-255 (0 stands for black and 255 stands for white)
127 or 128 stands for gray color.
Color image: true color format
30
Image sensing and acquisition
31
Image sensing and acquisition
Reflected from or
Line sensor
Array sensor
34
Image acquisition using a single sensing element
• Figure shows the components of a
single sensor. Single imaging sensor
• A familiar sensor of this type is the
photodiode.
37
Image acquisition using sensor strips
Line sensor
38
Image acquisition using sensor strips…
• Motion perpendicular to the strip provides
imaging in the other direction, as shown in Image acquisition using
linear sensor strip
Figure.
42
A simple image formation model
Images by two-dimensional functions of the form f(x, y).
The value or amplitude of f at spatial coordinates (x, y) gives the intensity
(brightness) of the image at that point.
As light is a form of energy, f(x,y) must be non zero and finite.
where
43
Image sampling and quantization
44
Image sampling and quantization
45
Image sampling and quantization
there are numerous ways to acquire images, but our objective in all
is to generate digital images from sensed data.
46
Image sampling and quantization
Generating a digital image. (a) Continuous image. (b) A scaling line from
A to B in the continuous image, used to illustrate the concepts of sampling
and quantization. (c) sampling and quantization. (d) Digital
47
scan line.
Basic concept in image sampling and quantization
AB in previous figure
49
Basic concept in image sampling and quantization….
51
Image sampling and quantization
first figure shows a continuous image projected on to the plane of an array
sensor
Second figure shows the image after sampling and quantization
The quality of a digital image is determined to a large degree by the number
of samples and discrete intensity levels used in sampling and quantization.
Sampling
53
Sampling and Quantization
Sampling
54
Sampling and Quantization
• Quantization corresponds to a discretization of the
intensity values. That is, of the co-domain of the function.
Quantization, corresponds to a transformation.
Typically, 256 levels (8 bits/pixel) suffices to represent
the intensity. For color images, 256 levels are usually
used for each color intensity.
55
Sampling
Sampling and Quantization
and Quantization
Quantization
01/28/20 56
22
Representing digital image
57
Representing digital images
Let f (s, t ) represent a continuous image function of two
continuous variables, s and t.
We convert this function into a digital image by sampling and
quantization,
Suppose that we sample the continuous image into a 2-D array or
digital image, f( x, y), containing M rows and N columns, where
(x, y) are discrete coordinates:
X= 0,1,2,………M-1 and y=0,1,2…………N-1
for example, the value of the digital image at the origin is f (0, 0),
and its value at the next coordinates along the first row is f (0,1).
In general, the value of a digital image at any coordinates (x, y )
is denoted f(x ,y), where x and y are integers.
The section of the real plane spanned by the coordinates of an
58
59
Representing digital images
• Figure shown is a plot of the function, with
two axes determining spatial location and
the third axis being the values of f as a
function of x and y (intensities).
• This representation is useful when working
with grays scale sets whose elements are
expressed as triplets of the form (x, y, z)
where x and y are spatial coordinates and z
is the value of f at coordinates ( x,y).
60
Representing digital images……
• it shows f x y ( , ) as it would appear on a
computer display or photograph.
• Here, the intensity of each point in the
display is proportional to the value of f
at that point.
• In this figure, there are only three
equally spaced intensity values. If the
intensity is normalized to the interval
[ , ], 0 1 then each point in the image has
the value 0, 0.5, or 1.
• A monitor or printer converts these
three values to black, gray, or white,
respectively
61
Representing digital images…
• As Figure shows, the third representation
is an array (matrix) composed of the
numerical values of f x y ( , ).
• This is the representation used for
computer processing.
• Simply display the numerical values of
the f(x,y) as an array (matrix).
• In this example, f is of size 600 x 600
elements or 3,60,000 numbers.
• When developing algorithm, this
representation is more useful when only
parts of the image are printed and
analyzed as numerical values.
` 62
Representing digital images…
63
Question & Answer
01/28/20 64
22