Correlation and Spectral Analysis

Slides:



Advertisements
Similar presentations
Design of Digital IIR Filter
Advertisements

Signal Processing in the Discrete Time Domain Microprocessor Applications (MEE4033) Sogang University Department of Mechanical Engineering.
EE513 Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Digital Signal Processing – Chapter 11 Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah
AMI 4622 Digital Signal Processing
Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms.
LINEAR-PHASE FIR FILTERS DESIGN
Sampling, Reconstruction, and Elementary Digital Filters R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
Basics of Digital Filters & Sub-band Coding Gilad Lerman Math 5467 (stealing slides from Gonzalez & Woods)
1 The Mathematics of Signal Processing - an Innovative Approach Peter Driessen Faculty of Engineering University of Victoria.
Frequency Response of Discrete-time LTI Systems Prof. Siripong Potisuk.
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.
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
EEE422 Signals and Systems Laboratory Filters (FIR) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Systems: Definition Filter
Computational Geophysics and Data Analysis
Lecture 24: Cross-correlation and spectral analysis MP574.
Speech Signal Processing I Edmilson Morais and Prof. Greg. Dogil October, 25, 2001.
Analysis of Discrete Linear Time Invariant Systems
Lecture 9 FIR and IIR Filter design using Matlab
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Copyright © Shi Ping CUC Chapter 3 Discrete Fourier Transform Review Features in common We need a numerically computable transform, that is Discrete.
Discrete-Time and System (A Review)
Chapter 2 Discrete System Analysis – Discrete Signals
Signals and Systems Jamshid Shanbehzadeh.
The Story of Wavelets.
Digital Signal Processing – Chapter 10
EE Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
MATLAB for Signal Processing The MathWorks Inc. Natick, MA USA Filter Design.
1 BIEN425 – Lecture 10 By the end of the lecture, you should be able to: –Describe the reason and remedy of DFT leakage –Design and implement FIR filters.
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Definitions Random Signal Analysis (Review) Discrete Random Signals Random.
Concepts of Multimedia Processing and Transmission IT 481, Lecture 2 Dennis McCaughey, Ph.D. 29 January, 2007.
1 Lecture 1: February 20, 2007 Topic: 1. Discrete-Time Signals and Systems.
Hossein Sameti Department of Computer Engineering Sharif University of Technology.
Digital filters Honza Černocký, ÚPGM. Aliases Numerical filters Discrete systems Discrete-time systems etc. 2.
ES97H Biomedical Signal Processing
Chapter 7. Filter Design Techniques
ECE 8443 – Pattern Recognition ECE 3163 – Signals and Systems Objectives: Stability Response to a Sinusoid Filtering White Noise Autocorrelation Power.
Digital Signal Processing
ENEE631 Digital Image Processing (Spring'04) Basics on 2-D Random Signal Spring ’04 Instructor: Min Wu ECE Department, Univ. of Maryland, College Park.
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Normal Equations The Orthogonality Principle Solution of the Normal Equations.
Discrete-time Random Signals
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: FIR Filters Design of Ideal Lowpass Filters Filter Design Example.
The Chinese University of Hong Kong
GROUP MEMBERS ELISHBA KHALID 07-CP-07 TAHIRA SAMEEN 07-CP-31.
DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien,
EE421, Fall 1998 Michigan Technological University Timothy J. Schulz 08-Oct, 98EE421, Lecture 81 Lecture 8: Z-Transforms l ROC and Causality |z|
Lecture 09b Finite Impulse Response (FIR) Filters
EC1358 – DIGITAL SIGNAL PROCESSING
Digital Signal Processing Lecture 3 LTI System
بسم الله الرحمن الرحيم Digital Signal Processing Lecture 3 Review of Discerete time Fourier Transform (DTFT) University of Khartoum Department of Electrical.
Correlation and Power Spectra Application 5. Zero-Mean Gaussian Noise.
Real-time Digital Signal Processing Digital Filters.
Review of DSP.
LECTURE 30: SYSTEM ANALYSIS USING THE TRANSFER FUNCTION
Review of DSP.
EEE4176 Applications of Digital Signal Processing
Discrete-time Systems
The Chinese University of Hong Kong
EE Audio Signals and Systems
Review of Filter Design
Quick Review of LTI Systems
Lecture 4: Discrete-Time Systems
2D Fourier transform is separable
Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms.
Digital Image Processing
Signals and Systems Revision Lecture 1
Review of DSP.
Even Discrete Cosine Transform The Chinese University of Hong Kong
Presentation transcript:

Correlation and Spectral Analysis Application 4

Review of covariance

Autocorrelation (Autocovariance)

Noise Power

Zero-Mean Gaussian Noise

Power Spectrum E{Pn(k)} = s2 = 1.12 = Rn(0)

Auto-correlation Rn(0) = s2 = 1.12 >> for j = 1:256, R(j) = sum(n.*circshift(n',j-1)'); end

Window Selection: Hamming y = filter(Hamming,1,n);

Hamming Filtered Power Spectrum

White Noise Auto-Covariance vs. Hamming Filtered Noise

Filtered Noiseimage = imnoise(I,’gaussian’,0,10); N_autocov = xcorr2(Noiseimage); figure;imagesc(N_autocov/(128*128));colormap(gray);axis('image') Image Noise Field Autocovariance

Unfiltered figure;imagesc(fftshift(abs(fft2(N_autocov/(128*128)))));colormap(gray);axis('image') Image Noise Field Power Spectrum

Filtered (wc = 0.6; order 20; Hamming Window) N_autocov = xcorr2(Noiseimage_filtered); figure;imagesc(N_autocov/(128*128));colormap(gray);axis('image') Image Noise Field Autocovariance

Filtered (wc = 0.6; order 20; Hamming Window) N_autocov = xcorr2(Noiseimage_filtered); figure;imagesc(N_autocov/(128*128));colormap(gray);axis('image') Image Noise Field Power Spectrum

fMRI Simulation

Windowing vs. Filtering “Window” applied in temporal or spatial domain to reduce spectral leakage and ringing artifact Windows fall into a specialized set of functions generally used for spectral analysis “Filter” applied to reduce noise, i.e. noise matching, or to degrade or improve spatial resolution Some cross-over: one method of filter design is the “window” method which uses window functions for frequency space modulating functions.

Windowing vs. Filtering Mathematically,

Filtering MP 574

Outline Review of FIR/IIR Filters Power Spectra Z-transform Difference Equation Filter Design by Windowing Power Spectra Correlation and Convolution Example from Prof. Holden’s Notes Windowing and Spectral Estimation Weiner/Adaptive Filters Deconvolution

z-Transform as an Analysis Tool Sampled version (discrete version) of the Laplace transform: z esT, where T is the sampling period. DFT and z-transform are related: z = eiwT where s  eiwT

Laplace to z-Transform Im(z) Non-causal signals iw s unit circle Re(z) ws Discrete FT Continuous FT

z-Transform and Linear Systems Stated more generally: T{f(n)} f(n) g(n) h(n)

Difference Equation Implementation Shift theorem of z-transform:

Difference Equation Implementation Shift theorem of z-transform: FIR

FIR Coefficients and Impulse Response FIR filter:

FIR vs. IIR filters Finite impulse response (FIR) implies a linear system that is always stable There are no poles Infinite impulse response (IIR) is only stable if poles are inside the unit circle or pole coincides with a zero.

IIR System Im(z) Zeros (o) at: -1, 2 Poles (x) at: 0.5±0.5j, 0.75 unit circle x Re(z) o x o x

IIR Stability

fvtool(B,A) B = [1 -1 -2]; A=[1 -1.75 1.25 -0.375]

fvtool(B,A)

fvtool(B,A)

Unstable B = [1 -1 -2]; A=[1 -1.75 1.25 -0.6]

Unstable B = [1 -1 -2]; A=[1 -1.75 1.25 -0.6]

Finite impulse response (FIR) B = [1 -1 -2]; A=[1]

Definition of Stability

FIR filter Design by Windowing Simply truncate IIR filter Rectangular Window:

Matlab: fdatool

filter() in Matlab FILTER One-dimensional digital filter. Y = FILTER(B,A,X) filters the data in vector X with the filter described by vectors A and B to create the filtered data Y. The filter is a "Direct Form II Transposed" implementation of the standard difference equation: a(1)*y(n) = b(1)*x(n) + b(2)*x(n-1) + ... + b(nb+1)*x(n-nb) - a(2)*y(n-1) - ... - a(na+1)*y(n-na)

Exporting Filter Coefficients

Extension to 2D Radial Transform Parks-McClellan Transformation H(k)-> (H(k1)2+H(k2)2)1/2=T(k1,k2) See Matlab script on filter design using radial transformation to 2D: Filter Design http://zoot.radiology.wisc.edu/~fains/Code/MP574_FilterDesign.m Parks-McClellan Transformation Step 1: Translate specifications of H(w1,w2) to H(w) Step 2: Design 1D filter H(w) Step 3: Map to 2D frequency space cosw = - ½ + ½ cosw1 + ½ cosw2 + ½ cosw1 cosw2 = T(w1,w2) - Step 4: determine h(n1,n2) by 2D FT.

Hamming Window Example

Hamming Window Example >> w1 = -pi:0.01:pi; >> w2 = -pi:0.01:pi; >> [W1,W2] = meshgrid(w1,w2); >> H_2d = 0.54+0.46.*(-0.5+0.5.*cos(W1)+0.5.*cos(W2)+0.5.*cos(W1).*cos(W2)); >>figure;mesh(H_2d) filter2()

2D FIR Filter Design, Parks-McClellan

“firdemo”