Multidimensional digital signal processing

Similar documents
Digital Signal Processing Lecture 3 - Discrete-Time Systems

Chap 2. Discrete-Time Signals and Systems

Frequency-Domain C/S of LTI Systems

Review of Discrete-Time System

UNIVERSITY OF OSLO. Please make sure that your copy of the problem set is complete before you attempt to answer anything.

Stability Condition in Terms of the Pole Locations

Review of Fundamentals of Digital Signal Processing

Linear Convolution Using FFT

Digital Signal Processing Lecture 10 - Discrete Fourier Transform

Discrete Fourier Transform

Review of Fundamentals of Digital Signal Processing

VU Signal and Image Processing

Discrete Time Fourier Transform (DTFT)

Analog vs. discrete signals

Signals and Systems. Problem Set: The z-transform and DT Fourier Transform

Very useful for designing and analyzing signal processing systems

Discrete Time Signals and Systems Time-frequency Analysis. Gloria Menegaz

Discrete-Time Signals and Systems

Digital Signal Processing Lecture 4

! Introduction. ! Discrete Time Signals & Systems. ! Z-Transform. ! Inverse Z-Transform. ! Sampling of Continuous Time Signals

/ (2π) X(e jω ) dω. 4. An 8 point sequence is given by x(n) = {2,2,2,2,1,1,1,1}. Compute 8 point DFT of x(n) by

Discrete-Time Fourier Transform (DTFT)

Your solutions for time-domain waveforms should all be expressed as real-valued functions.

E : Lecture 1 Introduction

ESE 531: Digital Signal Processing

Discrete-Time Signals and Systems. Frequency Domain Analysis of LTI Systems. The Frequency Response Function. The Frequency Response Function

8 The Discrete Fourier Transform (DFT)

Lecture 11 FIR Filters

Digital Signal Processing. Midterm 1 Solution

Digital Signal Processing. Midterm 2 Solutions

Digital Signal Processing:

Digital Signal Processing, Homework 1, Spring 2013, Prof. C.D. Chung

UNIVERSITY OF OSLO. Faculty of mathematics and natural sciences. Forslag til fasit, versjon-01: Problem 1 Signals and systems.

ELEN 4810 Midterm Exam

ECGR4124 Digital Signal Processing Midterm Spring 2010

Module 1: Signals & System

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science. Fall Solutions for Problem Set 2

EEL3135: Homework #4

Chapter 7: The z-transform

IT DIGITAL SIGNAL PROCESSING (2013 regulation) UNIT-1 SIGNALS AND SYSTEMS PART-A

EE 521: Instrumentation and Measurements

ECGR4124 Digital Signal Processing Exam 2 Spring 2017

Digital Signal Processing Lecture 9 - Design of Digital Filters - FIR

Chirp Transform for FFT

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF INFORMATION TECHNOLOGY. Academic Year

EEE4001F EXAM DIGITAL SIGNAL PROCESSING. University of Cape Town Department of Electrical Engineering PART A. June hours.

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EC2314- DIGITAL SIGNAL PROCESSING UNIT I INTRODUCTION PART A

Signals & Systems Handout #4

Lecture 18: Stability

Multimedia Signals and Systems - Audio and Video. Signal, Image, Video Processing Review-Introduction, MP3 and MPEG2

Digital Signal Processing Module 1 Analysis of Discrete time Linear Time - Invariant Systems

Signals and Systems Profs. Byron Yu and Pulkit Grover Fall Midterm 2 Solutions

Introduction to Digital Signal Processing

Lecture 13: Discrete Time Fourier Transform (DTFT)

Review of Linear System Theory

ECGR4124 Digital Signal Processing Final Spring 2009

! Circular Convolution. " Linear convolution with circular convolution. ! Discrete Fourier Transform. " Linear convolution through circular

QUESTION BANK SIGNALS AND SYSTEMS (4 th SEM ECE)

ESE 531: Digital Signal Processing

Discrete Time Systems

A. Relationship of DSP to other Fields.

EE 225D LECTURE ON DIGITAL FILTERS. University of California Berkeley

Lecture 10. Digital Signal Processing. Chapter 7. Discrete Fourier transform DFT. Mikael Swartling Nedelko Grbic Bengt Mandersson. rev.

ECSE 512 Digital Signal Processing I Fall 2010 FINAL EXAMINATION

Lecture 7 Discrete Systems

III. Time Domain Analysis of systems

Discrete-time Signals and Systems in

University Question Paper Solution

Lecture 19 IIR Filters

LAB 6: FIR Filter Design Summer 2011

EE482: Digital Signal Processing Applications

ESE 531: Digital Signal Processing

Aspects of Continuous- and Discrete-Time Signals and Systems

z-transforms Definition of the z-transform Chapter

Discrete-time signals and systems

LECTURE NOTES DIGITAL SIGNAL PROCESSING III B.TECH II SEMESTER (JNTUK R 13)

Digital Signal Processing I Final Exam Fall 2008 ECE Dec Cover Sheet

Discrete-time Fourier transform (DTFT) representation of DT aperiodic signals Section The (DT) Fourier transform (or spectrum) of x[n] is

ELC 4351: Digital Signal Processing

ELEN E4810: Digital Signal Processing Topic 2: Time domain

ESE 531: Digital Signal Processing

z-transform Chapter 6

University of Illinois at Urbana-Champaign ECE 310: Digital Signal Processing

Lecture 14: Windowing

Transform Analysis of Linear Time-Invariant Systems

Digital Signal Processing. Lecture Notes and Exam Questions DRAFT

Z-Transform. x (n) Sampler

ECE538 Final Exam Fall 2017 Digital Signal Processing I 14 December Cover Sheet

DISCRETE-TIME SIGNAL PROCESSING

Solutions. Number of Problems: 10

Discrete Fourier transform (DFT)

2.161 Signal Processing: Continuous and Discrete Fall 2008

Discrete-Time Systems

Exercises in Digital Signal Processing

Discrete-Time Fourier Transform

TTT4120 Digital Signal Processing Suggested Solutions for Problem Set 2

Filter Analysis and Design

SIGNALS AND SYSTEMS. Unit IV. Analysis of DT signals

Solutions: Homework Set # 5

Let H(z) = P(z)/Q(z) be the system function of a rational form. Let us represent both P(z) and Q(z) as polynomials of z (not z -1 )

Transcription:

PSfrag replacements Two-dimensional discrete signals N 1 A 2-D discrete signal (also N called a sequence or array) is a function 2 defined over thex(n set 1 of, n 2 ordered ) pairs of integers: y(nx 1, = n 2 {x(n ) 1, n 2 ), < n 1, n 2 < }. T [ ] y(n 1 Thus, n 2 ) = x(n x(n 1, 1 n 2 ) 1, represents n 2 2) the sample of the signal x at the point (n 1, n 2 ). x(n 1, n 2 ) for noninteger n 1 or n 2 is undefined. k 1 k 2 An example of a 2-D sequence is shown below: (n 1, n 2 ) h(k 1, k 2 ) n 2 h(n 1 k 1, n 2 k 2 ) ω 1 3 2 ω 2 1 n 1 π π In this figure the height at (n 1, n 2 ) is the amplitude of x at that point.

N 1 Representing 2-D Nsequences 2 x(n 1, n 2 ) y(n 1, n 2 ) A more convenient T way [ ] of depicting a 2-D sequence is y(n 1, n 2 ) = x(n 1 1, n 2 2) k 1 n 2 k 2 (n 1, n 2 ) (1) (1) (1) (1) (1) h(k 1, k 2 ) (1) (2) (2) (2) (1) h(n 1 k 1, n 2 k 2 ) (1) (2) (3) (2) (1) n 1 ω 1 (1) (2) (2) (2) (1) ω 2 (1) (1) (1) (1) (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.

Impulse PSfrag replacements Certain sequences and classes of sequences play an important role in 2-D signal processing. TheNimpulse 1 or unit sample sequence, denoted by δ(n 1, n 2 ), is defined asn 2 { x(n 1, n 2 ) 1, n 1 = n 2 = 0 y(nδ(n 1, n 12,) n 2 ) = T [ ] 0, otherwise, y(n 1 and, n 2 ) is= depicted x(n 1 1, asn 2 2) k 1 n 2 k 2 (n 1, n 2 ) h(k 1, k 2 ) h(n 1 k 1, n 2 k 2 ) ω n 1 1 ω 2 π π

Decomposition in terms of impulses Any sequence x(n 1, n 2 ) can be represented as a linear combination of shifted impulses as follows: Therefore x(n 1, n 2 ) = + x( 1, 1)δ(n 1 + 1, n 2 + 1)+ x(n 1, n 2 ) = + x(0, 1)δ(n 1, n 2 + 1) + x(1, 1)δ(n 1 1, n 2 + 1) + + x( 1, 0)δ(n 1 + 1, n 2 ) + x(0, 0)δ(n 1, n 2 ) + x(1, 0)δ(n 1 1, n 2 ) + + x( 1, 1)δ(n 1 + 1, n 2 1) + x(0, 1)δ(n 1, n 2 1) + x(1, 1)δ(n 1 1, n 2 1) + k1= k2= x(k 1, k 2 )δ(n 1 k 1, n 2 k 2 ). This is a convolution product, and is useful in system analysis due to the sifting property of the impulse function.

Line impulses PSfrag replacements Line impulses have no counterpart in 1-D. An example of a line impulse is N 1 { x(n 1, N 1, n 1 = 0 n 2 ) = δ(n 1 ) = x(n 1, n 2 ) 0, otherwise. y(n 1, n 2 ) This is demonstratedt below: [ ] y(n 1, n 2 ) = x(n 1 1, n 2 2) n 2 k 1 k 2 (n 1, n 2 ) h(k 1, k 2 ) h(n 1 k 1, n 2 k 2 ) n 1 ω 1 ω 2 π π Other examples are δ(n 2 ) and δ(n 1 n 2 ).

Step sequence The step sequence, PSfrag replacements u(n 1, n 2 ) = N 1 is related to δ(n 1, n 2 ) as follows: N 2 x(n 1, n 2 ) y(n u(n 1, 1 n, 2 n) 2 ) = T [ ] y(n 1, n 2 ) = x(n 1 1, n 2 2) This sequence is shown below: k 1 k 2 (n 1, n 2 ) h(k 1, k 2 ) h(n 1 k 1, n 2 k 2 ) ω 1 ω 2 π π { 1, n 1, n 2 0 0, otherwise n1 n2 k1= k2= n 2 δ(k 1, k 2 ). Other examples of step sequences are u(n 1 ), u(n 2 ), and u(n 1 n 2 ), which have no counterpart in 1-D. n 1

Exponential sequences Exponential sequences are defined by x(n 1, n 2 ) = a n1 b n2, < n 1, n 2 <, where a and b are complex numbers. When a and b have unity magnitude they may be written as a = e jω1 and b = e jω2, in which case the exponential sequence becomes the complex sinusoidal sequence x(n 1, n 2 ) = e jω1n1+jω2n2 = cos(ω 1 n 1 + ω 2 n 2 ) + j sin(ω 1 n 1 + ω 2 n 2 ). Exponential sequences are important because they are eigenfunctions of 2-D linear shift-invariant systems.

Separability All the sequences presented thus far can be written in the form x(n 1, n 2 ) = x 1 (n 1 )x 2 (n 2 ). Any sequence that can be expressed as the product of 1-D sequences in this form is separable. Although very few actual data sequences are of this form, they are important for two reasons: Results for 1-D sequences that do not extend to 2-D often do extend to 2-D separable sequences Separability can often be used to reduce computation in digital filtering and transform operations.

Finite support x(n 1, n 2 ) y(n 1, n 2 ) Finite-extent sequences T [ ] are only nonzero within a finite region of y(n support. For example, the signal 1, n 2 ) = x(n 1 1, n 2 2) k 1 n 2 k 2 (n 1, n 2 ) N 2 h(k 1, k 2 ) h(n 1 k 1, n 2 k 2 ) ω 1 ω 2 n 1 π N 1 π is nonzero only within the rectangle 0 n 1 N 1, 0 n 2 N 2.

Periodicity PSfrag replacements A periodic sequence in 2-D can be thought of as a sequence that repeats at regularly-spaced intervals. However, 2-D signals must repeat in two dimensions at once, so the definition is more complex than for 1-D. x(n A doubly periodic sequence 1, n 2 ) x(n 1, n 2 ) satisfies the conditions y(n 1, n 2 ) T x(n [ ] 1, n 2 + N 2 ) = x(n 1, n 2 ) y(n 1, n 2 ) = x(n 1 1, n 2 x(n 2) 1 + N 1, n 2 ) = x(n 1, n 2 ). k 1 Such a sequence for N 1 = k 2 N 2 = 3 is (n 1, n 2 ) n 2 h(k 1, k 2 ) h(n 1 k 1, n 2 k 2 ) ω 1 ω 2 π N 1 π N 2 n 1

General PSfragperiodicity replacements More generally, though, a periodic sequence in 2-D satisfies the conditions N 1 N 2 x(n 1 + N 11, n 2 + N 21 ) = x(n 1, n 2 ) x(n 1, n 2 x(n ) 1 + N 12, n 2 + N 22 ) = x(n 1, n 2 ), where y(n 1, n 2 ) T [ ] N 11 N 22 N 12 N 21 = 0. (n 1, n 2 ) = x(n An example 1 1, n of a 2 2) sequence with N 11 = 7, N 21 = 3, N 12 = 2, N 22 = 4 is k 1 k n 2 2 (n 1, n 2 ) h(k 1, k 2 ) h(n 1 k 1, n 2 k 2 ) ω 1 ω 2 n 1 π π

2D signals Multidimensional systems N 2 Signals and systems in the frequency domain Sampling The multidimensional discrete Fourier transform Other extensi Multidimensional systems 2) = x(n 1 1, n 2 2) k 1 k 2 (n 1, n 2 ) A systemh(kis 1, an k 2 ) operator that maps one signal (the input) to another (the h(noutput): 1 k 1, n 2 k 2 ) ω 1 ω 2 x(n 1, n 2 ) y(n 1, n 2 ) π T [ ] π Systems can be described in terms of fundamental operations on multidimensional signals.

Fundamental operations on multidimensional sequences Addition of two sequences x(n 1, n 2 ) and w(n 1, n 2 ) is defined sample-by-sample as y(n 1, n 2 ) = x(n 1, n 2 ) + w(n 1, n 2 ). Multiplication by a constant c involves multiplication by each sample value: y(n 1, n 2 ) = cx(n 1, n 2 ).

PSfrag replacements Spatial shifts N 1 A 2-D sequence N x can be linearly shifted to form a new sequence y 2 according to the relation y(n 1, n 2 ) T [ ] y(n 1, n 2 ) = x(n 1 m 1, n 2 m 2 ), where (m 1, m 2 ) is the amount of the shift: k 1 k 2 n 2 n 2 (n 1, n 2 ) h(k 1, k 2 ) h(n 1 k 1, n 2 k 2 ) ω 1 ω 2 n 1 n 1 π π x(n 1, n 2 ) y(n 1, n 2 ) = x(n 1 1, n 2 2)

Nonlinear transformations A spatially-varying gain can be viewed as a generalisation of multiplication by a constant: y(n 1, n 2 ) = c(n 1, n 2 )x(n 1, n 2 ). The collection of numbers c(n 1, n 2 ) may also be regarded as a sequence, in which case the equation above can be interpreted as the sample-by-sample multiplication of two sequences. Two-dimensional sequences may also be subjected to nonlinear operators. A Memoryless nonlinearity operator acts on each sample value of the sequence independently. For example, y(n 1, n 2 ) = [x(n 1, n 2 )] 2 squares each value in the sequence x.

Linear systems A system is linear if and only if the following two conditions hold: If the input signal is the sum of two sequences, then the output signal is the sum of the two corresponding output sequences Scaling the input signal produces a scaled output signal. Linear systems obey the principle of superposition.

Linear systems Since a general sequence x can be written as x(n 1, n 2 ) = x(k 1, k 2 )δ(n 1 k 1, n 2 k 2 ), k 1= k 2= it follows that the response of a linear system to this signal is [ ] y(n 1, n 2 ) = T x(k 1, k 2 )δ(n 1 k 1, n 2 k 2 ) = = k 1= k 2= k 1= k 2= k 1= k 2= x(k 1, k 2 )T [δ(n 1 k 1, n 2 k 2 )] x(k 1, k 2 )h k1k 2 (n 1 k 1, n 2 k 2 ), where h k1k 2 (n 1 k 1, n 2 k 2 ) is the response of the system to a unit impulse at (k 1, k 2 ).

Shift-invariant systems A shift-invariant system is one for which a shift in the input sequence implies a corresponding shift in the output sequence. If y(n 1, n 2 ) = T [x(n 1, n 2 )], the system T is shift invariant if and only if T [x(n 1 m 1, n 2 m 2 )] = y(n 1 m 1, n 2 m 2 ) for all sequences x and linear shifts (m 1, m 2 ).

Linear shift-invariant systems The spatially-varying impulse response for a linear system h k1k 2 (n 1 k 1, n 2 k 2 ) = T [δ(n 1 k 1, n 2 k 2 )], when evaluated at k 1 = k 2 = 0 implies that h 00 (n 1, n 2 ) = T [δ(n 1, n 2 )]. Applying the principle of shift invariance we get h k1k 2 (n 1, n 2 ) = h 00 (n 1 k 1, n 2 k 2 ). The spatially-varying impulse response becomes a shifted replica of a spatially-invariant impulse response. Defining h(n 1, n 2 ) = h 00 (n 1, n 2 ) we can write the input-output relation as y(n 1, n 2 ) = x(k 1, k 2 )h(n 1 k 1, n 2 k 2 ). k 1= k 2= This is the 2-D convolution product.

PSfrag replacements n 1 2D signals Multidimensional systems Signals and systems in the frequency domain Sampling The multidimensional discrete Fourier transform Other extensi n 2 N 1 N 2 Convolution in 2-D Two-dimensional x(n 1, convolution n 2 ) is very similar to its 1-D counterpart, and there is alsoy(n a computational 1, n 2 ) interpretation of the convolution sum. To obtain this, we consider T [ ] x(n 1, n 2 ) and h(n 1 k 1, n 2 k 2 ) as functions of k 1 (n 1, n 2 ) and = x(n k 2. 1 To 1, generate n 2 2) the sequence h(n 1 k 1, n 2 k 2 ) from h(n 1, n 2 ), h is first reflected about both the k 1 and k 2 axes, and then translated so that the sample h(0, 0) lies at the point (n 1, n 2 ): k 2 k 2 ω 1 ω 2 π π (n 1, n 2 ) k 1 k 1 h(k 1, k 2 ) h(n 1 k 1, n 2 k 2 ) The product sequence x(k 1, k 2 )h(n 1 k 1, n 2 k 2 ) can then be formed, and the output sample value y(n 1, n 2 ) is computed by summing the nonzero sample values in the product sequence.

Properties of linear systems 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: n 1= n 2= h(n 1, n 2 ) = S 1 <. 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.

Separable impulse response One property of 2-D systems that has no counterpart in 1-D is separability. A separable system is an LSI system whose impulse response is a separable sequence, so h(n 1, n 2 ) = h 1 (n 1 )h 2 (n 2 ). The input signals processed by a separable system and the signals produced by it need not be separable. For separable systems the convolution sum decomposes as y(n 1, n 2 ) = = k 1= k 2= k 1= h 1 (k 1 ) x(n 1 k 1, n 2 k 2 )h 1 (k 1 )h 2 (k 2 ) k 2= x(n 1 k 1, n 2 k 2 )h 2 (k 2 ).

Separable impulse response (2) Defining this becomes g(n 1, n 2 ) = x(n 1, n 2 k 2 )h 2 (k 2 ), k 2= y(n 1, n 2 ) = h 1 (k 1 )g(n 1 k 1, n 2 ). k 1= The array g(n 1, n 2 ) can be computed by performing 1-D convolution between each column of x (n 1 constant) and the 1-D sequence h 2. The output array y can then be computed by convolving each row of g (n 2 constant) with the 1-D sequence h 1. Thus the output can be obtained as a series of 1-D convolutions. Note that the row convolutions can also be performed before the column convolutions.

Region of support Another difference between 1-D and 2-D systems involves regions of support of signals. In 1-D it was useful to characterise a system as causal if the outputs did not preceed the inputs. For most 2-D applications the independent variables do not correspond to time, and causality is not a natural constraint. The impulse response h[n] of a 1-D causal LTI system is zero for n < 0. One generalisation of the concept of causality for 2-D systems can be made by requiring that the impulse response be zero outside of some region of support.

2D signals Multidimensional systemsnsignals 2 and systems in the frequency domain Sampling The multidimensional discrete Fourier transform Other extensi x(n 1, n 2 ) y(n 1, n 2 ) Region of support T [ ] (2), n 2 ) = x(n 1 1, n 2 2) k 1 Two common regions of support are: k 2 (n 1, n 2 ) n 2 n 2 h(k 1, k 2 ) h(n 1 k 1, n 2 k 2 ) ω 1 ω 2 π n 1 n 1 π Quadrant support Wedge support Quadrant support, where sequences are nonzero only in one quadrant of the (n 1, n 2 )-plane Wedge support, which is a generalisation of quadrant support, and implies that the sequence is only nonzero inside a sector defined by two rays emanating from the origin. Different regions of support lead to systems with different characteristics.

Signals and systems in the frequency domain Complex sinusoidal sequences of the form are eigenfunctions of 2-D LSI systems: y(n 1, n 2 ) = x(n 1, n 2 ) = e jω1n1+jω2n2 k1= k2= = e jω1n1+jω2n2 H(ω 1, ω 2 ), where H(ω 1, ω 2 ) is the frequency response H(ω 1, ω 2 ) = n1= n2= e jω1(n1 k1)+jω2(n2 k2) h(k 1, k 2 ) h(n 1, n 2 )e jω1n1 jω2n2. This function is periodic in both the horizontal and vertical frequency variables: H(ω 1 + 2π, ω 2 ) = H(ω 1, ω 2 ), H(ω 1, ω 2 + 2π) = H(ω 1, ω 2 ).

Multidimensional Fourier transform The multidimensional Fourier transform analysis equation is therefore X (ω 1, ω 2 ) = n 1= n 2= The corresponding synthesis equation is x(n 1, n 2 ) = 1 4π 2 π π π π x(n 1, n 2 )e jω1n1 jω2n2. X (ω 1, ω 2 )e jω1n1+jω2n2 dω 1 dω 2. The Fourier transform can be shown to exist whenever the sequence x(n 1, n 2 ) is absolutely summable.

Fourier transform properties 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: x( n 1, n 2 ) F X ( ω 1, ω 2 ) x(n 1, n 2 ) F X (ω 1, ω 2 ) x( n 1, n 2 ) F X ( ω 1, ω 2 ).

1 2D signals Multidimensional systems Signals and systems in the frequency domain Sampling The multidimensional discrete Fourier transform Other extensi N 2 x(n 1, n 2 ) y(n 1, n 2 ) T [ ] (n 1, n 2 ) = x(n 1 1, n 2 2) The frequency response of the system with impulse response Example: Frequency response of a simple system k 1 k 2 (n 1, n 2 ) h(k 1, k 2 ) h(n 1 k 1, n 2 k 2 ) ω 1 ω 2 π π is given by H(ω 1, ω 2 ) = n 1= n 2= n 2 n 1 [δ(n 1 + 1, n 2 ) + δ(n 1 1, n 2 )+ δ(n 1, n 2 + 1) + δ(n 1, n 2 1)]e jω1n1 jω2n2.

Example: Frequency response of a simple system (2) replacements n 1 n 2 N 1 N 2 This evaluates to H(ω 1, ω 2 ) = e jω1 + e jω1 + e jω2 + e jω2 = 2(cos ω 1 + cos ω 2 ). and is shown below: x(n 1, n 2 ) y(n 1, n 2 ) T [ ] 1 1, n 2 2) 4 k 1 2 k 2 (n 1, n 2 ) 0 h(k 1, k 2 ) 2 k 1, n 2 k 2 ) 4 ω 1 π ω 2 0 π π H(ω 1,ω 2 ) ω 2 ω 1 0 π

Example: Separable ideal lowpass filter PSfrag replacements n 1 Consider the ideal lowpass n filter specified by the frequency response 2 { N 1 1, ω 1 a < π, ω 2 b < π H(ω 1, ωn 2 ) 2 = 0, otherwise, x(n 1, n 2 ) indicated in the y(n 1 figure, n 2 ) below: T [ ] (n 1, n 2 ) = x(n 1 1, n 2 2) ω 2 k 1 π k 2 b (n 1, n 2 ) h(k 1, k 2 ) h(n 1 k 1, n 2 k 2 ) a a ω 1 π π b π

Example: Separable ideal lowpass filter (2) Since this system is separable the inverse Fourier transform is quite simple: h(n 1, n 2 ) = 1 4π 2 ( 1 = 2π a b a b a a = sin(an 1) πn 1 sin(bn 2 ) πn 2. e jω1n1+jω2n2 dω 2 dω 1 e jω1n1 dω 1 ) ( 1 2π b b e jω2n2 dω 2 )

Example: Separable ideal lowpass filter (3) 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(n 1,n 2 ) 0.1 0 n 2 10 0 n 2 10 10 n 1 0 10 n 1

Example: PSfrag replacements Nonseparable lowpass filter As a more complex example, n 1 consider the problem of determining the impulse response of the n 2 ideal circular lowpass filter N 1 { 1, ω1 2 H(ω 1, N ω 2 ) = + ω2 2 R2 < π 2 2 x(n 1, n 2 ) 0, otherwise. y(n 1, n 2 ) This frequency response, T [ ] which is not separable, is shown below: y(n 1, n 2 ) = x(n 1 1, n 2 2) ω 2 k 1 k 2 π (n 1, n 2 ) R h(k 1, k 2 ) h(n 1 k 1, n 2 k 2 ) π π ω 1 π

The impulse response is given by h(n 1, n 2 ) = 1 4π 2 A e jω1n1+jω2n2 dω 1 dω 2, where A is the shaded area in the above figure. Defining ω = ω1 2 + ω2 2, φ = ω tan 1 2, θ = tan 1 n 1, ω 1 n 1 the impulse response becomes R 2π h(n 1, n 2 ) = 1 4π 2 ωe jω n1 2+n2 2 cos(θ φ) dφdω 0 0 = 1 R ) ωj 0 (ω n1 2 2π + n2 2 dω 0 = R J 1 (R ) n1 2 + n2 2 2π n 2 1 + n2 2 where J 0 and J 1 are Bessel functions of the first kind of orders 0 and 1 respectively.

This function is shown below for R = 0.5π: 0.2 h(n 1,n 2 ) 0.1 0 n 2 0.1 10 0 n 2 10 10 n 1 0 10 n 1 In general, the 2-D Fourier transform of a rotationally-symmetric function is itself rotationally symmetric: the 1-D profiles are related according to the Hankel transform F (q) = 2π 0 f (r)j 0 (2πqr)rdr.

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, N 1 where periodic sampling is done in rectangular coordinates. If x a (t 1, t 2 N) 2 is a continuous-time waveform, then the discrete signal obtained by x(nrectangular 1, n 2 ) sampling is y(n 1, n 2 ) T [ ] x(n 1, n 2 ) = x a (n 1 T 1, n 2 T 2 ), y(n 1 where, n 2 ) = Tx(n 1 and 1 T 1, 2 nare 2 the 2) horizontal and vertical sampling intervals. This corresponds to samplesk 1 in the plane: k 2 n 2 (n 1, n 2 ) h(k 1, k 2 ) h(n 1 k 1, n 2 k 2 ) ω 1 ω 2 π n 1 π

The criterion for being able to reconstruct x a from the samples is that T PSfrag replacements 1 and T 2 be chosen small enough that X a (Ω 1, Ω 2 ) = 0 for Ω 1 π T 1, Ω 2 π T 2. N 1 Thus the signal must ben bandlimited 2 in the 2-D Fourier domain. If this condition is not met, x(n 1 aliasing, n 2 ) results in the same way as in 1-D. Rectangular sampling y(n 1 is, nnot 2 ) the only option for periodic sampling. For circularly-symmetric bandlimited T [ ] signals it can be shown that there is no y(nmore 1, n 2 ) efficient = x(n 1 sampling 1, n 2 scheme 2) than hexagonal sampling. That is, such signals can be represented k 1 by fewer sample points than with any other sampling geometry. Hexagonal k 2 sampling is performed on a grid such as (n 1, n 2 ) n h(k 2 1, k 2 ) h(n 1 k 1, n 2 k 2 ) ω 1 ω 2 π n 1 π

n 2 2D signals Multidimensional systems Signals and systems in the frequency domain Sampling The multidimensional discrete Fourier transform Other extensi N 1 N 2 x(n Sometimes 1, n 2 ) the manner in which data are acquired determines the y(n sampling 1, n 2 ) pattern. For example, in the preparation of seismic maps it is common T [ ] for a boat to tow a uniform microphone array while covering an 1 1, n area. 2 2) The presence of a cross current can cause an offset in the angle of the array, k 1 resulting in unusual sampling: k 2 (n 1, n 2 ) h(k 1, k 2 ) k 1, n 2 k 2 ) ω 1 ω 2 π π current If a signal is sampled in such a way that aliasing is avoided, it is in general possible to transform the representation onto the sampling grid of choice. In principle one just needs to reconstruct the signal, and resample it as required.

The multidimensional discrete Fourier transform The multidimensional DFT is a simple generalisation of that for 1-D: the forward transform is given by X (k 1, k 2 ) = N 1 1 N 2 1 n 1=0 n 2=0 and the inverse transform by x(n 1, n 2 ) = N 1 1 N 2 1 k 1=0 k 2=0 x(n 1, n 2 )e j2πk1n1/n1 j2πk2n2/n2 X (k 1, k 2 )e j2πk1n1/n1+j2πk2n2/n2 The first equation formally holds for 0 k 1 N 1 1, 0 k 2 N 2 1 and the second for 0 n 1 N 1 1, 0 n 2 N 2 1.

The real part of some of the basis functions for the 2-D DFT are

If the sequence x(n 1, n 2 ) is only supported on 0 n 1 N 1 1, 0 n 2 N 2 1 (and is therefore zero outside of this area), then the DFT consists of samples of the 2-D Fourier transform X (k 1, k 2 ) = X (ω 1, ω 2 ) ω1=2πk 1/N 1,ω 2=2πk 2/N 2. 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 N 1 in the horizontal direction and N 2 in the vertical direction. Circular convolution according to the relation y(n 1, n 2 ) = N 1 1 N 2 1 m 1=0 m 2=0 h(m 1, m 2 )x(((n 1 m 1 )) N1, ((n 2 m 2 )) N2 ) is therefore implicit in all shifts involved in the DFT properties.

A direct implementation of the DFT requires N 2 1 N2 2 complex multiplications and additions. However, fast Fourier transforms can also be developed in multiple dimensions, and in 2-D require of the order of N 1 N 2 log 2 N 1 N 2 operations. These methods rely on a row-column decomposition of the DFT sum: X (k 1, k 2 ) = N 1 1 n 1=0 [ N2 1 n 2=0 x(n 1, n 2 )e j2πk2n2/n2 ] e j2πk1n1/n1. 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.

Other extensions of linear system theory Aspects of linear system theory for 1-D signals carry over to multiple dimensions, but often have very different properties.

Multidimensional recursive systems LSI systems are generally implemented using difference equations. In the 2-D case a difference equation takes the form N 1 N 2 k 1=0 k 2=0 b(k 1, k 2 )y(n 1 k 1, n 2 k 2 ) M 1 M 2 = a(r 1, r 2 )x(n 1 r 1, n 2 r 2 ). r 1=0 r 2=0 However, although multidimensional difference equations represent a generalisation of 1-D difference equations, they are considerably more complex, and are in fact quite different. For example, issues such as stability are far more difficult to understand for higher-dimensional systems.

Multidimensional recursive systems A two-dimensional z-transform can be defined according to H(z 1, z 2 ) = k 1= k 2= h(k 1, k 2 )z k1 1 z k2 2. 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.

Design and implementation of 2-D FIR filters 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

Design and implementation of 2-D FIR filters Linear-phase lowpass filter Nonlinear-phase lowpass filter

Design and implementation of 2-D FIR filters There are multidimensional counterparts to the window method of filter design, as well as the frequency-sampling method, the optimal method, and most others. Also, since FIR filters are specified in terms of convolutions, the multidimensional FFT can be used in the implementation. This becomes extremely important in high dimensions, due to the vast amount of data involved. Shown below are examples of filter responses in 2-D: Lowpass filter Bandpass filter