Department of Computer Science Warwick Univ., UK

Slides:



Advertisements
Similar presentations
DCSP-3: Fourier Transform (continuous time) Jianfeng Feng
Advertisements

DCSP-17 Jianfeng Feng Department of Computer Science Warwick Univ., UK
DCSP-2: Fourier Transform I Jianfeng Feng Department of Computer Science Warwick Univ., UK
DCSP-12 Jianfeng Feng
DCSP-13 Jianfeng Feng
DCSP-14 Jianfeng Feng Department of Computer Science Warwick Univ., UK
DCSP-2: Fourier Transform I
DCSP-13 Jianfeng Feng Department of Computer Science Warwick Univ., UK
DCSP-3: Fourier Transform Jianfeng Feng Department of Computer Science Warwick Univ., UK
DCSP-11 Jianfeng Feng
DSPRevision I
DCSP-12 Jianfeng Feng Department of Computer Science Warwick Univ., UK
DCSP-16 Jianfeng Feng Department of Computer Science Warwick Univ., UK
The z-Transform: Introduction
1 Chapter 16 Fourier Analysis with MATLAB Fourier analysis is the process of representing a function in terms of sinusoidal components. It is widely employed.
DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
DCSP-15 Jianfeng Feng Department of Computer Science Warwick Univ., UK
DCSP-13 Jianfeng Feng Department of Computer Science Warwick Univ., UK
APPLICATIONS OF FOURIER REPRESENTATIONS TO
Discrete Time Periodic Signals A discrete time signal x[n] is periodic with period N if and only if for all n. Definition: Meaning: a periodic signal keeps.
CELLULAR COMMUNICATIONS DSP Intro. Signals: quantization and sampling.
Systems: Definition Filter
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Discrete-Time and System (A Review)
DTFT And Fourier Transform
Basics of Signal Processing. SIGNALSOURCE RECEIVER describe waves in terms of their significant features understand the way the waves originate effect.
1 The Fourier Series for Discrete- Time Signals Suppose that we are given a periodic sequence with period N. The Fourier series representation for x[n]
Digital Signal Processing – Chapter 10
Discrete Fourier Transform Prof. Siripong Potisuk.
Signals & systems Ch.3 Fourier Transform of Signals and LTI System 5/30/2016.
DCSP-8: Minimal length coding I Jianfeng Feng Department of Computer Science Warwick Univ., UK
Zhongguo Liu_Biomedical Engineering_Shandong Univ. Chapter 8 The Discrete Fourier Transform Zhongguo Liu Biomedical Engineering School of Control.
Fourier series: Eigenfunction Approach
1 Lecture 1: February 20, 2007 Topic: 1. Discrete-Time Signals and Systems.
Real time DSP Professors: Eng. Julian S. Bruno Eng. Jerónimo F. Atencio Sr. Lucio Martinez Garbino.
Fourier Analysis of Discrete Time Signals
Z TRANSFORM AND DFT Z Transform
Chapter 5 Finite-Length Discrete Transform
Fundamentals of Digital Signal Processing. Fourier Transform of continuous time signals with t in sec and F in Hz (1/sec). Examples:
EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department.
Technological Educational Institute Of Crete Department Of Applied Informatics and Multimedia Neural Networks Laboratory Slide 1 FOURIER TRANSFORMATION.
1 Lecture 4: March 13, 2007 Topic: 1. Uniform Frequency-Sampling Methods (cont.)
DTFT continue (c.f. Shenoi, 2006)  We have introduced DTFT and showed some of its properties. We will investigate them in more detail by showing the associated.
بسم الله الرحمن الرحيم Lecture (12) Dr. Iman Abuel Maaly The Discrete Fourier Transform Dr. Iman Abuel Maaly University of Khartoum Department of Electrical.
EE422G Signals and Systems Laboratory Fourier Series and the DFT Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
Digital Signal Processing
Signals & systems Ch.3 Fourier Transform of Signals and LTI System
DIGITAL SIGNAL PROCESSING ELECTRONICS
CE Digital Signal Processing Fall Discrete-time Fourier Transform
Spectral Analysis Spectral analysis is concerned with the determination of the energy or power spectrum of a continuous-time signal It is assumed that.
3.1 Introduction Why do we need also a frequency domain analysis (also we need time domain convolution):- 1) Sinusoidal and exponential signals occur.
Linear Prediction Simple first- and second-order systems
The Discrete Fourier Transform
EE Audio Signals and Systems
Lecture 14 Digital Filtering of Analog Signals
DCSP-3: Fourier Transform (continuous time)
4.1 DFT In practice the Fourier components of data are obtained by digital computation rather than by analog processing. The analog values have to be.
Chapter 8 The Discrete Fourier Transform
Z TRANSFORM AND DFT Z Transform
Lecture 18 DFS: Discrete Fourier Series, and Windowing
Chapter 2 Discrete Fourier Transform (DFT)
EEE 244-6: Fourier Transform (FFT) and Signal Processing
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Frequency Response Transfer Function Introduction to Filters.
Chapter 8 The Discrete Fourier Transform
Discrete-Time Signal processing Chapter 3 the Z-transform
Chapter 8 The Discrete Fourier Transform
Lec.6:Discrete Fourier Transform and Signal Spectrum
Electrical Communications Systems ECE Spring 2019
Fourier Transforms of Discrete Signals By Dr. Varsha Shah
Presentation transcript:

Department of Computer Science Warwick Univ., UK DCSP-Revision Jianfeng Feng Department of Computer Science Warwick Univ., UK Jianfeng.feng@warwick.ac.uk http://www.dcs.warwick.ac.uk/~feng/dcsp.html

Any signal x(t) of period T can be represented as the sum of a set of Fourier Thm. Any signal x(t) of period T can be represented as the sum of a set of cosinusoidal and sinusoidal waves of different frequencies and phases

Example I |X(F)| 2/p = Time domain Frequency domain

FT in complex exponential If the periodic signal is replace with an aperiodic signal (general case) FT is given by Is that deadly simple?

Information Entropy H(X)= Si P(xi) I(xi) = - Si P(xi) log2 P(xi) Defined the information contained in an outcome xi in x={x1, x2,…,xn} I(xi) = - log2 p(xi) H(X)= Si P(xi) I(xi) = - Si P(xi) log2 P(xi) Entropy

Shannon's first theorem An instantaneous code can be found that encodes a source of entropy H(X) with an average number Ls (average length) such that Ls >= H(X)

Huffman coding Ls = 0.729*1+0.081*3*3+0.009*5*3+0.001* 5 code length Ls = 0.729*1+0.081*3*3+0.009*5*3+0.001* 5 = 1.5980 (remember entropy is 1.4)

x [n]: time domain Definition and properties: The DTFT gives the frequency representation of a discrete time sequence with infinite length. X(w): frequency domain x [n]: time domain

DFT III Definition: The discrete Fourier transform (DFT) and its own inverse DFT (IDFT) associated with a vector X = ( X[0], X[1], … , X[N-1] ) to a vector x = ( x[0], x[1], …, x[N-1] ) of N data points, is given by

Mysterious sound Fig. 2 Simple Matlab program is left on slides clear all close all sampling_rate=100;%Hz omega=30; %signal frequecy Hz N=20000; %total number of samples for i=1:N x_sound(i)=cos(2*pi*omega*i/sampling_rate); %signal x(i)=x_sound(i)+2*randn(1,1); %signal+noise axis(i)=sampling_rate*i/N; % for psd time(i)=i/sampling_rate; % for time trace end subplot(1,2,1) plot(time,x); %signal + noise, time trace xlabel('second') ylabel('x') subplot(1,2,2) plot(axis,abs(fft(x)),'r'); % magnitude of signal xlabel('Hz'); ylabel('Amplitude') sound(x_sound) Fig. 2 Simple Matlab program is left on slides

Spectrogram Frequency Time (sec) y=chirp(t,100,1,200,'q'); % Start @ t=0:0.001:2; % 2 secs @ 1kHz sample rate y=chirp(t,100,1,200,'q'); % Start @ 100Hz, cross 200Hz at t=1sec spectrogram(y,128,120,128,1E3); % Display the spectrogram title('Quadratic Chirp: start at 100Hz and cross 200Hz at t=1sec'); sound(y) y=chirp(t,100,1,200,'q'); % Start @ Fs=5000; filename = 'h.wav'; audiowrite(filename,y,Fs); Frequency Time (sec)

DFT for image DFT for x IDFT for X

Example I Original picture Gray scale picture clear all close all figure(1) I = imread('peppers.png'); imshow(I); K=rgb2gray(I); figure(2) F = fft2(K); figure; imagesc(100*log(1+abs(fftshift(F)))); colormap(gray); title('magnitude spectrum'); figure; imagesc(angle(F)); colormap(gray) Original picture Gray scale picture

Example I

simple filter design Notice two facts: The signal has a frequency spectrum within the interval 0 to Fs/2 kHz. The disturbance is at frequency F0 (1.5) kHz. Design and implement a filter that rejects the disturbance without affecting the signal excessively. We will follow three steps:

Step 1: Frequency domain specifications Reject the signal at the frequency of the disturbance. Ideally, we would like to have the following frequency response: where w0=2p (F0/Fs) = p/4 radians, the digital frequency of the disturbance.

Step 2: Determine poles and zeros We need to place two zeros on the unit circle z1 =exp(jw0)=exp(jp/4) and z2=exp(-jw0)=exp(-jp/4) p/4

Step 2: Determine poles and zeros We need to place two zeros on the unit circle z1 =exp(jw0)=exp(jp/4) and z2=exp(-jw0)=exp(-jp/4) If we choose, say K=1, the frequency response is shown in the figure.

PSD and Phase As we can see, it rejects the desired frequency As expected, but greatly distorts the signal

Result

Recursive Filter A better choice would be to select the poles close to the zeros, within the unit circle, for stability. For example, let the poles be p1= r exp(jw0) and p2= r exp(-jw0). With r =0.95, for example we obtain the transfer function

Recursive Filter e= z1 - p1 = (1-r) z1 ~ 0. So we have H(w0) = 0, but close to 1 everywhere else

Recursive Filter We choose the overall gain k so that H(z)|z=1=1. This yields the frequency response function as shown in the figures below.

Step 3: Determine the difference equation in the time domain From the transfer function, the difference equation is determined by inspection: y(n)= 0.954 x(n) -1.3495x(n-1)+0.9543 x(n-2) +1.343 y(n-1)-0.9025 y(n-2) +

Step 3: difference equation Easily implemented as a recursion in a high-level language. The final signal y(n) with the frequency spectrum shown in the following Fig., We notice the absence of the disturbance.

Step 3: Outcomes

Matched filter Define ai = sN-i (reversing the order) y(n) = a0 x(n) + a1 x(n-1) + … + aN x(n-N) So when the signal arrives we have y(n) = SN x(n) + SN-1 x(n-1) + … + S1 x(n-N) = SN SN + SN-1 SN-1 + … + S1 S1

Wiener Filter The filtered output is given by Note that the coefficient a depends on the position s is the local variance, Ex2 is the global variance (noise)

past papers before the exam