ECG782: Multidimensional Digital Signal Processing

Similar documents
ECG782: Multidimensional Digital Signal Processing

G52IVG, School of Computer Science, University of Nottingham

Lecture 4 Filtering in the Frequency Domain. Lin ZHANG, PhD School of Software Engineering Tongji University Spring 2016

FILTERING IN THE FREQUENCY DOMAIN

Linear Operators and Fourier Transform

Fourier series: Any periodic signals can be viewed as weighted sum. different frequencies. view frequency as an

Discrete Fourier Transform

Multiresolution schemes

ENSC327 Communications Systems 2: Fourier Representations. Jie Liang School of Engineering Science Simon Fraser University

Frequency2: Sampling and Aliasing

3. Lecture. Fourier Transformation Sampling

EE482: Digital Signal Processing Applications

Multiresolution schemes

DISCRETE FOURIER TRANSFORM

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

Digital Image Processing

Wavelets and Multiresolution Processing

EE482: Digital Signal Processing Applications

Empirical Mean and Variance!

SEISMIC WAVE PROPAGATION. Lecture 2: Fourier Analysis

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

Fourier transform. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year

2. the basis functions have different symmetries. 1 k = 0. x( t) 1 t 0 x(t) 0 t 1

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

EE482: Digital Signal Processing Applications

Sparse linear models

Review of Linear System Theory

Introduction to Mathematical Programming

CS 4495 Computer Vision. Frequency and Fourier Transforms. Aaron Bobick School of Interactive Computing. Frequency and Fourier Transform

Lecture # 06. Image Processing in Frequency Domain

Multiscale Image Transforms

ECE472/572 - Lecture 13. Roadmap. Questions. Wavelets and Multiresolution Processing 11/15/11

MIT 2.71/2.710 Optics 10/31/05 wk9-a-1. The spatial frequency domain

Introduction to Wavelet. Based on A. Mukherjee s lecture notes

PART 1. Review of DSP. f (t)e iωt dt. F(ω) = f (t) = 1 2π. F(ω)e iωt dω. f (t) F (ω) The Fourier Transform. Fourier Transform.

Wavelet Transform. Figure 1: Non stationary signal f(t) = sin(100 t 2 ).

The Fourier Transform (and more )

Image Processing 1 (IP1) Bildverarbeitung 1

Additional Pointers. Introduction to Computer Vision. Convolution. Area operations: Linear filtering

Fourier Transform. sin(n# x)), where! = 2" / L and

EE482: Digital Signal Processing Applications

ECE Digital Image Processing and Introduction to Computer Vision. Outline

Chapter 8 The Discrete Fourier Transform

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

Wavelets: Theory and Applications. Somdatt Sharma

2D Discrete Fourier Transform (DFT)

Representation of 1D Function

Computer Vision & Digital Image Processing. Periodicity of the Fourier transform

EE482: Digital Signal Processing Applications

EA2.3 - Electronics 2 1

COMP344 Digital Image Processing Fall 2007 Final Examination

Syllabus for IMGS-616 Fourier Methods in Imaging (RIT #11857) Week 1: 8/26, 8/28 Week 2: 9/2, 9/4

2. Image Transforms. f (x)exp[ 2 jπ ux]dx (1) F(u)exp[2 jπ ux]du (2)

Multidimensional digital signal processing

Lecture Notes 5: Multiresolution Analysis

Spatial-Domain Convolution Filters

Information and Communications Security: Encryption and Information Hiding

Digital Image Processing. Filtering in the Frequency Domain

Digital Image Processing

Review: Continuous Fourier Transform

Introduction to Computer Vision. 2D Linear Systems

Digital Speech Processing Lecture 10. Short-Time Fourier Analysis Methods - Filter Bank Design

The Discrete Fourier Transform (DFT) Properties of the DFT DFT-Specic Properties Power spectrum estimate. Alex Sheremet.

Filtering in the Frequency Domain

Fourier Transform 2D

Module 4. Multi-Resolution Analysis. Version 2 ECE IIT, Kharagpur

Digital Image Processing. Image Enhancement: Filtering in the Frequency Domain

Conformal maps. Lent 2019 COMPLEX METHODS G. Taylor. A star means optional and not necessarily harder.

The Discrete-time Fourier Transform

Assignment for next week

LINEAR RESPONSE THEORY

ENSC327 Communications Systems 2: Fourier Representations. School of Engineering Science Simon Fraser University

Filter Banks II. Prof. Dr.-Ing. G. Schuller. Fraunhofer IDMT & Ilmenau University of Technology Ilmenau, Germany

Wavelets and applications

Elec4621 Advanced Digital Signal Processing Chapter 11: Time-Frequency Analysis

Theory and Problems of Signals and Systems

encoding without prediction) (Server) Quantization: Initial Data 0, 1, 2, Quantized Data 0, 1, 2, 3, 4, 8, 16, 32, 64, 128, 256

Fundamentals of the Discrete Fourier Transform

Fourier analysis of discrete-time signals. (Lathi Chapt. 10 and these slides)

The Discrete Fourier Transform

Image Enhancement in the frequency domain. GZ Chapter 4

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

GATE EE Topic wise Questions SIGNALS & SYSTEMS

1 Introduction to Wavelet Analysis

Review of Linear Systems Theory

Bridge between continuous time and discrete time signals

Subband Coding and Wavelets. National Chiao Tung University Chun-Jen Tsai 12/04/2014

EDISP (NWL2) (English) Digital Signal Processing Transform, FT, DFT. March 11, 2015

Advanced Training Course on FPGA Design and VHDL for Hardware Simulation and Synthesis. 26 October - 20 November, 2009

INTRODUCTION TO. Adapted from CS474/674 Prof. George Bebis Department of Computer Science & Engineering University of Nevada (UNR)

Fast Fourier Transform

Filtering in the Frequency Domain

Introduction to the Fourier transform. Computer Vision & Digital Image Processing. The Fourier transform (continued) The Fourier transform (continued)

Lecture 3: Linear Filters

Scientific Computing: An Introductory Survey

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

Basics about Fourier analysis

Continuous-Time Fourier Transform

Nov : Lecture 18: The Fourier Transform and its Interpretations

The Continuous-time Fourier

Transcription:

Professor Brendan Morris, SEB 3216, brendan.morris@unlv.edu ECG782: Multidimensional Digital Signal Processing Spring 2014 TTh 14:30-15:45 CBC C313 Lecture 05 Image Processing Basics 13/02/04 http://www.ee.unlv.edu/~b1morris/ecg782/

2 Outline Linear Systems 1D Fourier Review 2D Fourier Transform Discrete Cosine Transform Wavelet Transform

3 Linearity Image processing as a system x L y Linearity defined on vector (linear) spaces Superposition principle: Additivity Homogeneity L ax 1 + bx 2 = al x 1 + bl(x 2 ) Very important property for linear image processing Can make use of 1D signal processing ideas

4 Dirac Delta Distribution Dirac delta - δ x, y Impulse - δ x, y = 0 x, y 0 δ x, y dxdy = 1 Sifting property Use of δ x, y to obtain value of function Delta sampling f x, y δ(x λ, y μ)dxdy = f(λ, μ) f a, b δ(a x, b y)dadb = f(x, y)

5 Convolution In image processing, this is an overlap operation 1D convolution f h t = f τ h t τ dτ = h τ f t τ dτ Limits restricted to finite support (similar to image range) Properties f h = h f f g h = f g h f g + h = f g + f h a f g = af g = f (ag) d dx df dh f h = h = f dx dx 2D convolution f h x, y = f a, b h(x a, y b)dadb = = h f x, y h a, b f(x a, y b)dadb Discrete 2D convolution Linear preprocessing step Output pixel is a linear combination of neighborhood pixels g i, j = m,n O h i m, j n f(m, n) O neighborhood (typically rectangular with odd number or rows and columns h - kernel or convolution mask

6 Images as Linear Systems Image viewed as superposition of deltas f(x, y) L g(x, y) g x, y = f a, b L{δ a x, b y }dadb g x, y = f a, b h a x, b y dadb g x, y = (f h)(x, y) Fourier transform relationship G u, v = F u, v H(u, v) Useful for frequency domain smoothing and sharpening

7 Intro Linear Integral Transforms Represent signals (images) in a more suitable domain Information is better visible Solution to related (dual) problem is easier Most often interested in the frequency domain What a one-to-one mapping between spatial (image coordinates) and frequency Inverse transform must exist Popular transforms include: Fourier, Cosine, Wavelet Most often used for filtering Image-to-image mapping

8 1D Fourier Transform F f t = F ξ = f t e 2πiξt dt Inverse transform F 1 F ξ = f t = F ξ e 2πiξt dξ This always exists for digital signals (of finite length, e.g. images) Notice the FT is a linear combination of complex exponentials Linear combination of sines and cosines e jθ = cos θ + j sin θ F(ξ) indicates the contribution of sinusoid with frequency ξ

9 1D Fourier Transform Representation In general, FT is complex valued Can express in polar form F ξ = F ξ e iφ(ξ) Magnitude spectrum F ξ = Re 2 (F) + Im 2 (F) 1/2 Phase spectrum (angle) φ ξ = tan 1 Im F Re F Power spectrum P ξ = F ξ 2 = Re 2 (F) + Im 2 (F)

10 Fourier Transform Properties DC value (offset) F 0 = f t dt Area under f(t) Average value FT offset f 0 = F ξ dξ Parseval s Theorem f t 2 dt= F ξ 2 dξ Energy in time domain is equal to energy in frequency domain Uncertainty principle Wide in time narrow in frequency Narrow in time wide in frequency

11 Short Time Fourier Transform Non-stationary signal processing technique Signal distribution changes in time Divide signal into smaller pieces and do computations in windows Typically, smooth windows are selected to reduce border effects This gives a sense of global properties but also a time when they happen (which window) Global mean, variance, frequency content Timing which window

12 Discrete Fourier Transform Assume discrete signal obtained by sampling f n, n = 0 N 1 DFT F k f n exp ( 2πi nk N 1 n=0 = 1 N N 1 k=0 f n = F k exp (2πi nk N ) N ) Since DFT is discrete, it is periodic k represents a discrete frequency Fast Fourier transform (FFT) Fast implementation of DFT (O(n log n)) Basic DFT is O n 2 Makes frequency domain processing possible

13 2D Fourier Transform Generalization of 1D FT F u, v = f x, y e 2πi xu+yv dxdy f x, y = F u, v e2πi xu+yv dudv For images (u, v) are called spatial frequencies FT indicates how to combine 2D spatial sinusoids Properties: Linearity F af 1 x, y + bf 2 x, y = af 1 u, v + bf 2 u, v Time (spatial) shift F f x a, y b = 2πi au+bv F u, v e Frequency shift F f x, y e 2πi u 0x+v 0 y = F u u 0, v v 0 Real f(x, y) F u, v = F (u, v) Only need first quadrant for images (u 0, v 0) Convolution duality F f h x, y = F u, v H u, v F f x, y h x, y = (F H)(u, v)

14 Discrete 2D Fourier Transform F u, v = 1 MN M 1 m=0 N 1 n=0 f m, n exp 2πi u = 0,1, M 1, v = 0,1,, N 1 M 1 u=0 N 1 v=0 f x, y = F u, v exp 2πi mu M mu M + nv N + nv N m = 0,1, M 1, n = 0,1,, N 1 Efficient implementation with 1D FFT Compute FFT of each row m Compute FFT of each column n (of FFT coefficients) Notice this is a period function Periodic in two directions v direction: period N, Δu = 1/MΔx u direction: period M, Δv = 1/NΔy

15 2D Fourier Transform Example Input image Assumed periodicity for harmonic frequencies (discrete) Remember that origin is typically in the top right Low frequency components are in the corners of FT image

More Fourier Transform Examples 16

17 More Fourier Transform Examples Importance of magnitude and phase Higher values for edges and changing textures Notice the 45 degree line

18 Sampling Sample the continuous image function Sampling function M N s x, y = δ(x jδx, y kδy) j=1 k=1 Δx, Δy sampling intervals Sampling signal f s x, y = f x, y s x, y = f(x, y) δ(x jδx, y kδy) M j=1 N k=1 Taking FT of both sides F s u, v = 1 ΔxΔy m= n= Repeated copies of F(u, v) (DTFT) F(u m Δx, v n Δy )

19 Shannon s Sampling Theorem Periodic copies of spectrum can result in image distortion (aliasing) Occurs when copies overlap Caused by undersampling Shannon s sampling theorem Δx < 1, Δy < 1 2U 2V U, V max frequencies in image Sampling interval should be less than half the smallest image detail In reality, sampling grid is used f s x, y = f x, y h s (x jδx, y kδy) M j=1 N k=1 F s u, v = 1 ΔxΔy F u m, v n m m= n= H Δx Δy s Δx, n Δy

20 Discrete Cosine Transform Similar to DFT but not complex Double length DFT with even functions Four basic DCT types depending on type of periodic extension applied at boundaries DCT-I, -II, -III, -IV Image processing uses DCT-II (compression, object detection/recognition) Even extension at both left and right boundaries Mirroring results in smooth period function which requires less coefficients for approximation

21 2D DCT F u, v = 2c u c v N N 1 m=0 N 1 n=0 f m, n cos 2m+1 2N u 0,1, N 1, v = 0,1, N 1 c k = 1/ 2 k = 0 1 else uπ cos 2n+1 2N For highly correlated images, is able to compact energy into fewer coefficients Useful for compression (image, video) Used in JPEG, MPEG-4 Similar to DFT Can use FFT type calculations for speed DC is zeroth component vπ

22 2D DCT Example Comparison with DFT DCT basis Subwindow size

23 Wavelet Transform Decompose signals as linear combination of another set of basis functions (not sinusoid) Can be more complex basis Mother wavelets Multiscale analysis Provide localization in space Search for particular pattern a different scales Wavelets are better designed for digital images Less coefficients required than for sinusoidal Think about how many coefficients are required for a single on pixel (delta)

24 1D Continuous Wavelet Transform c s, τ = f t Ψ s,τ t dt R s R + {0} indicates scale τ R indicates a time shift Wavelets at scale and shift generated from a mother wavelet Ψ s,τ t = 1 s Ψ t τ s Wavelet functions must have two properties Admissibility must have bandpass spectrum Use oscillatory functions Regularity must have smoothness and concentration in time/frequency domains Fast decrease with decreasing scale

25 Haar Wavelet Mother function (basis) Ψ ji x = 2 j 2Ψ(2 j x i) Ψ x = 1 0 x < 1 2 1 1 2 x < 1 0 else Scaling ( Father ) function (multi-resolution/scale) Φ ji x = 2 j 2Φ(2 j x i) Φ x = 1 0 x < 1 0 else Scaled and translated box functions

26 Discrete Wavelet Transform Computationally efficient implementation Herringbone algorithm exploits relationship between coefficients at various scales 1D case: At each level produce approximation coefficients and details Approximation from lowpass Detail from highpass Use downsample to change scale Better approximation with more coefficients (more levels/scale)

27 2D Wavelet Transform Similar idea and extension from 1D to 2D 2D case 4 decomposition types Approximation 3 detail horizontal, vertical, and diagonal

28 2D Wavelet Transform Example Fig 7.22 pg 388 GW, 7.23 Fig 3.21,3.22 pg 71

29 2D Wavelet Transform Example Fig 7.22 pg 388 GW, 7.23 Fig 3.21,3.22 pg 71

2D Wavelet Transform Example 30