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

Similar documents
Multimedia communications

Linear Operators and Fourier Transform

Image Acquisition and Sampling Theory

6.003: Signals and Systems. Sampling and Quantization

ECG782: Multidimensional Digital Signal Processing

Wavelets and Multiresolution Processing

Lecture 3: Linear Filters

Lecture 3: Linear Filters

Fourier Transforms 1D

Images have structure at various scales

Sampling. Alejandro Ribeiro. February 8, 2018

Compression and Coding. Theory and Applications Part 1: Fundamentals

! Introduction. ! Discrete Time Signals & Systems. ! Z-Transform. ! Inverse Z-Transform. ! Sampling of Continuous Time Signals

Module 4 MULTI- RESOLUTION ANALYSIS. Version 2 ECE IIT, Kharagpur

Principles of Communications

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

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

CITS 4402 Computer Vision

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

ESS Dirac Comb and Flavors of Fourier Transforms

Introduction to Computer Vision. 2D Linear Systems

Filtering and Edge Detection

ECG782: Multidimensional Digital Signal Processing

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

Module 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur

Chapter 5 Frequency Domain Analysis of Systems

Convolution Spatial Aliasing Frequency domain filtering fundamentals Applications Image smoothing Image sharpening

Histogram Processing

Contents. Signals as functions (1D, 2D)

Representation of Signals and Systems. Lecturer: David Shiung

IB Paper 6: Signal and Data Analysis

Novel Waveform Design and Scheduling For High-Resolution Radar and Interleaving

Multirate Digital Signal Processing

ESE 531: Digital Signal Processing

I Chen Lin, Assistant Professor Dept. of CS, National Chiao Tung University. Computer Vision: 4. Filtering

Image preprocessing in spatial domain

Quantization. Introduction. Roadmap. Optimal Quantizer Uniform Quantizer Non Uniform Quantizer Rate Distorsion Theory. Source coding.

Image preprocessing in spatial domain

3. Lecture. Fourier Transformation Sampling

TRACKING and DETECTION in COMPUTER VISION Filtering and edge detection

Lecture 6 January 21, 2016

New Filters for Image Interpolation and Resizing

Interchange of Filtering and Downsampling/Upsampling

Index. p, lip, 78 8 function, 107 v, 7-8 w, 7-8 i,7-8 sine, 43 Bo,94-96

Chapter 16. Local Operations

Digital Image Processing

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

ESE 531: Digital Signal Processing

Problem with Fourier. Wavelets: a preview. Fourier Gabor Wavelet. Gabor s proposal. in the transform domain. Sinusoid with a small discontinuity

Wavelets: a preview. February 6, 2003 Acknowledgements: Material compiled from the MATLAB Wavelet Toolbox UG.

Correlator I. Basics. Chapter Introduction. 8.2 Digitization Sampling. D. Anish Roshi

Review: Continuous Fourier Transform

Contents. Signals as functions (1D, 2D)

Contents. Signals as functions (1D, 2D)

ESE 531: Digital Signal Processing

Review of Fourier Transform

Inverse Problems in Image Processing

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:

Digital Signal Processing

Lecture 7. Fourier Analysis

Computational Methods for Astrophysics: Fourier Transforms

4.1 Introduction. 2πδ ω (4.2) Applications of Fourier Representations to Mixed Signal Classes = (4.1)

Introduction to Image Processing #5/7

EE 5345 Biomedical Instrumentation Lecture 12: slides

Representation of 1D Function

Introduction to Linear Systems

Compression and Coding. Theory and Applications Part 1: Fundamentals

Homework 4. May An LTI system has an input, x(t) and output y(t) related through the equation y(t) = t e (t t ) x(t 2)dt

ITK Filters. Thresholding Edge Detection Gradients Second Order Derivatives Neighborhood Filters Smoothing Filters Distance Map Image Transforms

ECE 301 Fall 2010 Division 2 Homework 10 Solutions. { 1, if 2n t < 2n + 1, for any integer n, x(t) = 0, if 2n 1 t < 2n, for any integer n.

EE 261 The Fourier Transform and its Applications Fall 2007 Problem Set Eight Solutions

V(t) = Total Power = Calculating the Power Spectral Density (PSD) in IDL. Thomas Ferree, Ph.D. August 23, 1999

Department of Electrical Engineering, Polytechnic University, Brooklyn Fall 05 EL DIGITAL IMAGE PROCESSING (I) Final Exam 1/5/06, 1PM-4PM

Fourier Transform and Frequency Domain

Today s lecture. The Fourier transform. Sampling, aliasing, interpolation The Fast Fourier Transform (FFT) algorithm

Introduction to the Mathematics of Medical Imaging

Spatial Enhancement Region operations: k'(x,y) = F( k(x-m, y-n), k(x,y), k(x+m,y+n) ]

! Downsampling/Upsampling. ! Practical Interpolation. ! Non-integer Resampling. ! Multi-Rate Processing. " Interchanging Operations

Chapter 2: The Fourier Transform

Filter structures ELEC-E5410

Chapter 5 Frequency Domain Analysis of Systems

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science. Fall Solutions for Problem Set 2

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

Bridge between continuous time and discrete time signals

Multi-rate Signal Processing 3. The Polyphase Representation

Homework: 4.50 & 4.51 of the attachment Tutorial Problems: 7.41, 7.44, 7.47, Signals & Systems Sampling P1

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

Square Root Raised Cosine Filter

DESIGN OF CMOS ANALOG INTEGRATED CIRCUITS

Sensors. Chapter Signal Conditioning

Lecture 1 January 5, 2016

Proyecto final de carrera

The (Fast) Fourier Transform

The Frequency Domain, without tears. Many slides borrowed from Steve Seitz

Computer Vision Lecture 3

Representation of 1D Function

Discussion Section #2, 31 Jan 2014

Improved Interpolation

Lecture 04 Image Filtering

Convolution and Linear Systems

Transcription:

Sampling in 2D 1

Sampling in 1D Continuous time signal f(t) Discrete time signal t ( ) f [ k] = f( kt ) = f( t) δ t kt s k s f(t) comb k 2

Nyquist theorem (1D) At least 2 sample/period are needed to represent a periodic signal 1 2π Ts 2 ωmax 2π ωs = 2ω T s max 3

Delta pulse 4

Dirac brush 5

Comb 6

Brush 7

Sampling in p-dimensions Nyquist theorem 2D spatial domain T s x s f T T ( x) = δ ( x kt) p k Z ( x) = f ( x) s ( x) T T s y 2D Fourier domain Nyquist theorem ω y 1 T 2π ω ω ω ω s s x x 2 xmax 2 xmax s 2 1 y ωymax s Ty 2π 2ω y max ω ymax ω xmax ω x 8

Spatial aliasing 9

Resampling Change of the sampling rate Increase of sampling rate: Interpolation or upsampling Blurring, low visual resolution Decrease of sampling rate: Rate reduction or downsampling Aliasing and/or loss of spatial details 10

Downsampling 11

Upsampling nearest neighbor (NN) 12

Upsampling bilinear 13

Upsampling bicubic 14

Quantization 15

Scalar quantization A scalar quantizer Q approximates X by X =Q(X), which takes its values over a finite set. The quantization operation can be characterized by the MSE between the original and the quantized signals Suppose that X takes its values in [a, b], which may correspond to the whole real axis. We decompose [a, b] in K intervals {( y k-1, y k ]} 1 k K of variable length, with y 0= a and y K =b. A scalar quantizer approximates all x ( y k-1, y k ] by x k : ( ] ( ) x y,, 1 y Q x = x k k k 16

Scalar quantization The intervals (y k-1, y k ] are called quantization bins. Rounding off integers is an example where the quantization bins qui have size 1and x k =k for any k Z. (y k-1, y k ]=(k-1/2, k+1/2] High resolution quantization Let p(x) be the probability density of the random source X. The mean-square quantization error is 17

HRQ A quantizer is said to have a high resolution if p(x) is approximately constant on each quantization bin. This is the case if the sizes k are sufficiently small relative to the rate of variation of p(x), so that one can neglect these variations in each quantization bin. p(x) Δp(x) HRQ: Δp(x) 0 0 x Δ k 18

Scalar quantization Teorem 10.4 (Mallat): For a high-resolution quantizer, the mean-square error d is minimized when x k =(y k +y k+1 )/2, which yields d K 1 = pkδ 12 k = 1 2 k 19

Uniform quantizer 20

Quantization A/D conversion quantization f in L 2 (R) Quantizer discrete function f in L 2 (Z) X=Q{y} uniform f q =Q{f} perceptual r k y k y k+1 y f The sensitivity of the eye decreases increasing the background intensity (Weber law) 21

Quantization Signal before (blue) and after quantization (red) Q Equivalent noise: n=f q -f additive noise model: f q =f+n 22

Quantization original 5 levels 10 levels 50 levels 23

Distortion measure D = Ε Distortion measure K t k + 1 2 [( f Q f ) ] = ( f Q f ) k = 0 The distortion is measured as the expectation of the mean square error (MSE) difference between the original and quantized signals. Lack of correlation with perceived image quality Even though this is a very natural way for the quantification of the quantization artifacts, it is not representative of the visual annoyance due to the majority of common artifacts. Visual models are used to define perception-based image quality assessment metrics t k i 2 p( 1 j 1 f ) df 255 255 PSNR = 20log10 = 20log10 MSE N M 1 N M = = ( I [ i, j] I [ i, j] ) 1 2 2 24

Example The PSNR does not allow to distinguish among different types of distortions leading to the same RMS error between images The MSE between images (b) and (c) is the same, so it is the PSNR. However, the visual annoyance of the artifacts is different 25

Convolution 26

Convolution ct () = f () t g () t = f ( τ ) g( t τ) dτ cn [ ] = f [ n] g[ n] = f [ k ] g[ k n] + + k = 27

2D Convolution c( x, y) = f ( x, y) g( x, y) = f ( τ, ν) g( x τ, y ν) dτdν + + cik [, ] = f[ nmgi, ] [ nk, m] n= m= + + filter impulse response rotated by 180 deg Associativity Commutativity Distributivity [n,m] 28

+ + cik [, ] = f[ nmgi, ] [ nk, m] n= m= 2D Convolution f(n,m) g(n,m) m m n n 1. fold about origin 2. displace by i and k g(i-n,k-m) 3. compute integral of the box f(n,m) g(i-n,k-m) k i Tricky part: borders (zero padding, mirror...) 29

Filtering with filter h(x,y) Convolution sampling property of the delta function 30

Convolution Convolution is a neighborhood operation in which each output pixel is the weighted sum of neighboring input pixels. The matrix of weights is called the convolution kernel, also known as the filter. A convolution kernel is a correlation kernel that has been rotated 180 degrees. Recipe 1. Rotate the convolution kernel 180 degrees about its center element. 2. Slide the center element of the convolution kernel so that it lies on top of the (I,k) element of f. 3. Multiply each weight in the rotated convolution kernel by the pixel of f underneath. Sum the individual products from step 3 zero-padding is generally used at borders but other border conditions are possible 31

f = [17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 12 19 21 3 11 18 25 2 9] kernel h = [8 1 6 3 5 7 4 9 2] Example h = [2 9 4 7 5 3 6 1 8] 32

Correlation The operation called correlation is closely related to convolution. In correlation, the value of an output pixel is also computed as a weighted sum of neighboring pixels. The difference is that the matrix of weights, in this case called the correlation kernel, is not rotated during the computation. Recipe 1. Slide the center element of the correlation kernel so that lies on top of the (2,4) element of f. 2. Multiply each weight in the correlation kernel by the pixel of A underneath. 3. Sum the individual products from step 2. 33

f = [17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 12 19 21 3 11 18 25 2 9] kernel h = [8 1 6 3 5 7 4 9 2] Example 34