From Fourier Series to Analysis of Non-stationary Signals - II

Similar documents
Number Representation and Waveform Quantization

8 The SVD Applied to Signal and Image Deblurring

6 The SVD Applied to Signal and Image Deblurring

8 The SVD Applied to Signal and Image Deblurring

8/13/16. Data analysis and modeling: the tools of the trade. Ø Set of numbers. Ø Binary representation of numbers. Ø Floating points.

CMPT 889: Lecture 3 Fundamentals of Digital Audio, Discrete-Time Signals

P1: OSO c01 JWBS001/Broughton September 11, :9 Printer Name: Yet to Come VECTOR SPACES, SIGNALS, AND IMAGES

Singular Value Decompsition

Signal Processing COS 323

8/19/16. Fourier Analysis. Fourier analysis: the dial tone phone. Fourier analysis: the dial tone phone

EECE 2510 Circuits and Signals, Biomedical Applications Final Exam Section 3. Name:

EE Homework 13 - Solutions

EE123 Digital Signal Processing

Digital Signal Processing

6.003: Signals and Systems. Sampling and Quantization

Fourier Transforms 1D

4. Quantization and Data Compression. ECE 302 Spring 2012 Purdue University, School of ECE Prof. Ilya Pollak

VID3: Sampling and Quantization

Inverse Problems in Image Processing

Noise Robust Isolated Words Recognition Problem Solving Based on Simultaneous Perturbation Stochastic Approximation Algorithm

Measurement and Instrumentation. Sampling, Digital Devices, and Data Acquisition

DSP Design Lecture 2. Fredrik Edman.

Multimedia Networking ECE 599

EE301 Signals and Systems In-Class Exam Exam 3 Thursday, Apr. 20, Cover Sheet

Introduction to digital systems. Juan P Bello

7.1 Sampling and Reconstruction

What is Image Deblurring?


UNIT 1. SIGNALS AND SYSTEM

1. Write a program to calculate distance traveled by light

6.02 Fall 2012 Lecture #10

Image Acquisition and Sampling Theory

Sparse Solutions of Systems of Equations and Sparse Modelling of Signals and Images

Math (P)Review Part I:

Wavelets and Multiresolution Processing

6.869 Advances in Computer Vision. Bill Freeman, Antonio Torralba and Phillip Isola MIT Oct. 3, 2018

DSP Configurations. responded with: thus the system function for this filter would be

Multimedia & Computer Visualization. Exercise #5. JPEG compression

CS 1124Media computation. Oct 6, 2008 Steve Harrison

ELEN E4810: Digital Signal Processing Topic 11: Continuous Signals. 1. Sampling and Reconstruction 2. Quantization

E : Lecture 1 Introduction

Time-domain representations

3 rd class Mech. Eng. Dept. hamdiahmed.weebly.com Fourier Series

SPEECH ANALYSIS AND SYNTHESIS

Introduction to Computer Vision. 2D Linear Systems

Lecture 3: Linear Filters

Numerical Analysis. Carmen Arévalo Lund University Arévalo FMN011

The information loss in quantization

Lecture 2: Haar Multiresolution analysis

Math 56 Homework 5 Michael Downs

Modern Digital Communication Techniques Prof. Suvra Sekhar Das G. S. Sanyal School of Telecommunication Indian Institute of Technology, Kharagpur

Sampling in 1D ( ) Continuous time signal f(t) Discrete time signal. f(t) comb

Lecture 3: Linear Filters

Computer Vision & Digital Image Processing

Chapter 1 Fundamental Concepts

Sampling اهمتسیس و اهلانگیس یرهطم لضفلاوبا دیس فیرش یتعنص هاگشناد رتویپماک هدکشناد

Image Filtering. Slides, adapted from. Steve Seitz and Rick Szeliski, U.Washington

Continuous Fourier transform of a Gaussian Function

Compression. Reality Check 11 on page 527 explores implementation of the MDCT into a simple, working algorithm to compress audio.

Audio /Video Signal Processing. Lecture 2, Quantization, SNR Gerald Schuller, TU Ilmenau

Lecture 1: Introduction Introduction

Designing Information Devices and Systems I Fall 2016 Official Lecture Notes Note 2

Tutorial Sheet #2 discrete vs. continuous functions, periodicity, sampling

Overview. Analog capturing device (camera, microphone) PCM encoded or raw signal ( wav, bmp, ) A/D CONVERTER. Compressed bit stream (mp3, jpg, )

Designing Information Devices and Systems I Fall 2017 Official Lecture Notes Note 2

Chap 4. Sampling of Continuous-Time Signals

Digital Electronics Part 1: Binary Logic

Time-Frequency Analysis

Analog Signals and Systems and their properties

Lecture 2: Introduction to Audio, Video & Image Coding Techniques (I) -- Fundaments

Digital Signal Processing 2/ Advanced Digital Signal Processing Lecture 3, SNR, non-linear Quantisation Gerald Schuller, TU Ilmenau

Image and Multidimensional Signal Processing

LAB 2: DTFT, DFT, and DFT Spectral Analysis Summer 2011

on a per-coecient basis in large images is computationally expensive. Further, the algorithm in [CR95] needs to be rerun, every time a new rate of com

Image Compression. Fundamentals: Coding redundancy. The gray level histogram of an image can reveal a great deal of information about the image

BASIC COMPRESSION TECHNIQUES

SYDE 575: Introduction to Image Processing. Image Compression Part 2: Variable-rate compression

Chirp Transform for FFT

Analog to Digital Converters (ADCs)

Lecture 2: Introduction to Audio, Video & Image Coding Techniques (I) -- Fundaments. Tutorial 1. Acknowledgement and References for lectures 1 to 5

EE301 Signals and Systems In-Class Exam Exam 3 Thursday, Apr. 19, Cover Sheet

Multimedia Systems Giorgio Leonardi A.A Lecture 4 -> 6 : Quantization

Convolutional Associative Memory: FIR Filter Model of Synapse

Prof. Mohd Zaid Abdullah Room No:

MAT120 Supplementary Lecture Notes

From Fourier Series to Analysis of Non-stationary Signals - X

Lab Fourier Analysis Do prelab before lab starts. PHSX 262 Spring 2011 Lecture 5 Page 1. Based with permission on lectures by John Getty

Counting. 1 Sum Rule. Example 1. Lecture Notes #1 Sept 24, Chris Piech CS 109

Analog Digital Sampling & Discrete Time Discrete Values & Noise Digital-to-Analog Conversion Analog-to-Digital Conversion

Revision of Basic A.C. Theory

Lab 2: Static Response, Cantilevered Beam

EE263 homework 3 solutions

MODIFIED CENTRAL WEIGHTED VECTOR MEDIAN FILTER 1. STANDARD NOISE REDUCTION FILTERS

Intensity Transformations and Spatial Filtering: WHICH ONE LOOKS BETTER? Intensity Transformations and Spatial Filtering: WHICH ONE LOOKS BETTER?

Image Compression. 1. Introduction. Greg Ames Dec 07, 2002

Principles of Communications

LAB 6: FIR Filter Design Summer 2011

!Sketch f(t) over one period. Show that the Fourier Series for f(t) is as given below. What is θ 1?

Problem Value

Denoising and Compression Using Wavelets

Transcription:

From Fourier Series to Analysis of Non-stationary Signals - II prof. Miroslav Vlcek October 10, 2017

Contents Signals 1 Signals 2 3 4

Contents Signals 1 Signals 2 3 4

Contents Signals 1 Signals 2 3 4

Contents Signals 1 Signals 2 3 4

1-dimensional signals Signals We recognize fundamentally 1-dimensional, 2-dimensional, and multidimensional signals. 1-dimensional signals... 1 a real piano tone A 2 a speech

1-dimensional signals - speech signal 1 Signal chat.wav 0.5 0 0.5 1 0 0.2 0.4 0.6 0.8 1 1.2 1.4 Time

2-dimensional signals Signals 2-dimensional signals...

2-dimensional signals Signals Histogram is a graph showing the number of pixels in an image at each different intensity value.

Image restoration and denoising Edge detection and denoising Image compression

Image denoising by filter application c Department 16111, CTU

Image denoising by filter application c Department 16111, CTU

Image restoration and denoising c Department 16111, CTU

Image restoration and denoising c Department 16111, CTU

Edge detection and denoising c Department 16111, CTU

Edge detection and denoising c Department 16111, CTU

Edge detection and denoising c Department 16111, CTU

Restoration, image denoising Images can be of poor quality for variety reasons: low-quality image capture (security video cameras) blurring when the picture is taken physical damage to an actual photo noise contamination during the image capture process Restoration seeks to return the image to its original quality.

Edge detection Signals The features of interest in an image are the edges, areas of transition that indicate the end of one object and beginning of another. Applicable in image processing - see Lena 1, or in automated vision and robotics. 1 Lena Soderberg (Sjööblom) 1972

Compression Signals Memory requirement for a typical photograph: 24-bit colour 1 byte for each of the red, green, and blue components for 2048 1526 pixel image we need 2048 1526 3 = 9431040 bytes 9 Mb a picture, what can be stored in a 2 Gb memory stick? Compression algorithms!!! and their drawbacks

Analog and Digital Signals - Sampling An analog or continuous signal x(t) is a real-valued function of an independent variable t in the definition domain a t b; variable t is usually time. The function x(t) can represent the intensity of a sound (audio signal), the speed of an object,... For N 1 we define the sampling period T s = b a N, the quantity f s = 1 T s is proportional to number of samples taken during each time period and it is called sampling frequency. Finally we obtain digital or sampled signal x(n) = x(a+n T s ) for 0 n N.

Analog and Digital Signals 1.5 1 0.5 0 0.5 1 1.5 0 2 4 6 8 10 12 14 1.5 Discrete signal x(n) Continuous signal x(t) 1 0.5 0 0.5 1 1.5 0 2 4 6 8 10 12 14

Analog and Digital Signals - Quantization Sampling is not the only source of error in A/D conversion. Consider an analog voltage signal that ranges from 0 to 1 volt. An A-to-D converter divides up this 1 volt range into 2 8 = 256 equally sized intervals. the kth interval given by k x x < (k + 1) x where x = 1/256 and 0 k 255. If a measurement of the analog signal at an instant in time falls within the kth interval, then the A-to-D converter records the voltage at this time as k x.

Analog and Digital Signals - Quantization This is the quantization step, in which a continuously varying quantity is truncated or rounded to the nearest of a finite set of values quantization error. An A-to-D converter as above would be said to be 8-bit, because each analog measurement is converted into an 8-bit quantity. The combination of sampling and quantization allows us to digitize a signal or image, and thereby convert it into a form suitable for computer storage and processing.

Analog and Digital Signals - Quantization Error y(n) = x(n)+ǫ(n) 1.5 1 0.5 0 0.5 1 1.5 0 2 4 6 8 10 12 14 1.5 Discrete noisy signal y(n) Discrete noiseless signal x(n) Continuous signal x(t) 1 0.5 0 0.5 1 1.5 0 2 4 6 8 10 12 14

Vector space - revision Signals Definition A vector space over the real numbers R is a set V with two operations, vector addition and scalar multiplication, with the properties that 1 for all vectors u, v V the vector sum u+v is defined and lies in V (closure under addition); 2 for all u V and scalars a R the scalar multiple au is defined and lies in V (closure under scalar multiplication); 3 the familiar rules of arithmetic apply, specifically, for all scalars a, b and u, v, w V : a) u+v = v+u, e.g. addition is commutative, b) (u+v)+w = u+(v+w) e.g. addition is associative,

Vector space - revision Signals c) there is a zero vector 0 such that u+0 = 0+u u additive identity, d) for each u V there is an additive inverse vector w such that u+w = 0, we conventionally write u for the additive inverse of u, e) (ab)u = a(bu), f) (a+b)u = au+bu, g) a(u+v) = au+av. If we replace R above by the field of complex numbers C, then we obtain the definition of a vector space over the complex numbers.

Vector space - Examples Signals Example 1: The vector space R N consists of vectors x of the form x = (x 1, x 2,..., x N ) where the x k are all real numbers. Prove all the properties of the vector space, e.g. multiplication, addition... Warning: In later work we will almost always find it convenient to index the components of vectors in R N or C N starting with index 0, that is, as x = (x 0, x 1,..., x N 1 ), rather than the more traditional range 1 to N.

Vector space - Examples Signals Example 2: The sets M m,n (R) or M m,n (C), m n matrices with real or complex entries respectively, form vector spaces. Note: Any multiplicative properties of matrices are irrelevant in this context!! The vector space M m,n (R) is an appropriate model for the discretization of images on a rectangle. Analysis of images is often facilitated by viewing them as members of space M m,n (C).

Discrete Signal Models Signals notation vector space description R N x = (x 1,..., x N ) : x k R N, finite sampled signals C N x = (z 1,..., z N ) : z k C N, analysis of sampled signals L (N) or l x = (x 1,..., x N ) : x k R N, x k M for all k L 2 (N) or l 2 bounded, sampled signals, infinite time x = (x 1,..., x N ) : x k R N or x k C N, k x k 2 < sampled signals, finite energy, infinite time M m,n (R) Real m n matrices, sampled rectangular image M m,n (C) Complex m n matrices, analysis of images

MATLAB Project 1 Signals Analyze sine function as signal 1 Start Matlab and open a new m-file. 2 Consider sampling the function f(t) = sin(2π(440)t) on the interval 0 t < 1, at 8192 points (sampling interval t = 1/8192 to obtain samples f(k) = f(k t) = sin(2π(440)k/8192) for 0 k 8191. The samples can be arranged in a vector f. You can do this in Matlab with f = sin(2 * pi * 440/8192 * (0:8191));

MATLAB Project 1 Signals Note: The sample vector f is stored in double precision floating point, about 15 significant figures. However, well consider f as not yet quantized. That is, the individual components f(k) of f can be thought of as real numbers that vary continuously, since 15 digits is pretty close to continuous for our purposes.

MATLAB Project 1 - specific tasks and problems a) What is the frequency of the sinewave sin(2π(440)t), in Hertz? b) Plot the sampled signal with the command plot(f). It probably doesn t look too good, as it goes up and down 440 times in the plot range. You can plot a smaller range, say the first 100 samples, with plot(f(1:100)). c) At the sampling rate 8192 Hertz, what is the Nyquist frequency? Is the frequency of f(t) above or below the Nyquist frequency? d) Type sound(f) to play the sound out of the computer speaker. By default, Matlab plays all sound files at 8192 samples per second, and assumes the sampled audio signal is in the range -1 to 1.

MATLAB Project 2 - specific tasks and problems a) As an example of aliasing, consider a second signal g(t) = sin(2π(440 + 8192)t). Repeat parts (a) through (d) with sampled signal g = sin(2*pi*(440+8192)/8192*(0:8191));. The analog signal g(t) oscillates much faster than f(t), and we could expect it to yield a higher pitch. However, when sampled at frequency 8192 Hertz, f(t) and g(t) are aliased and yield precisely the same sampled vectors f and g. They should sound the same too. b) To illustrate the effect of quantization error, let us construct a 2-bit (4 quantization levels) version of the audio signal f(t).

MATLAB Project 2 - specific tasks and problems c) The command qf = ceil(2 * (f+1))-1; produces the quantized signal q(f). Sample values of f(t) in the ranges ( 1, 0.5 >,( 0.5, 0 >,(0, 0.5 >, and (0.5, 1 > are mapped to the integers 0, 1, 2, 3, respectively. d) To approximately reconstruct the quantized signal, we apply the dequantization formula to construct frec as frec = -1 + 0.5 * (qf+0.5); This maps the integers 0, 1, 2, and 3 to values 0.75, 0.25, 0.25, and 0.75, respectively. e) Plot the first hundred values of frec with plot(frec(1:100));. Play the quantized signal with sound(frec);.

MATLAB Project 2 - specific tasks and problems f) Compute the distortion (as a percentage) of the quantized/dequantized signal using formula f frec 2 f 2 The norm(f) command in MATLAB computes the standard Euclidean norm of the vector f.

HomeWork2 - with MATLAB Repeat quantization process using 4-,5-,6-, and 8-bit quantization. For example, 5-bit quantization is accomplished with qf=ceil (16*(f+1))-1; and dequantization with frec=-1+(qf+0.5)/16; Here 16 = 2 5 1. Make sure to play the sound in each case. Make up a table showing the number of bits in the quantization scheme, the corresponding distortion, and your subjective rating of the sound quality. At what point can your ear no longer distinguish the original audio signal from the quantized version?