G52IVG, School of Computer Science, University of Nottingham

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

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

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

ECG782: Multidimensional Digital Signal Processing

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

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

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

Frequency2: Sampling and Aliasing

Lecture # 06. Image Processing in Frequency Domain

ECG782: Multidimensional Digital Signal Processing

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

3. Lecture. Fourier Transformation Sampling

Key Intuition: invertibility

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

Introduction to Fourier Analysis Part 2. CS 510 Lecture #7 January 31, 2018

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

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

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

GBS765 Electron microscopy

F(u) = f e(t)cos2πutdt + = f e(t)cos2πutdt i f o(t)sin2πutdt = F e(u) + if o(u).

Fourier Matching. CS 510 Lecture #7 February 8 th, 2013

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

Image Processing 2. Hakan Bilen University of Edinburgh. Computer Graphics Fall 2017

Image Enhancement in the frequency domain. GZ Chapter 4

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

Reference Text: The evolution of Applied harmonics analysis by Elena Prestini

SEISMIC WAVE PROPAGATION. Lecture 2: Fourier Analysis

Image Acquisition and Sampling Theory

Fourier Series Example

Chapter 4: Filtering in the Frequency Domain. Fourier Analysis R. C. Gonzalez & R. E. Woods

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

Time and Spatial Series and Transforms

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

Quality Improves with More Rays

Images have structure at various scales

FILTERING IN THE FREQUENCY DOMAIN

IB Paper 6: Signal and Data Analysis

Digital Image Processing. Filtering in the Frequency Domain

Introduction to Fourier Analysis. CS 510 Lecture #5 February 2 nd 2015

Linear Operators and Fourier Transform

( ) ( ) numerically using the DFT. The DTFT is defined. [ ]e. [ ] = x n. [ ]e j 2π Fn and the DFT is defined by X k. [ ]e j 2π kn/n with N = 5.

Chapter 5 Frequency Domain Analysis of Systems

DISCRETE FOURIER TRANSFORM

EXAMINATION QUESTION PAPER

Overview. Signals as functions (1D, 2D) 1D Fourier Transform. 2D Fourier Transforms. Discrete Fourier Transform (DFT) Discrete Cosine Transform (DCT)

ESE 531: Digital Signal Processing

Chap 4. Sampling of Continuous-Time Signals

Introduction to Computer Vision. 2D Linear Systems

Discrete Fourier Transform

Review: Continuous Fourier Transform

Chapter 5 Frequency Domain Analysis of Systems

Module 3 : Sampling and Reconstruction Lecture 22 : Sampling and Reconstruction of Band-Limited Signals

Fourier Transform 2D

Digital Image Processing

X. Chen More on Sampling

Filtering in the Frequency Domain

Lecture Schedule: Week Date Lecture Title

Biomedical Engineering Image Formation II

6.003: Signals and Systems. Sampling and Quantization

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

2 The Fourier Transform

1-D MATH REVIEW CONTINUOUS 1-D FUNCTIONS. Kronecker delta function and its relatives. x 0 = 0

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

Representation of 1D Function

The Discrete Fourier Transform

2A1H Time-Frequency Analysis II

Filter Analysis and Design

ECE 425. Image Science and Engineering

EE123 Digital Signal Processing

Filtering in Frequency Domain

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

IMAGE ENHANCEMENT: FILTERING IN THE FREQUENCY DOMAIN. Francesca Pizzorni Ferrarese

EE 261 The Fourier Transform and its Applications Fall 2006 Midterm Exam Solutions

ESS Finite Impulse Response Filters and the Z-transform

Information and Communications Security: Encryption and Information Hiding

Sensors. Chapter Signal Conditioning

Fourier Transform Chapter 10 Sampling and Series

Chapter 4 Image Enhancement in the Frequency Domain

ESE 531: Digital Signal Processing

ECE 350 Signals and Systems Spring 2011 Final Exam - Solutions. Three 8 ½ x 11 sheets of notes, and a calculator are allowed during the exam.

Continuous-Time Fourier Transform

Discrete Fourier Transform

23.4. Convergence. Introduction. Prerequisites. Learning Outcomes

CITS 4402 Computer Vision

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

Grades will be determined by the correctness of your answers (explanations are not required).

Fourier Transform in Image Processing. CS/BIOEN 6640 U of Utah Guido Gerig (slides modified from Marcel Prastawa 2012)

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

Fourier Series. Fourier Transform

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

FOURIER ANALYSIS using Python

2A1H Time-Frequency Analysis II Bugs/queries to HT 2011 For hints and answers visit dwm/courses/2tf

Discrete-time Signals and Systems in

COMP344 Digital Image Processing Fall 2007 Final Examination

Principles of Communications

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

E2.5 Signals & Linear Systems. Tutorial Sheet 1 Introduction to Signals & Systems (Lectures 1 & 2)

The Laplace Transform

VII. Bandwidth Limited Time Series

Nyquist sampling a bandlimited function. Sampling: The connection from CT to DT. Impulse Train sampling. Interpolation: Signal Reconstruction

Transcription:

Image Transforms Fourier Transform Basic idea 1

Image Transforms Fourier transform theory Let f(x) be a continuous function of a real variable x. The Fourier transform of f(x) is F ( u) f ( x)exp[ j2πux] = dx Given F(u), f(x) can be obtained by using the inverse Fourier transform f ( x) F( u)exp[ j2πux] = du 2

Image Transforms Fourier transform theory The Fourier transform F(u) is general complex F ( u) = R( u) + ji( u) It is often convenient to write it in the form ( 2 2 R ( u) + I ( u) ) j ( u) F( u) = 2 exp 1 [ ] ( ) iφ ( u ) φ = F u e 3

Image Transforms Fourier transform theory Magnitude and Phase 1 2 2 ( u) = ( R ( u) I ( u) ) 2 F + φ 2 2 ( u) = ( R ( u) I ( u) ) P + ( u) = tan 1 I R ( u) ( ) u Fourier Spectrum of f(x) Power Spectrum (spectrum density function) of f(x) Phase angle 4

Image Transforms Fourier transform theory Frequency 1 2 2 ( u) = ( R ( u) I ( u) ) 2 F + φ ( u) = tan 1 I R ( u) ( ) u u is called the frequency variable Euler s formula exp [ j2πux] = cos 2πux j sin 2πux 5

Image Transforms Fourier transform theory Intuitive interpretation An infinite sum of sine and cosine terms, each u determines the frequency of its corresponding sine cosine pair F f ( u) f ( x)exp[ j2πux] = dx ( x) F( u)exp[ j2πux] = du 6

Image Transforms Fourier transform 7

Image Transforms Fourier transform When W become smaller, what will happen to the spectrum? 8

Image Transforms Discrete Fourier transform Continuous function f(x) is discretized into a sequence { f ( x ) f ( x + x), f ( x + 2 x),, f ( x + ( N 1) x) } 0, 0 0 L 0 by taking N samples x units apart 9

Image Transforms Discrete Fourier transform pair of the sampled function F N 1 1 ( u) f ( x + x x) for = N x= u = 0 0 0,1,2,..., exp N 1 f j2πux N 1 ( x) F( u) for N = u= 0 x j2πux exp N = 0,1,2,..., N 1 10

Image Transforms Fourier transform of unit impulse function 0 t 0 t 0 δ( t) = and δ( t) dt = 1 t = 0 11

Image Transforms Fourier transform of unit impulse function F[ δ ( x)] δ = jux e = 1 =0 jux = ( x) e dx δ(x) F x F(ju) 1 0 x 0 u 12

Image Transforms Fourier transform of unit impulse train Here t = x and ω = u 13

Convolution Convolution The convolution of two functions f(x) and g(x), denote f(x)*g(x) f ( x) g( x) = f ( a) g( x a) da 14

Convolution Convolution An example 15

Convolution Convolution and Spatial Filtering f(x,y) w(x,y) f(x,y)*w(x,y) 16

Convolution Convolution theorem f ( x) g( x) F( u) G( u) f ( x) g( x) F( u) G( u) 17

Sampling Sampling f(t) F(u) FT s(t) -w w S(u) t FT 1/ t 1/ t s(t)f(t) 1/ t S(u)*F(u) FT 18

Sampling Sampling 1/ t t FT -w w G(u) f(t) -w w G(u)[S(u)*F(u)]= F(u)] FT 19

Sampling Theorem Bandwidth, Sample Rate, and Nyquist Theorem 1/ t The sampling rate (Nyquist rate) must be at least two times the bandwidth of a bandlimited signal -w w G(u) t 2w -w w G(u)[S(u)*F(u)]= F(u)] 20

Aliasing Over- and under-sampling Anti-aliasing filtering 21

Aliasing Consider an image with 512 alternating vertical black and white stripes. (You may not even be able to see the alternating stripes because of poor screen resolution. But take my word for it, they are there.) Source: http://www.cs.unm.edu/~brayer/vision/perception.html 22

Aliasing The image is created by sampling an image with 512 alternating values of black (gray = 0) and white (gray = 255). Starting in row 0, 512 samples of the image are taken. For each successive row, 1 fewer sample is taken from row 0, (i.e. for row 1, take 511 samples, for row 2, take 510 samples,... for row 511, take 1 sample). The whole row is then reconstructed from the samples by pixel replication. The result is a colossal aliasing pattern. Source: http://www.cs.unm.edu/~brayer/vision/perception.html 23

More examples Aliasing 24

More examples Aliasing 25

More examples Aliasing 26

Image Transforms 2D Fourier Transform (Fourier Transform of Images) F ( u, v) f ( x, y)exp[ j2π ( ux + vy) ] = dxdy ( x, y) F( u, v)exp[ j2π ( ux + vy ] f = ) dudv 27

Image Transforms 2D Fourier Transform (Fourier Fourier Transform of Images) Spectrum 2 2 of f(x) 1 ( u, v) = ( R ( u, v) I ( u, v) ) 2 F + 2 2 ( u, v) = ( R ( u, v) I ( u, v) ) P + φ ( u, v) = tan 1 I R ( u, v) ( ) u, v Power Spectrum (spectrum density function) of f(x) Phase angle 28

29 Image Transforms 2D Discrete Fourier Transform (Fourier Transform of Digital Images) ( ) ( ) 1 0,1,2,..., 1 0,1,2,..., 2 exp, 1, 1 0 1 0 0 0 = = + + + = = = N v M u for N vy M ux j y y x x x x f MN v u F M x N y π ( ) ( ) 1 0,1,2,..., 1 0,1,2,..., 2 exp,, 1 0 1 0 = = + = = = N y M x for N vy M ux j v v u u F y x f M u N v π

Frequency Domain Processing What does frequency mean in an image? 30

Frequency Domain Processing What does frequency mean in an image? 31

Frequency Domain Processing What does frequency mean in an image? 32

Frequency Domain Processing What does frequency mean in an image? High frequency components fast changing/sharp features Low frequency components slow changing/smooth features 33

Frequency Domain Processing The foundation of frequency domain techniques is the convolution theorem f ( x, y) g( x, y) F( u, v) G( u, v) 34

Frequency Domain Processing H(u, v) is called the transfer function 35

Frequency Domain Processing Typical lowpass filters and their transfer functions 36

Frequency Domain Processing Typical lowpass filters and their transfer functions 37

Frequency Domain Processing Example 38

Frequency Domain Processing Example 39

Frequency Domain Processing Typical lowpass filters and their transfer functions 40

Frequency Domain Processing Example 41

Frequency Domain Processing Typical lowpass filters and their transfer functions 42

Frequency Domain Processing Example 43

Frequency Domain Processing Example 44

Frequency Domain Processing Example 45

Frequency Domain Processing Typical highpass filters and their transfer functions 46

Frequency Domain Processing Typical highpass filters and their transfer functions 47

Frequency Domain Processing Typical highpass filters and their transfer functions 48

Frequency Domain Processing Examples 49

Frequency Domain Processing Examples 50

Frequency Domain Processing Examples 51

Frequency Domain Processing More examples 52

Frequency Domain Processing Examples 53

Frequency Domain Processing Examples 54

Frequency Domain Processing Spatial vs frequency domain 55

Frequency Domain Processing Spatial vs frequency domain 56

Frequency Domain Processing Examples 57