Dr. Engr. Sami ur Rahman Assistant Professor Department of Computer Science University of Malakand Visualization in Medicine Lecture: Convolution.

Slides:



Advertisements
Similar presentations
DCSP-14 Jianfeng Feng Department of Computer Science Warwick Univ., UK
Advertisements

ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Response to a Sinusoidal Input Frequency Analysis of an RC Circuit.
Lecture 7: Basis Functions & Fourier Series
Dr. Engr. Sami ur Rahman Assistant Professor Department of Computer Science University of Malakand Medical Imaging Principle of 3D Image acquisition.
Digital Filters. A/DComputerD/A x(t)x[n]y[n]y(t) Example:
Discrete-Time Linear Time-Invariant Systems Sections
AMI 4622 Digital Signal Processing
MM3FC Mathematical Modeling 3 LECTURE 3
Lecture 4: Linear Systems and Convolution
MM3FC Mathematical Modeling 3 LECTURE 6 Times Weeks 7,8 & 9. Lectures : Mon,Tues,Wed 10-11am, Rm.1439 Tutorials : Thurs, 10am, Rm. ULT. Clinics : Fri,
Lecture 19: Discrete-Time Transfer Functions
MM3FC Mathematical Modeling 3 LECTURE 2 Times Weeks 7,8 & 9. Lectures : Mon,Tues,Wed 10-11am, Rm.1439 Tutorials : Thurs, 10am, Rm. ULT. Clinics : Fri,
EECS 20 Chapter 9 Part 21 Convolution, Impulse Response, Filters In Chapter 5 we Had our first look at LTI systems Considered discrete-time systems, some.
Lecture 6: Linear Systems and Convolution
Signals and Systems Lecture #5
EECS 20 Chapter 9 Part 21 Convolution, Impulse Response, Filters Last time we Revisited the impulse function and impulse response Defined the impulse (Dirac.
Image (and Video) Coding and Processing Lecture 2: Basic Filtering Wade Trappe.
Discrete-Time Convolution Linear Systems and Signals Lecture 8 Spring 2008.
Analysis of Discrete Linear Time Invariant Systems
Digital Signals and Systems
The sampling of continuous-time signals is an important topic It is required by many important technologies such as: Digital Communication Systems ( Wireless.
Discrete-Time and System (A Review)
1 Chapter 8 The Discrete Fourier Transform 2 Introduction  In Chapters 2 and 3 we discussed the representation of sequences and LTI systems in terms.
1 Signals & Systems Spring 2009 Week 3 Instructor: Mariam Shafqat UET Taxila.
Dr. Engr. Sami ur Rahman Assistant Professor Department of Computer Science University of Malakand Data Structure: List.
EE3010 SaS, L7 1/19 Lecture 7: Linear Systems and Convolution Specific objectives for today: We’re looking at continuous time signals and systems Understand.
Time-Domain Representations of LTI Systems
Time Domain Representation of Linear Time Invariant (LTI).
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE 313 Linear Systems and Signals Spring 2013 Continuous-Time.
G Practical MRI 1 – 29 th January 2015 G Practical MRI 1 Introduction to the course Mathematical fundamentals.
Dr. Engr. Sami ur Rahman Digital Image Processing Lecture 1: Introduction.
2006 Fall Signals and Systems Lecture 4 Representation of signals Convolution Examples.
Fourier Analysis of Discrete-Time Systems
BYST CPE200 - W2003: LTI System 79 CPE200 Signals and Systems Chapter 2: Linear Time-Invariant Systems.
Linear Time-Invariant Systems
Hossein Sameti Department of Computer Engineering Sharif University of Technology.
Course Outline (Tentative) Fundamental Concepts of Signals and Systems Signals Systems Linear Time-Invariant (LTI) Systems Convolution integral and sum.
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Causality Linearity Time Invariance Temporal Models Response to Periodic.
EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department.
Course Outline (Tentative) Fundamental Concepts of Signals and Systems Signals Systems Linear Time-Invariant (LTI) Systems Convolution integral and sum.
Linear filtering based on the DFT
Technological Educational Institute Of Crete Department Of Applied Informatics and Multimedia Neural Networks Laboratory Slide 1 DISCRETE SIGNALS AND SYSTEMS.
Signals and Systems Lecture 19: FIR Filters. 2 Today's lecture −System Properties:  Linearity  Time-invariance −How to convolve the signals −LTI Systems.
Signals and Systems Analysis NET 351 Instructor: Dr. Amer El-Khairy د. عامر الخيري.
Linear Constant-Coefficient Difference Equations
Signals and Systems Lecture #6 EE3010_Lecture6Al-Dhaifallah_Term3321.
3/18/20161 Linear Time Invariant Systems Definitions A linear system may be defined as one which obeys the Principle of Superposition, which may be stated.
What is filter ? A filter is a circuit that passes certain frequencies and rejects all others. The passband is the range of frequencies allowed through.
Description and Analysis of Systems Chapter 3. 03/06/06M. J. Roberts - All Rights Reserved2 Systems Systems have inputs and outputs Systems accept excitation.
Chapter 2. Signals and Linear Systems
Analysis of Linear Time Invariant (LTI) Systems
1 Computing the output response of LTI Systems. By breaking or decomposing and representing the input signal to the LTI system into terms of a linear combination.
Chapter 2 System Models – Time Domain
Time Domain Representations of Linear Time-Invariant Systems
1 Chapter 8 The Discrete Fourier Transform (cont.)
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
Digital Signal Processing
Lect2 Time Domain Analysis
CE Digital Signal Processing Fall Discrete-time Fourier Transform
Linear Time Invariant Systems
Lecture 12 Linearity & Time-Invariance Convolution
Notes Assignments Tutorial problems
2 Linear Time-Invariant Systems --Analysis of Signals and Systems in time-domain An arbitrary signal can be represented as the supposition of scaled.
Digital Image Processing Week IV
Discrete Convolution of Two Signals
LECTURE 05: CONVOLUTION OF DISCRETE-TIME SIGNALS
Signals and Systems Lecture 18: FIR Filters.
Lecture 4: Linear Systems and Convolution
CE Digital Signal Processing Fall Discrete Fourier Transform (DFT)
Convolution sum & Integral
Presentation transcript:

Dr. Engr. Sami ur Rahman Assistant Professor Department of Computer Science University of Malakand Visualization in Medicine Lecture: Convolution

Overview  Function  Signal  Impulse Function  Impulse Function Decomposition  Impulse Response  Convolution  Convolution 1D  Implementing 1D Convolution  Convolution 2D  Implementing 2D Convolution  Image Filter University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 2

Function  A function is a relation between a set of inputs and a set of permissible outputs with the property that each input is related to exactly one output.  A function f takes an input x, and returns an output f(x) University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 3 Source: Wikipedia

Signal Signal: A function that conveys information about the behaviour or attributes of some phenomenon. University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 4 Discrete-time signal created from a continuous signal by sampling

Impulse Function (δ function)  The Impulse function (δ function) is a generalized function that is zero everywhere except at zero.  The impulse function, δ[n] is 1 at n=0, and zeros at n ≠ 0. University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 5

Impulse Function Decomposition A signal can be decomposed as a weighted sum of impulse function Weighted sum of impulse functions

Impulse Function Decomposition  A signal can be decomposed as a weighted sum of impulse function  The signal, x[n] can be represented by adding the shifted and scaled impulse functions University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 7

Impulse Function Decomposition University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 8 In general, a signal can be written as sum of scaled and shifted delta functions.

Impulse Response  Impulse response is the output of a system resulting from an impulse function as input. Impulse response is denoted as h[n].  Impulse response of time shifted impulse function University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 9 System *= 2 System= any signal * impulse function

Impulse Response: Scaling factor  If the system is linear, a scaled in input signal causes an identical scaling in the output signal. University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 10 System

Additive Property of Impulse Response  If the input has 3 components then the output is simply This is called additive property of linear system. University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 11 System

Additive Property of Impulse Response The response resulting from several inputs can be computed as the sum of the responses each input acting alone. University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 12 System

Additive Property of Impulse Response (cont) University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 13 We see that if the input signal is then the output will be To summarize, a signal is decomposed into a set of impulses and the output signal can be computed by adding the scaled and shifted impulse responses.

Convolution University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 14

Convolution Convolution is the most important and fundamental concept in signal processing and analysis. By using convolution, we can construct the output of system for any arbitrary input signal, if we know the impulse response of system. University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 15

Convolution General concept of convolution: A signal is decomposed into a set of impulses and the output signal can be computed by adding the scaled and shifted impulse responses University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 16

Convolution: An Important Fact The only thing we need to know about the system's characteristics is the impulse response of the system, h[n]. If we know a system's impulse response, then we can easily find out how the system reacts for any input signal. University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 17

Convolution The mathematical definition of convolution x[n] is input signal h[n] is impulse response y[n] is output * denotes convolution Notice: The terms of x[k] are multiplied by the terms of a time- shifted h[n] and add them up University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 18

Convolution in 1D  Example of convolution for 1 dimensional signal.  x[n] = { 3, 4, 5 } h[n] = { 2, 1 }  x[n] has only non-zero values at n=0,1,2, and impulse response, h[n] is not zero at n=0,1. University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 19 x[n] = { 3, 4, 5 } h[n] = { 2, 1 }

Convolution in 1D University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 20 Wikipedia

University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | x[n] = { 3, 4, 5 } h[n] = { 2, 1 } Inverse of h[n]

Next time 2D Convolution University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 22

 Let's look more closely the each output. In order to see a pattern clearly, the order of addition is swapped. The last term comes first and the first term goes to the last. And, all zero terms are ignored. University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 23 y[0] = x[0]·h[0] y[1] = x[1]·h[0] + x[0]·h[1] y[2] = x[2]·h[0] + x[1]·h[1] y[3] = x[3]·h[0] + x[2]·h[1]

University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 24 developer.apple.com

Sources University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 25 

Impulse Function Decomposition University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman |

Impulse Function Decomposition  A signal can be decomposed as a weighted sum of impulse function  Example University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 27

University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman |

University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman |

Convolution in 1D  One thing to note before we move on: Try to figure out yourself how this system behaves, by only looking at the impulse response of the system. When the impulse signal is entered the system, the output of the system looks like amplifier and echoing. At the time is 0, the intensity was increased (amplified) by double and gradually decreased while the time is passed.  From the equation of convolution, the output signal y[n] will be.  Let's compute manually each value of y[0], y[1], y[2], y[3],... University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 30

Convolution in 1D University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 31

 Notice that y[0] has only one component, x[0]h[0], and others are omitted, because others are all zeros at k ≠ 0. In other words, x[1]h[-1] = x[2]h[-2] = 0. The above equations also omit the terms if they are obviously zeros. If n is larger than and equal to 4, y[n] will be zeros. So we stop here to compute y[n]and adding these 4 signals (y[0], y[1], y[2], y[3]) produces the output signal y[n] = {6, 11, 14, 5}. University Of Malakand | Department of Computer Science | Visual Computing Research Group | Dr. Engr.Sami ur Rahman | 32