Spatial-Domain Convolution Filters

Similar documents
MIT 2.71/2.710 Optics 10/31/05 wk9-a-1. The spatial frequency domain

Review of Analog Signal Analysis

1-D MATH REVIEW CONTINUOUS 1-D FUNCTIONS. Kronecker delta function and its relatives. x 0 = 0

The Continuous-time Fourier

Linear Filters and Convolution. Ahmed Ashraf

Module 3. Convolution. Aim

2.710 Optics Spring 09 Solutions to Problem Set #6 Due Wednesday, Apr. 15, 2009

Introduction to Linear Systems

Module 3 : Sampling and Reconstruction Lecture 22 : Sampling and Reconstruction of Band-Limited Signals

Fourier Transform. sin(n# x)), where! = 2" / L and

The spatial frequency domain

Fourier transform. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year

ECG782: Multidimensional Digital Signal Processing

Linear Convolution Using FFT

Lecture 27 Frequency Response 2

Fourier Optics - Exam #1 Review

ECE 425. Image Science and Engineering

Module 1: Signals & System

Fourier Transform for Continuous Functions

Therefore the new Fourier coefficients are. Module 2 : Signals in Frequency Domain Problem Set 2. Problem 1

Review: Continuous Fourier Transform

PART 1. Review of DSP. f (t)e iωt dt. F(ω) = f (t) = 1 2π. F(ω)e iωt dω. f (t) F (ω) The Fourier Transform. Fourier Transform.

Lecture 3: Linear Filters

ELEN E4810: Digital Signal Processing Topic 2: Time domain

Computer Vision & Digital Image Processing. Periodicity of the Fourier transform

Multidimensional digital signal processing

Lecture 11 FIR Filters

EA2.3 - Electronics 2 1

Lecture 3: Linear Filters

Chirp Transform for FFT

VU Signal and Image Processing

Discrete Fourier Transform

Convolution and Linear Systems

The Discrete Fourier Transform. Signal Processing PSYCH 711/712 Lecture 3

Digital Signal Processing Lecture 4

Discrete Fourier transform (DFT)

The Discrete-time Fourier Transform

Signal Processing and Linear Systems1 Lecture 4: Characterizing Systems

5. LIGHT MICROSCOPY Abbe s theory of imaging

Review of Fourier Transform

EEO 401 Digital Signal Processing Prof. Mark Fowler

Continuous Fourier transform of a Gaussian Function

Introduction to Signals and Systems Lecture #4 - Input-output Representation of LTI Systems Guillaume Drion Academic year

E2.5 Signals & Linear Systems. Tutorial Sheet 1 Introduction to Signals & Systems (Lectures 1 & 2)

LAB 6: FIR Filter Design Summer 2011

GBS765 Electron microscopy

Information and Communications Security: Encryption and Information Hiding

6 The Fourier transform

Notes 07 largely plagiarized by %khc

/ (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

G52IVG, School of Computer Science, University of Nottingham

Linear Operators and Fourier Transform

Homework 4. May An LTI system has an input, x(t) and output y(t) related through the equation y(t) = t e (t t ) x(t 2)dt

Representation of Signals and Systems. Lecturer: David Shiung

Modeling and Analysis of Systems Lecture #3 - Linear, Time-Invariant (LTI) Systems. Guillaume Drion Academic year

The Continuous Time Fourier Transform

Theory of signals and images I. Dr. Victor Castaneda

Interchange of Filtering and Downsampling/Upsampling

Computer Vision. Filtering in the Frequency Domain

ENSC327 Communications Systems 2: Fourier Representations. Jie Liang School of Engineering Science Simon Fraser University

E : Lecture 1 Introduction

Fundamental Solutions and Green s functions. Simulation Methods in Acoustics

Continuous Time Signal Analysis: the Fourier Transform. Lathi Chapter 4

DFT-Based FIR Filtering. See Porat s Book: 4.7, 5.6

Sound & Vibration Magazine March, Fundamentals of the Discrete Fourier Transform

Fourier Matching. CS 510 Lecture #7 February 8 th, 2013

3. Lecture. Fourier Transformation Sampling

IMAGE ENHANCEMENT II (CONVOLUTION)


Discrete-Time Fourier Transform

SNR Calculation and Spectral Estimation [S&T Appendix A]

Review of Linear System Theory

Discrete-Time Systems

CS 179: GPU Programming. Lecture 9 / Homework 3

Discrete-Time Fourier Transform

Lecture 04 Image Filtering

CS 179: GPU Programming. Lecture 9 / Homework 3

Voiced Speech. Unvoiced Speech

2.161 Signal Processing: Continuous and Discrete Fall 2008

Convolution. Define a mathematical operation on discrete-time signals called convolution, represented by *. Given two discrete-time signals x 1, x 2,

27. The Fourier Transform in optics, II

Representation of 1D Function

Fourier Sampling. Fourier Sampling. Bioengineering 280A Principles of Biomedical Imaging. Fall Quarter 2005 Linear Systems Lecture 3.

VID3: Sampling and Quantization

ENT 315 Medical Signal Processing CHAPTER 2 DISCRETE FOURIER TRANSFORM. Dr. Lim Chee Chin

8.1 Circuit Parameters

Aspects of Continuous- and Discrete-Time Signals and Systems

Introduction to Sparsity in Signal Processing

Communication Engineering Prof. Surendra Prasad Department of Electrical Engineering Indian Institute of Technology, Delhi

Discrete Time Fourier Transform (DTFT)

VII. Discrete Fourier Transform (DFT) Chapter-8. A. Modulo Arithmetic. (n) N is n modulo N, n is an integer variable.

PH880 Topics in Physics

Nature of Light Part 2

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

HST.582J / 6.555J / J Biomedical Signal and Image Processing Spring 2007

EE 261 The Fourier Transform and its Applications Fall 2006 Final Exam Solutions. Notes: There are 7 questions for a total of 120 points

Robert Collins CSE598G Mean-Shift Blob Tracking through Scale Space

Lecture 14: Windowing

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

Discrete Fourier Transform

Transcription:

Spatial-Domain Filtering 9 Spatial-Domain Convolution Filters Consider a linear space-invariant (LSI) system as shown: The two separate inputs to the LSI system, x 1 (m) and x 2 (m), and their corresponding outputs are given as x 1 (m) y 1 (m) and x 2 (m) y 2 (m) Thus, an LSI system has the following properties: Superposition property A linear system follows linear superposition. Consider the following LSI system with two inputs x 1 (m, n) and x 2 (m, n), and their corresponding outputs y 1 (m, n) and y 2 (m, n). The linear superposition is given as x 1 (m, n) + x 2 (m, n) y 1 (m, n) + y 2 (m, n) Space invariance property Consider that if the input x(m) to a linear system is shifted by M, then the corresponding output is also shifted by the same amount of space, as follows: x(m M) y(m M). Futhermore, h(m, n; m, n ) = Tr[δ(m m, n n )] = h(m m, n n ;0,0), where Tr is the transform due to the linear system, as shown in the above figure. Hence, h(m, n; m, n ) = h(m m, n n ); the system is defined as LSI or as linear time invariant (LTI). Impulse response property A linear space-invariant system is completely specified by its impulse response. Since any input function can be decomposed into a sum of timedelayed weighted impulses, the output of a linear system can be calculated by superposing the sum of the impulse responses. For impulse at the origin, the output is h(m, n;0,0) = Tr[δ(m 0, n 0)].

10 Spatial-Domain Filtering Convolution As a consequence of LSI properties, the output of a linear shift-invariant system can be calculated by a convolution integral since the superposition sum simplifies to a convolution sum due to the shift-invariant property. The output of an LSI system is given as y(m) = f (m, z)x(z) dz Following the shift invariance of LSI, convolution is obtained, given as y(m) = f (m z)x(z) dz Convolution describes the processing of an image within a moving window. Processing within the window always happens on the original pixels, not on the previously calculated values. The result of the calculation is the output value at the center pixel of the moving window. The following steps are taken to obtain the convolution: 1. Flip the window in x and y. 2. Shift the window. 3. Multiply the window weights by the corresponding image pixels. 4. Add the weighted pixels and write to the output pixel. 5. Repeat steps 2 4 until finished. A problem with the moving window occurs when it runs out of pixels near the image border. Several trick solutions for the border region exist: Repeat the nearest valid output pixel. Reflect the input pixels outside the border and calculate the convolution. Reduce the window size. Set the border pixels to zero or mean image. Wrap the window around to the opposite side of the image (the same effect produced by filters implemented inthe Fourier domain), i.e., the circular boundary condition.

20 Frequency-Domain Filtering Convolution and Correlation in the Fourier Domain Correlation is defined in the spatial domain, and the inverse Fourier transform must be performed to return to the spatial domain. In the case of autocorrelation, reduces to F{f (x) g(x)} = F(u)G (u) F{f (x) f (x)} = F(u) 2 The inverse of this intensity spectrum generates the autocorrelation output: f (x) f (x) = F 1 F(u) 2 The process of multiplying a Fourier transform by F and then taking the inverse transform is called matched filtering. This Fourier transform property of correlation forms the basis of performing matched filtering in a computer using FFTs. Transform of a transform: Taking the transform of a transform reproduces the original function with its axes reversed: F{F(u, v)} = f ( x, y) Optically, a lens performs a Fourier transform on its input at the Fourier plane. Interestingly, it actually performs a forward transform. This property explains why an image is flipped at the output when two lenses are used to image an input. It is because two lenses perform two forward transforms. Convolution: The most famous property of the Fourier transform is the transform of convolution property, which states that the Fourier transform of a convolution of two functions is obtained by simply multiplying the individual Fourier transforms: F{f (x) g(x)} = F(u)G(u)

34 Frequency-Domain Filtering Spectrum of a Finite Periodic Signal Single pulse: Assume a rectangular pulse as shown in (a). Its spectrum is a sinc function [sinc(x)/x], as shown in (b). Infinite periodic series: If a periodic signal, as shown in (c), is created by repeating the pulse, this case is equivalent to convolving with a series of impulse functions (remember that in sampling, it was a multiplication). The frequency domain will be modified by a multiplication with the spectrum of this impulse series. Spectrum: The spectrum of the periodic function will be a series of impulses that have an envelope like the sinc function, as shown in (d). As a result, the spectrum of this periodic function is discrete. Truncated periodic series: Assume that instead of an infinite series, the periodic function is truncated at a width A, as shown in (e). This is equivalent to multiplying by a huge rectangular function. Spectrum: The spectrum will be modified by convolution with the spectrum of this huge rectangular function, which is a narrow sinc function of width 1/A. Imagine erecting a narrow sinc function at the location of the impulse function in the Fourier domain, as shown in (f).

Frequency-Domain Filtering 35 Spectrum of a Finite Periodic Signal (cont.) Mathematically, the single rectangular pulse is given as rect(x/a) sinc(au) The periodic rect function is expressed as a convolution with a series of impulse functions: rect(x/a) δ(x nb) sinc(au) δ(u n/b) The Fourier transform is equivalent to a series of impulses the magnitude of which is enveloped by a sinc function, sinc(au): [ rect(x/a) δ(x nb) ] rect(x/a) [sinc(au) δ(u n/b)] sinc(au) Limiting the number of the rect series by a huge rect with width A produces a very narrow sinc function sinc(au) convolving the series of delta functions that are under another sinc envelope, sinc(au). Thus, the delta functions acquire a certain width due to this narrow sinc convolving with it. Assume that the rectangular series is replaced by a triangular function: tri(x/a) sinc 2 (au) This will thus change the envelope of the spectrum from sinc to sinc 2. The spectrum shown in (d) on the previous page will be modified by the envelope. However, a finite width on the series will have the same effect of erecting a sinc at the bottom of the impulse functions. Mathematically, the change of the function sinc(au) to sinc 2 (Au) in the above equation will be the spectrum for the finite triangular series. When such a pulse train is passed through a communication channel with finite bandwidth (or a lens with finite aperture), the spectrum will be truncated. The resulting rectangular pulse train will appear smoothed at the edge as the high-frequency content is minimized by the bandwidth. This effect explains why imaging with a finiteaperture lens causes degradation in the fine details of an image because the aperture acts as a low-pass filter.