Convolution and Linear Systems

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

LTI Systems (Continuous & Discrete) - Basics

Frequency Response (III) Lecture 26:

Signal Processing and Linear Systems1 Lecture 4: Characterizing Systems

Introduction to Linear Systems

Images have structure at various scales

06/12/ rws/jMc- modif SuFY10 (MPF) - Textbook Section IX 1

Computational Methods for Astrophysics: Fourier Transforms

Module 1: Signals & System

2. CONVOLUTION. Convolution sum. Response of d.t. LTI systems at a certain input signal

Linear Operators and Fourier Transform

The Convolution Sum for Discrete-Time LTI Systems

Chapter 2: Linear systems & sinusoids OVE EDFORS DEPT. OF EIT, LUND UNIVERSITY

Definition and Properties

4.1. If the input of the system consists of the superposition of M functions, M

(f g)(t) = Example 4.5.1: Find f g the convolution of the functions f(t) = e t and g(t) = sin(t). Solution: The definition of convolution is,

Additional Pointers. Introduction to Computer Vision. Convolution. Area operations: Linear filtering

Fourier Methods in Digital Signal Processing Final Exam ME 579, Spring 2015 NAME

Discussion Section #2, 31 Jan 2014

Linear Filters and Convolution. Ahmed Ashraf

2 Classification of Continuous-Time Systems

Lecture 11 FIR Filters

Getting Started with Communications Engineering

Math 3313: Differential Equations Laplace transforms

Lecture 1 January 5, 2016

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

Fourier Transform for Continuous Functions

Outline. Convolution. Filtering

CS168: The Modern Algorithmic Toolbox Lecture #11: The Fourier Transform and Convolution

The Laplace transform

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

Linear Algebra, Summer 2011, pt. 2

1 otherwise. Note that the area of the pulse is one. The Dirac delta function (a.k.a. the impulse) can be defined using the pulse as follows:

x(t) = t[u(t 1) u(t 2)] + 1[u(t 2) u(t 3)]

Today s lecture. Local neighbourhood processing. The convolution. Removing uncorrelated noise from an image The Fourier transform

Digital Signal Processing Lecture 4

Chapter 6: The Laplace Transform 6.3 Step Functions and

ECG782: Multidimensional Digital Signal Processing

6 The Fourier transform

Presentation 1

Notes 07 largely plagiarized by %khc

Discrete-Time Systems

1 Signals and systems

Representation of Signals and Systems. Lecturer: David Shiung

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.

a_n x^(n) a_0 x = 0 with initial conditions x(0) =... = x^(n-2)(0) = 0, x^(n-1)(0) = 1/a_n.

1 Introduction. 2 Solving Linear Equations

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

Introduction to Image Processing #5/7

1. SINGULARITY FUNCTIONS

Summary of Fourier Transform Properties

Edge Detection. CS 650: Computer Vision

Review of Linear Time-Invariant Network Analysis

CH.3 Continuous-Time Linear Time-Invariant System

Figure 1 A linear, time-invariant circuit. It s important to us that the circuit is both linear and time-invariant. To see why, let s us the notation

Lecture 10: Powers of Matrices, Difference Equations

Laplace Transforms and use in Automatic Control

e st f (t) dt = e st tf(t) dt = L {t f(t)} s

Laplace Transform Part 1: Introduction (I&N Chap 13)

Row Reduction

EECE 3620: Linear Time-Invariant Systems: Chapter 2

CONVOLUTION & PRODUCT THEOREMS FOR FRFT CHAPTER INTRODUCTION [45]

Representation of 1D Function

Lecture 11: Continuous-valued signals and differential entropy

Conformal maps. Lent 2019 COMPLEX METHODS G. Taylor. A star means optional and not necessarily harder.

Math 52: Course Summary

Latches. October 13, 2003 Latches 1

EE Introduction to Digital Communications Homework 8 Solutions

Aspects of Continuous- and Discrete-Time Signals and Systems

Ordinary Differential Equations

EA2.3 - Electronics 2 1

Properties of LTI Systems

Sensors. Chapter Signal Conditioning

Algebra 8.6 Simple Equations

Topic 7. Convolution, Filters, Correlation, Representation. Bryan Pardo, 2008, Northwestern University EECS 352: Machine Perception of Music and Audio

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

ORDINARY DIFFERENTIAL EQUATIONS

Cosc 3451 Signals and Systems. What is a system? Systems Terminology and Properties of Systems

19. The Fourier Transform in optics

1 Introduction. 2 Solving Linear Equations. Charlotte Teacher Institute, Modular Arithmetic

26. The Fourier Transform in optics

Networks and Systems Prof V.G K. Murti Department of Electrical Engineering Indian Institute of Technology, Madras Lecture - 10 Fourier Series (10)

CLTI Differential Equations (3A) Young Won Lim 6/4/15

Lecture 2 Discrete-Time LTI Systems: Introduction

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

8. Convolution. T is linear: T (af + bg) = at (f) + bt (g) (8.1) T is translation invariant: T (τ a (f)) = τ a (T (f)) (8.2)

ECE Digital Image Processing and Introduction to Computer Vision. Outline

Review of probability. Nuno Vasconcelos UCSD

Lecture 04 Image Filtering

Generalized sources (Sect. 6.5). The Dirac delta generalized function. Definition Consider the sequence of functions for n 1, Remarks:

Background LTI Systems (4A) Young Won Lim 4/20/15

=.55 = = 5.05

Analog Signals and Systems and their properties

Mathematical Foundations of Signal Processing

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note Introduction: Op-amps in Negative Feedback

Differential Forms. Introduction

ESS Dirac Comb and Flavors of Fourier Transforms

26. The Fourier Transform in optics

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

Differential Equations

Transcription:

CS 450: Introduction to Digital Signal and Image Processing Bryan Morse BYU Computer Science Introduction Analyzing Systems Goal: analyze a device that turns one signal into another. Notation: f (t) g(t) f (t) is the input signal g(t) is the output signal (We ll write this for 1-dimensional signals, but all of the theory applies to higher-dimensional signals as well.)

Introduction Linearity (Revisited) An operation T is linear if and only if T (ax + by) = at (x) + bt (y) Implications: T (ax) = at (x) T (x + y) = T (x) + T (y) Introduction Multiplying an Input to a Linear Operation If the operation is linear: f (t) g(t) a f (t) a g(t) Applying a linear operation to an signal multiplied by a constant is the same as applying the operation and then multiplying by that constant. This is called the scaling property of linear operations.

Introduction Adding Inputs to a Linear Transformation If the operation is linear: f 1 (t) g 1 (t) f 2 (t) g 2 (t) f 1 (t) + f 2 (t) g 1 (t) + g 2 (t) Applying a linear operation to the sum of two signals is the same as applying it to each separately and adding the results. This is called the superposition property of linear operations. Introduction Shift Invariance Shift invariance means an operation is invariant to translation. Implication: If you shift the input, you get the same (shifted) output. In other words, implies f (t) g(t) f (t + T ) g(t + T )

Introduction Systems Linearity and shift invariance are nice properties for a signal-processing operation to have: input devices output devices processing A transformation that is both linear and shift invariant is called a system. Introduction The Little White Lie No physical device is really a linear system: Linearity is limited by saturation. Shift invariance is limited by sampling duration or field of view. Random noise isn t linear. But many devices are nearly linear over a limited field of view, limited range of response, and reasonable noise.

Impulses and Impulse Responses Impulses Since the system does the same thing everywhere, let s test it at a single point with a single spike in the signal, a single point of light, etc. and see what happens. We know we can t make a single perfect spot/spike, but we can consider what happens in the limit as we do. Suppose that we take a uniform spot of light with width w and brightness 1/w so that the total flux stays constant. What happens in the limit as we make it smaller (w 0)? Impulses and Impulse Responses Impulse Functions Mathematically, a perfect single-point input is called an impulse function and is written as δ(t) = { if t = 0 0 otherwise and δ(t) dt = 1 This is also called the Dirac delta function.

Impulses and Impulse Responses More on Impulse Functions Shifting a delta function just shifts the non-zero spike: δ(t k) = { if t = k 0 otherwise Multiplying a delta function by a constant multiplies the integrated area: a δ(t) dt = a Stretching/shrinking the time scale changes the area of the delta function accordingly: δ(at) dt = 1 a Impulses and Impulse Responses Impulse Responses Because a system is shift-invariant, it responds the same everywhere: δ(t) h(t) implies δ(t + T ) h(t + T ) So we only have to measure this response h(t) once. This response h(t) is called the impulse response, or perhaps more descriptively for images, the point spread function.

Impulses and Impulse Responses Impulse Responses Because a system is linear, the response to a multiplied impulse is the same multiple of the impulse response: implies δ(t) h(t) a δ(t) a h(t) Impulses and Impulse Responses Impulse Responses Because a system is linear, the response to two impulses is the same as the sum of the two responses to them individually: implies δ(t) h(t) δ(t + T ) h(t + T ) δ(t) + δ(t + T ) h(t) + h(t + T )

Impulses and Impulse Responses Impulse Responses Putting it all together: implies δ(t) h(t) a δ(t) + b δ(t + T ) a h(t) + b h(t + T ) If you know the impulse response at any point, you know the output for any combination of input points you know everything there is to know about the system! Response Over An Entire Signal Response to an Entire Signal A signal f (t) can be thought of as the sum of a whole lot of weighted shifted impulse functions: f (t) = a(τ) δ(t τ) dτ where δ(t τ) is a delta function at position τ a(τ) is the weight of that delta function (Read the integral simply as summation over all input positions τ.)

Response Over An Entire Signal Response to an Entire Signal Because of linearity, each impulse goes through the system separately: a(τ) δ(t τ) a(τ) h(t τ) This means a(τ) δ(t τ) dτ a(τ) h(t τ) dτ Response Over An Entire Signal Response to an Entire Signal But isn t the weight a(τ) of the delta function at τ just the value of the function there f (τ)? So, f (t) f (τ) h(t τ) dτ This is just the convolution of f and h.

of input f (t) by impulse response h(t) is written as f (t) h(t) where f (t) h(t) = = f (τ) h(t τ) dτ f (t τ) h(τ) dτ Compare this to discrete convolution as we saw it earlier: f (t) h(t) = k f (t k) h(k) Response to an Entire Signal (revisited) So, the response of a system with impulse response h(t) to input f (t) is simply the convolution of f (t) and h(t): f (t) f (t) h(t)

One Way to Think of Think of it this way: Or: f (t) h(t) = f (t) h(t) = k f (τ) h(t τ) dτ f (k) h(t k) shift a copy of h to each position τ (or discrete position k) multiply by the value at that position f (τ) (or discrete sample f (k)) add shifted, multiplied copies for all τ (or discrete k) break the signal into each continuous point or discrete sample send each one through individually to produce blurred points add up the blurred points Example: - One Way f (t) = [ ] h(t) = [ ] f (0) h(t 0) = [ ] f (1) h(t 1) = [ ] f (2) h(t 2) = [ ] f (3) h(t 3) = [ ] f (4) h(t 4) = [ ] f (t) h(t) = k f (k) h(t k) = [ ]

- Another Way To Look At It f (t) h(t) = k = k f (k) h(t k) h(k) f (t k) Think of it this way: flip the function h around zero shift a copy to output position t point-wise multiply for each position k the value of the function f and the shifted inverted copy of h add for all k and write that value at position t Same as the spatial filtering we ve already talked about, except the mask is the flipped impulse response. Example: - Another Way f (t) = [ ] h(t) = [ ] f (t) h(t) = k f (k) h(t k) = [ ]

Why Flip the Impulse Function? An input at t produces a response at t + τ of h(τ). How do you determine how the output at t is affected by input at t + τ? h( τ) Other Applications of : Polynomial Multiplication p 1 (x) = x 2 + x + p 2 (x) = x 2 + x + p 1 (x) p 2 (x) = x 4 + x 3 + x 2 + x +

in Statistics If you add the results from two independent distributions, the distribution of this sum is the convolution of the two independent distributions. Central Limit Theorem: As you convolve any distribution with itself an infinite number of times, in the limit it approaches a normal (Gaussian) distribution. in Two Dimensions In one dimension: f (t) h(t) = f (τ) h(t τ) dτ In two dimensions: I(x, y) h(x, y) = I(τ x, τ y ) h(x τ x, y τ y ) dτ x dτ y Or in discrete form: I(x, y) h(x, y) = j k I(j, k) h(x j, y k)

Properties of has the following mathematical properties: Commutative Associative Distributes over addition In simple terms, convolution has the same mathematical properties as multiplication. (This is no coincidence.)