2d Sampling
2d Sampling
Sampling is the pmesw ofmeasuring the brightnews tntormatofnanplina pointa n the pine
linerete pridd
C n
benanmpled using a
each and every value
val of
1.2.1 Theory of 2D Sampling in delined at
hia ia mathemat
netion f(. ) ivatanta. Thie
that
Let f(. ) represent the amlag iage, It y)at speoltio
neana
Ar are known as
mand a. Here Ar and analog signal /t.
P). wlhere
with the
The 2D sampling
starts
whieh is
denoted by P21, 82,)
Sgnal, we get the spectrum off(r.,)
(.2)
F,2,)eMmarnA" a,d,
Sm, n)=
define
For a discrete signal, we
and
du= dS
Ar
Similarly from Eq. (1.7), we get
(1.8)
duw-dSl
Ay (1.9)
Substituting Eq. (1.8) and (1.9) in Eq. (1.5), we get
(1.14)
2
The exponential term in Eq. (1.14) is equal to one for al values ofthe integer variables m, k, n and k. Hence
Eq. (1.14) reduces to
Ayt...
Fig. 1.5 2D view of a comb function Fig. 1.6 Three-dimensional view ofacomb function
After multiplying the analog image f(x, y) with the 2D comb function, we get the discrete version of the
analog image which is givén by
S(m, n) =fx,y) x
comb(x, y, Ax, Ay) (1.19)
fm, n) =
2 shA, k,Ay)8 (x-kAx, y-k,Ay) (1.20)
kcok-0o
We know that convolution in spatial domain is
For the purpose of analysis in the
equal to multiplication in the frequency domain and vice versa.
frequency domain, let us take the Fourier transform of the input analog
image and the 2D comb function.
The Fourier transform
of the signalf(r, y) is f(21, 22).
The Fourier transform of 2D comb
function is another comb function which is represented by
comb(1, N,) =
FT(comb(x, y Ax, Ay) (1.21)
comb(,22)= comb|,2 1
(1.23)
Ay
Now the spectrum of the 2D comb function is convolved with the
given by F1, D2) ® comb (1, 2). spectrum of the analog image which is
Fly,) Ë F%-k,-1)
Ax Ay ke-ol=-00
p=-0 q-00
k1 (1.26)
F(, w)= T
Ar Ay p=-0q=-0 k
F-k, 22 -1)6 (1.27)
(1.28)
Ay
Equation (1.28) resembles Eq. (1:17).
s2w0 (1.29)
where w,, = 1 and 2wo is the bandwidth ofthe spectrum in the w direction.
Ar
Similarly,
wys2uo (1.30)
where = a n d 2w,o is the bandwidth of the spectrum in the u direction. The condition given in
where wys
Ay
Eqs. (1.29) and (1.30) implies that the sampling frequency should be greater than twice the maximum signal
frequency, which is generally termed the sampling theorem. Here, 2w,0 and 2w, are called Nyquist rates.
8 Digital mage Processng
H(w, w,)
( j ,w,) roglon of support
G (1.31)
otherwiso
can bo obtained
trom tne Nnngpled
ne
of support is indicated as
region 1.7,The continuous image
in Fi, IN gIvoi us
pectrum by multiplying the sampled spectrum with the low pusa filter wlhich
(1.32)
w)
P(w,w)nU(1, wz)x P(j,
as
By takmg inverse Fourier transtorm, wo got the continuous imuge
(.33)
AX
L wys
AY
2wyo
w
wxs
x0
Criterion
1.2.3 Violation of Sampling Violation of
of violation of the sampling criterion.
let us discuss the consequences due to
In this section, leads to aliasing. Aliasing basically occurs
criterion givenin Eq. (1.29) and (1.30)
sampling
direction-
under-sampling.
Violation sampling criterion given in Eq. (1.29) leads to overlapping ofthe spectrum in thew
of
which is illustrated 1.8. Here, w <
in Fig.
whereas
20 w,s 2u,o