Image sampling and quantization

mithunkar4 494 views 15 slides Jul 21, 2020
Slide 1
Slide 1 of 15
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15

About This Presentation

Image sampling and quantization


Slide Content

Image Sampling and Quantization
Mithun kumar kar
Department of Electrical Engineering
BALASORE COLLEGE OF ENGINEERING AND TECHNOLOGY, BALASORE
July 21, 2020
Mithun kumar kar (BCET) Image Sampling and Quantization July 21, 2020 1 / 15

Image
An Image may be dened as a two dimensional functionf(x;y) where
x and y are spatial coordinates and the amplitude of 'f ' at any pair of
coordinates (x,y) is called the intensity value or gray level of the
image at that point.
An image is called a digital image when the spatial coordinates x, y
and the intensity value of 'f' all are nite and discrete quantities.
A digital image is an array of real or complex numbers represented by
a nite number of bits.
Mithun kumar kar (BCET) Image Sampling and Quantization July 21, 2020 2 / 15

Representation of digital image
A digital image is formed by sampling and quantization containing M
rows and N columns.
f(x;y) =
0
B
B
B
@
f(0;0) f(0;1): : :f(0;N1)
f(1;0)
.
.
.
f(1;1)
.
.
.
f(1;N1)
.
.
.
f(M1;0)f(M1;0) f(M1;N1)
1
C
C
C
A
Each element of this matrix is called an image element or picture
element or pixels.
The origin of a digital image is at the top left with the + x axis
extending downward and the + y axis extending to the right.
Mithun kumar kar (BCET) Image Sampling and Quantization July 21, 2020 3 / 15

sampling
Sampling is the operation that transforms a continuous-time signal
into a discrete-time signal, that is discrete values.
Sampling the continuous-time signalx(t) with intervalTwe get the
discrete-time signalx(n) =x(nT) , which is a function of the discrete
variable n.
We can reconstruct the signal from the discrete samples by means of
interpolation.
Sampling a continuous-time signal with sampling rate!sproduces a
discrete-time signal whose frequency spectrum is the periodic
replication of the original signal, and the replication period is!s.
Mithun kumar kar (BCET) Image Sampling and Quantization July 21, 2020 4 / 15

sampling Basics
(t) =

1;ift= 0
0;ift6= 0
and
1Z
1
(t)dt= 1
1Z
1
f(t)(t)dt=f(0)and
1Z
1
f(t)(tt0)dt=f(t0)
(t;z) =

1;ift=z= 0
0;ift=z6= 0
and
1Z
1
1Z
1
(t;z)dtdz= 1
1Z
1
1Z
1
f(t;z)(tt0;zz0)dtdz=f(t0;z0)
Mithun kumar kar (BCET) Image Sampling and Quantization July 21, 2020 5 / 15

sampling
The Fourier transform of a continuous signalx(t) is given by
X() =
1Z
1
x(t)e
jt
dt
where is the analog frequency in radian and
= 2Fs=
2
T
whereTis the sampling period.
By inverse Fourier transform we can extract the signal from frequency
domain.
x(t) =
1
2
1Z
1
X()e
jt
d
Mithun kumar kar (BCET) Image Sampling and Quantization July 21, 2020 6 / 15

1D sampling
Mithun kumar kar (BCET) Image Sampling and Quantization July 21, 2020 7 / 15

Image sampling
Image is represented by 2D function f(x,y).
For sampling the analog image is multiply by two dimensional direc
delta function or comb function. The comb function is a rectangular
grid of points on both x and y axis or shifted impulses on both x and
y direction by a distance xand x.
comb(x;y;x;y) =
1
X
k1=1
1
X
k2=1
(xk1x;yk2y)
After multiplying the analog image f(x,y) with comb function we get
the discrete image f(m,n) where
f(m;n) =
1
X
k1=1
1
X
k2=1
f(k1x;k2y)(xk1x;yk2y)
Mathematically we writef(m;n) =f(k1x;k2y) where xand
yare known as sampling intervals.
Mithun kumar kar (BCET) Image Sampling and Quantization July 21, 2020 8 / 15

Image sampling
Figure
Mithun kumar kar (BCET) Image Sampling and Quantization July 21, 2020 9 / 15

Image sampling in frequency domain
The Fourier transform of the image signalf(x;y) is represented by
F(1;2) =
1Z
1
1Z
1
f(x;y)e
j1x
e
j2y
dxdy
The FT of 2D comb function is an another comb function in
frequency domain which is given by
comb(1;2) =
1
x
1
y
1
X
p=1
1
X
q=1
(1
p
x
;2
q
y
)
As in time domain the image function is multiply by comb function
which is equivalent to convolution of Fourier transforms in frequency
domain.
Mithun kumar kar (BCET) Image Sampling and Quantization July 21, 2020 10 / 15

Image sampling in frequency domain
Now the spectrum of the 2D comb function is convolved with the
spectrum of analog image which is given by
F(!1; !2) =F(1;2)comb(1;2)
F(!1; !2) =F(1;2)
1
x
1
y
1
X
p=1
1
X
q=1
(1
p
x
;2
q
y
)
F(!1; !2) =
1
x
1
y
1P
p=1
1P
q=1
F(1
p
x
;2
q
y
)
Mithun kumar kar (BCET) Image Sampling and Quantization July 21, 2020 11 / 15

Image sampling in frequency domain
In order to retrieve the original image from the sampled spectrum, the
following condition should be satised!xs>2!x0and!ys>2!y0
where!xs=
1
x
and!ys=
1
y
.
2!x0is the bandwidth of the spectrum in!1direction and 2!y0is the
bandwidth of the spectrum in!2direction
The above condition says that the sampling frequency should be
greater than twice the maximum signal frequency, which is generally
termed as sampling theorem.
A low pass lter is generally employed in order to extract the desired
spectrum.
Mithun kumar kar (BCET) Image Sampling and Quantization July 21, 2020 12 / 15

Quantization
Digitizing the coordinate values is called sampling and digitizing the
amplitude values is called quantization.
After sampling, the values of the samples span a continuous range of
intensity values. In order to discretized the intensity values, the
intensity values must be converted in to discrete quantities. This is
called quantization.
Mithun kumar kar (BCET) Image Sampling and Quantization July 21, 2020 13 / 15

References
Rafael C. Gonzalez, Richard E. Woods (2008)
Digital Image Processing
Pearson Education2009,Third Edition.
Mithun kumar kar (BCET) Image Sampling and Quantization July 21, 2020 14 / 15

The End
Mithun kumar kar (BCET) Image Sampling and Quantization July 21, 2020 15 / 15
Tags