Documente Academic
Documente Profesional
Documente Cultură
Other extensi
PSfrag replacements
N1
Representing 2-D Nsequences 2
x(n1 , n2 )
y (n1 , n2 )
A more convenient T way
[] of depicting a 2-D sequence is
y (n1 , n2 ) = x(n1 1, n2 2) n2
k1
k2
(n1 , n2 ) (1) (1) (1) (1) (1)
h(k1 , k2 ) (1) (2) (2) (2) (1)
The sequence values are assumed to be zero at the values not marked
with circles. A circle with no amplitude indicated represents a unit
sample.
ImpulsePSfrag replacements
Certain sequences and classes of sequences play an important role in 2-D
signal processing. TheNimpulse 1
or unit sample sequence, denoted by
(n1 , n2 ), is defined asN2
x(n1 , n2 )
(
1, n1 = n2 = 0
y (n(n
1 , n12,)n2 ) =
T [] 0, otherwise,
y (n1and
, n2 )is=depicted
x(n1 1, asn2 2)
k1 n2
k2
(n1 , n2 )
h(k1 , k2 )
h(n1 k1 , n2 k2 )
1 n1
2
Multidimensional digital signal processing
2D signals Multidimensional systems Signals and systems in the frequency domain Sampling The multidimensional discrete Fourier transform Other extensi
Therefore
X
X
x(n1 , n2 ) = x(k1 , k2 )(n1 k1 , n2 k2 ).
k1 = k2 =
Line impulses
PSfrag replacements
Step sequence
The step sequence,
PSfrag replacements (
1, n 1 , n2 0
u(n1 , n2 ) =
0, otherwise
N1
is related to (n1 , n2 ) as follows:
N2
x(n1 , n2 ) n1 n2
y (n 1 ,1n,2n)2 ) =
X X
u(n (k1 , k2 ).
T [] k1 = k2 =
y (n1 , n2 ) = x(n1 1, n2 2)
This sequence is shown below: k1
k2
n2
(n1 , n2 )
h(k1 , k2 )
h(n1 k1 , n2 k2 )
1 n1
2
Exponential sequences
Exponential sequences are defined by
a = e j1 and b = e j2 ,
x(n1 , n2 ) = e j1 n1 +j2 n2
= cos(1 n1 + 2 n2 ) + j sin(1 n1 + 2 n2 ).
Separability
All the sequences presented thus far can be written in the form
Finite supportx(n
1 , n2 )
y (n1 , n2 )
Finite-extent sequences
T [] are only nonzero within a finite region of
y (n1 , n2 ) = x(n1 1, n2 2) the signal
support. For example,
k1 n2
k2
(n1 , n2 ) N2
h(k1 , k2 )
h(n1 k1 , n2 k2 )
1
2 n1
N1
0 n 1 N1 , 0 n 2 N2 .
Periodicity
PSfrag replacements
General
PSfragperiodicity
replacements
Multidimensional systems
n2 ) = x(n1 1, n2 2)
k1
k2
(n1 , n2 )
A systemh(kis1 ,an
k2 )operator that maps one signal (the input) to another (the
output):
h(n1 k1 , n2 k2 )
1
2x(n1 , n2 ) y (n1 , n2 )
T []
PSfrag replacements
Spatial shifts
N1
A 2-D sequence N2 x can be linearly shifted to form a new sequence y
according to the relation
y (n1 , n2 )
T [] y (n1 , n2 ) = x(n1 m1 , n2 m2 ),
Nonlinear transformations
Linear systems
Linear systems
Since a general sequence x can be written as
X X
x(n1 , n2 ) = x(k1 , k2 )(n1 k1 , n2 k2 ),
k1 = k2 =
Shift-invariant systems
T [x(n1 m1 , n2 m2 )] = y (n1 m1 , n2 m2 )
n1
n2
Convolution in 2-D N1
N2
Two-dimensionalx(n1 , convolution
n2 ) is very similar to its 1-D counterpart, and
there is also ya(ncomputational
1 , n2 )
interpretation of the convolution sum. To
obtain this, we consider
T [] x(n 1 , n 2 ) and h(n 1 k1 , n2 k2 ) as functions of k1
and k . To generate
y (n1 , n2 ) = x(n1 1, n2 2)
2 the sequence h(n 1 k 1 , n 2 k2 ) from h(n1 , n2 ), h is
first reflected about both the k1 and k2 axes, and then translated so that
the sample h(0, 0) lies at the point (n1 , n2 ):
k2 k2
(n1 , n2 )
1
k1 k1
2
h(k1 , k2 ) h(n1 k1 , n2 k2 )
The properties of LSI 2-D systems are analogous to those for 1-D LTI
systems. For example, when 2-D LSI systems are connected in parallel or
cascade, then their overall response is the sum and the convolution of the
system impulse responses respectively. Also, a 2-D LSI system is stable in
the BIBO sense if and only if its impulse response is absolutely summable:
X
X
|h(n1 , n2 )| = S1 < .
n1 = n2 =
However, one must be careful not to take the analogy too far 2-D LSI
systems are considerably more complex than 1-D LTI systems.
Defining
X
g (n1 , n2 ) = x(n1 , n2 k2 )h2 (k2 ),
k2 =
this becomes
X
y (n1 , n2 ) = h1 (k1 )g (n1 k1 , n2 ).
k1 =
Region of support
x(n1 , n2 ) = e j1 n1 +j2 n2
= e j1 n1 +j2 n2 H(1 , 2 ),
H(1 + 2, 2 ) = H(1 , 2 ),
H(1 , 2 + 2) = H(1 , 2 ).
The properties of the Fourier transform are similar to those in 1-D, with
the exception of some added complexity due to the introduction of an
additional parameter. For example, the time-reversal property in 1-D
becomes a more general reflection property in 2-D:
F
x(n1 , n2 )X (1 , 2 )
F
x(n1 , n2 )X (1 , 2 )
F
x(n1 , n2 )X (1 , 2 ).
is given by
X
X
H(1 , 2 ) = [(n1 + 1, n2 ) + (n1 1, n2 )+
n1 = n2 =
k2 0
(n1 , n2 )
h(k1 , k2 ) 2
k1 , n2 k2 ) 4
1
2 0
0
2
1
This function is depicted in the surface plot and image below, for the
case of a = 0.4 and b = 0.6. The gray level at any point in the image
is proportional to the function value:
0.2
h(n1,n2)
0.1
2
n
0
10
10
0
n2 0
10 10 n1 n
1
where J0 and J1 are Bessel functions of the first kind of orders 0 and 1
respectively.
Multidimensional digital signal processing
2D signals Multidimensional systems Signals and systems in the frequency domain Sampling The multidimensional discrete Fourier transform Other extensi
0.2
0.1
h(n ,n )
1 2
2
n
0
0.1
10
10
0
n2 0
10 10 n1 n
1
Sampling
The PSfrag
most common replacements way of representing a continuous signal is in terms of
a discrete signal obtained by periodic sampling. The simplest way of
generalising 1-D periodic sampling to the 2-D case is by using
rectangular sampling,N1where periodic sampling is done in rectangular
coordinates. If xa (t1 , t2N)2 is a continuous-time waveform, then the discrete
signal obtained by 1 , n2 )
x(nrectangular sampling is
y (n1 , n2 )
x(n1 , n2 ) = xa (n1 T1 , n2 T2 ),
T []
y (n1where
, n2 ) =Tx(n 1 and 1 T1, 2n 2 the
are 2) horizontal and vertical sampling intervals. This
corresponds to samplesk1in the plane:
k2 n
2
(n1 , n2 )
h(k1 , k2 )
h(n1 k1 , n2 k2 )
1
2
n1
Multidimensional digital signal processing
2D signals Multidimensional systems Signals and systems in the frequency domain Sampling The multidimensional discrete Fourier transform Other extensi
The criterion for being able to reconstruct xa from the samples is that T1
PSfrag replacements
and T2 be chosen small enough that
Xa (1 , 2 ) = 0 for |1 | , |2 | .
T1 T2
N1
Thus the signal must beNbandlimited
2
in the 2-D Fourier domain. If this
condition is not met, aliasing
x(n1 , n2 ) results in the same way as in 1-D.
Rectangular sampling y (n1is 2 ) the only option for periodic sampling. For
, nnot
T []
circularly-symmetric bandlimited signals it can be shown that there is no
y (nmore
1 , n2 )efficient
= x(n1 sampling
1, n2 scheme
2) than hexagonal sampling. That is, such
k
signals can be represented1 by fewer sample points than with any other
sampling geometry. Hexagonal k2 sampling is performed on a grid such as
(n1 , n2 )
n2
h(k1 , k2 )
h(n1 k1 , n2 k2 )
1
2
n1
The real part of some of the basis functions for the 2-D DFT are
The properties of the 2-D DFT are similar to those in 1-D. In particular,
the signals obtained from both the DFT and the inverse DFT are
implicitly doubly periodic with period N1 in the horizontal direction and
N2 in the vertical direction. Circular convolution according to the relation
NX
1 1 N
X 2 1
Thus the 2-D DFT can be calculated by performing 1-D DFTs on each
column of x, followed by 1-D DFTs on each row. Fast algorithms for 1-D
DFTs can therefore be used to develop multidimensional FFT methods.
Aspects of linear system theory for 1-D signals carry over to multiple
dimensions, but often have very different properties.
N1 X
X N2
b(k1 , k2 )y (n1 k1 , n2 k2 )
k1 =0 k2 =0
M1 X
X M2
= a(r1 , r2 )x(n1 r1 , n2 r2 ).
r1 =0 r2 =0
This transform is very different in its 2-D form: poles and zeros form
continuous surfaces in a 4-D space. Also, it is generally not possible to
factorise a 2-D polynomial (there is no fundamental theorem of algebra
for multidimensional polynomials). Nonetheless, the multidimensional
z-transform has been exhaustively analysed in the literature, and plays an
important role in the understanding of multidimensional systems.
The principles and methods of FIR filter design in 1-D extend naturally to
2-D. However, since causality is seldom an issue, a useful linear phase
condition is the zero phase condition
H(1 , 2 ) = H (1 , 2 ).
A linear phase response for digital filters is important to many
applications in multidimensional DSP. For example, in image processing a
nonlinear phase response tends to destroy lines and edges:
Original image
Multidimensional digital signal processing
2D signals Multidimensional systems Signals and systems in the frequency domain Sampling The multidimensional discrete Fourier transform Other extensi