IMAGE PROCESSING (RRY025) THE CONTINUOUS 2D FOURIER TRANSFORM

Similar documents
Transforms and Frequency Filtering

USE OF FT IN IMAGE PROCESSING IMAGE PROCESSING (RRY025)

Frequency Domain Enhancement

Continuous Space Fourier Transform (CSFT)

Fourier Transforms and the Frequency Domain

8. Lecture. Image restoration: Fourier domain

CoE4TN4 Image Processing. Chapter 4 Filtering in the Frequency Domain

Image preprocessing in spatial domain

1.Discuss the frequency domain techniques of image enhancement in detail.

Midterm Review. Image Processing CSE 166 Lecture 10

Table of contents. Vision industrielle 2002/2003. Local and semi-local smoothing. Linear noise filtering: example. Convolution: introduction

Image Enhancement. DD2423 Image Analysis and Computer Vision. Computational Vision and Active Perception School of Computer Science and Communication

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

Lecture #10. EECS490: Digital Image Processing

Lecture 12: Image Processing and 2D Transforms

Image Filtering. Median Filtering

Filip Malmberg 1TD396 fall 2018 Today s lecture

Exercise Problems: Information Theory and Coding

Fourier and Wavelets

Fourier Transform. Any signal can be expressed as a linear combination of a bunch of sine gratings of different frequency Amplitude Phase

CoE4TN4 Image Processing. Chapter 3: Intensity Transformation and Spatial Filtering

2.1 Partial Derivatives

Multiple Integrals. Advanced Calculus. Lecture 1 Dr. Lahcen Laayouni. Department of Mathematics and Statistics McGill University.

Computer Vision, Lecture 3

Fourier Transforms in Radio Astronomy

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

+ a(t) exp( 2πif t)dt (1.1) In order to go back to the independent variable t, we define the inverse transform as: + A(f) exp(2πif t)df (1.

Independent of path Green s Theorem Surface Integrals. MATH203 Calculus. Dr. Bandar Al-Mohsin. School of Mathematics, KSU 20/4/14

OPTICAL IMAGE FORMATION

[f(t)] 2 + [g(t)] 2 + [h(t)] 2 dt. [f(u)] 2 + [g(u)] 2 + [h(u)] 2 du. The Fundamental Theorem of Calculus implies that s(t) is differentiable and

Filters. Materials from Prof. Klaus Mueller

ELEC Dr Reji Mathew Electrical Engineering UNSW

11.2 LIMITS AND CONTINUITY

Exam 2 Summary. 1. The domain of a function is the set of all possible inputes of the function and the range is the set of all outputs.

Definitions and claims functions of several variables

33. Riemann Summation over Rectangular Regions

TDI2131 Digital Image Processing

Examples of image processing

DISCRETE FOURIER TRANSFORM AND FILTER DESIGN

Defocusing and Deblurring by Using with Fourier Transfer

Analysis and design of filters for differentiation

Digital Image Processing

Sampling and Reconstruction

Fourier Transform. louder softer. louder. softer. amplitude. time. amplitude. time. frequency. frequency. P. J. Grandinetti

Graphing Sine and Cosine

DIGITAL IMAGE PROCESSING UNIT III

Robert Collins CSE486, Penn State. Lecture 3: Linear Operators

2D Discrete Fourier Transform

Digital Image Processing COSC 6380/4393

The Scientist and Engineer's Guide to Digital Signal Processing By Steven W. Smith, Ph.D.

Image acquisition. Midterm Review. Digitization, line of image. Digitization, whole image. Geometric transformations. Interpolation 10/26/2016

Lecture 2: SIGNALS. 1 st semester By: Elham Sunbu

Image Sampling. Moire patterns. - Source: F. Durand

Bioimage Informatics

קורס גרפיקה ממוחשבת 2008 סמסטר ב' Image Processing 1 חלק מהשקפים מעובדים משקפים של פרדו דוראנד, טומס פנקהאוסר ודניאל כהן-אור

Sampling Theory. CS5625 Lecture Steve Marschner. Cornell CS5625 Spring 2016 Lecture 7

EEL 6562 Image Processing and Computer Vision Image Restoration

Double Integrals over More General Regions

Image Processing. What is an image? קורס גרפיקה ממוחשבת 2008 סמסטר ב' Converting to digital form. Sampling and Reconstruction.

DIGITAL IMAGE PROCESSING (COM-3371) Week 2 - January 14, 2002

The Fourier Transform

Fundamentals of Radio Interferometry. Robert Laing (ESO)

Computer Graphics (Fall 2011) Outline. CS 184 Guest Lecture: Sampling and Reconstruction Ravi Ramamoorthi

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

Automatic processing to restore data of MODIS band 6

Fourier analysis of images

Digital Image Processing

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

2.1 BASIC CONCEPTS Basic Operations on Signals Time Shifting. Figure 2.2 Time shifting of a signal. Time Reversal.

Basics of Digital Filtering

Aliasing and Antialiasing. What is Aliasing? What is Aliasing? What is Aliasing?

Fourier Transform Pairs

Final Exam Review Problems. P 1. Find the critical points of f(x, y) = x 2 y + 2y 2 8xy + 11 and classify them.

Digital Imaging Systems for Historical Documents

Functions of several variables

Stochastic Image Denoising using Minimum Mean Squared Error (Wiener) Filtering

Vibroseis Correlation An Example of Digital Signal Processing (L. Braile, Purdue University, SAGE; April, 2001; revised August, 2004, May, 2007)

Lecture 19. Vector fields. Dan Nichols MATH 233, Spring 2018 University of Massachusetts. April 10, 2018.

Digital Image Processing. Frequency Domain Filtering

FUNCTIONS OF SEVERAL VARIABLES AND PARTIAL DIFFERENTIATION

CHAPTER 11 PARTIAL DERIVATIVES

Chapter 2: Signal Representation

Matlab (see Homework 1: Intro to Matlab) Linear Filters (Reading: 7.1, ) Correlation. Convolution. Linear Filtering (warm-up slide) R ij

DEFOCUS BLUR PARAMETER ESTIMATION TECHNIQUE

Joint Distributions, Independence Class 7, Jeremy Orloff and Jonathan Bloom

Introduction to Wavelet Transform. Chapter 7 Instructor: Hossein Pourghassem

VECTOR CALCULUS Julian.O 2016

Practice problems from old exams for math 233

Chapter 2 Fourier Integral Representation of an Optical Image

INDEX TO SERIES OF TUTORIALS TO WAVELET TRANSFORM BY ROBI POLIKAR THE ENGINEER'S ULTIMATE GUIDE TO WAVELET ANALYSIS ROBI POLIKAR

TDI2131 Digital Image Processing

Basic Mapping Simon Garrington JBO/Manchester

Last Lecture. photomatix.com

Lecture notes on Waves/Spectra Noise, Correlations and.

Fundamentals of Radio Interferometry

PHYS 352. FFT Convolution. More Advanced Digital Signal Processing Techniques

Lecture 4 : Monday April 6th

Notes on Fourier transforms

Image. Image processing. Resolution. Intensity histogram. pixel size random uniform pixel distance random uniform

Practical Image and Video Processing Using MATLAB

Transcription:

IMAGE PROCESSING (RRY5) THE CONTINUOUS D FOURIER TRANSFORM

INTRODUCTION A vital tool in image processing. Also a prototype of other image transforms, cosine, Wavelet etc. Applications Image Filtering - Smooth or sharpen images. Image Restoration - Remove distortions, such as blurring, image motion Image Classification - Distinguish different types of images Image Compression - Can be used but much better transforms available.

-D CONTINUOUS FOURIER TRANSFORMS Definition F(ν) = f(t)exp(πiνt)dt f(t) = F(ν)exp(+πiνt)dν Note forward and inverse transforms not the same, sign difference in integral. Other Definitions F(ω) = f(t)exp( iωt)dt or f(t) = π F(ω)exp(+iωt)dω F(ω) = π f(t)exp( iωt)dt f(t) = π F(ω)exp(+iωt)dω 3

FT has real and imaginary parts F(ν) = f(t)exp(πνit)dt Real[F(ν)] = f(t)cos(πνt)dt Imag[F(ν)] = f(t)sin(πνt)dt If f(t) is even (f(t) = f( t)) the imaginary part of transform Imag[F(ν)] = because sin(πνt) is an odd (antisymmetric) function. Likewise if f(t) is antisymmetric so (f(t) = f( t)) the real part of the transform Real[F(ν)] = because cos(πνt) is an even (symmetric) function. Define Fourier amplitude = Real[F(ν)] + Imag[F(ν)] and define Fourier Phase = tan (Imag[F(ν)]/Real[F(ν)]) 4

-D CONTINUOUS FOURIER TRANSFORMS F(u, v) = f(x, y)exp(πi(ux + vy))dxdy f(x, y) = F(u, v)exp(+πi(ux + vy))dudv where u,v are spatial frequencies. If the image has linear dimensions, e.g. centimetres. the u,v are in units of cycles/cm If image has angular dimensions (e.g degrees) then u,v are in cycles/degree. 5

From the definition to calculate D FT component at particular u,v multiply image f(x,y) by the complex kernel function exp(πi(ux + vy)) and integrate. the kernel has constant value on lines in the the u,v domain such that ux + vy = constant. The Kernel function is therefore like a corrugated roof with an orientation which depends on u,v and a wavelength / u + v. 6

D Fourier Transform has a separable kernel exp(πi(ux + vy)) = exp(πiux)exp(πivy) Therefore F(u, v) = f(x, y)exp(πi(ux + vy))dxdy = [ f(x, y)exp(πiux)dx ] exp(πivy)dy This property means we can do the FT of any object in two stages. First do a D transform of each row. f(x, y) f (u, y) Then do a D transform of all the columns of f (u, y) so. f (u, y) g(u, v) 7

Some input images are also separable into functions of x and y i.e. f(x, y) = f x (x)f y (y) In this special case only. F(u, v) = [ f x(x)exp(πiux)dx ] [ f y(y)exp(πivy)dy ] i.e. the FT is the product of the D FTs of f x (x) and f y (y) respectively. 8

FOURIER TRANSFORM PROPERTIES If f(x, y) is real (as images always are) then F(u, v) is Hermitian i.e. F( u, v) = F (u, v) where indicates complex conjugate If f(x, y) is also symmetric (i.e. f( x, y) = f(x, y) ) then F(u, v) is entirely real, i,e, the phase of F(u,v) is either or 8. 9

FOURIER TRANSFORMS PROPERTIES(cont) Inner Product f(x, y)g (x, y)dxdy = F(u, v)g (u, v)dudv if f(x, y) = g(x, y) and F(u, v) = G(u, v) then we obtain Parsevals thereoem. Scaling FT[f(ax, by)] = F(u/a, v/b) ab Shifting FT[f(x x o, y y o )] = F(u, v)exp(πi(ux o + vy o ))

D Delta Function Definition The delta function situated at x = x o, y = y o, called δ(x x o, y y o ) is defined in the limit as dx, dy go to zero below Function Value height = / (dx dy) xo x yo dx dy y δ (x-xo, y- yo) Is above function as dx and dy go to zero it therefore has value infinity at x=xo,y=yo and value zero elsewhere. The area under the function is. Figure :

SOME IMPORTANT D FOURIER TRANSFORMS Delta Function FT(δ(x x o, y y o ) = exp(πi(ux o + vy o )) Delta function at x=,y=.5 5 y 5 5 x 5 Real Part of FT Imaginary Part of FT 5 v 5 5 u 5 5 v 5 5 u 5 Figure :

Two Delta Functions FT(.5δ(x x o, y y o )+.5δ(x+x o, y+y o )) = cos(π(ux o +vy o )) Two Delta functions at x=+/,y=.5 5 y 5 5 x 5 Real Part of FT Imaginary Part of FT 5 v 5 5 u 5 5 v 5 5 u 5 Figure 3: 3

Sampling Function Defined as III x, y (x, y) = m= n= m= n= δ(x m x, y n y) FT(III x, y (x, y)) = III u, u (u, v) where u = / x and v = / y Sampling Function (Infinite Delta grid sep=).5.5 y x Real Part of FT (Infinite Delta grid Sep =) Img Part of FT.5.5 v u v u Figure 4: 4

Gaussian FT(exp( π(x + y )) = exp( π(u + v )) Gaussian Function.5 y x Real Part of FT Imaginary Part of FT.5 v u v u Figure 5: 5

Circular Top Hat Consider a function of x,y which is inside r = (x + y ) and outside. Its FT is circulary symmetric and depends oly on the radius in the u,v plane r u,v = (u + v ). The FT is related to a Bessel function of the first kind divided by r u,v. Circular Top Hat Function.5 5 y 5 5 x 5 Real Part of FT Imaginary Part of FT 4 5 v 5 5 u 5 5 v 5 5 u 5 Figure 6: 6

CONVOLUTION DEFINITION If g(x, y) = h(x, y) f(x, y) where indicates convolution then mathematically g(x, y) = h(x, y )f(x x, y y )dx dy = h(x x, y y )f(x, y )dx dy 7

VISUALIZING D CONVOLUTION y y x x f(x,y ) two delta functions h(x,y ) inside triangle, outside f(x,y )h(x x,y y ) y f(x,y )h(x x,y y ) y y x x y x x For this value of x,y shift of rotated second function, result of multiplication of two functions and integration is For this value of x,y shift of rotated second function, result of multiplicatio of two functions and integration is Figure 7: 8

y VISUALIZING D CONVOLUTION(cont) y x * x f(x,y ) two delta functions h(x,y ) inside triangle, outside g(x,y) y = x Do the operation on the previous sheet for every possible x,y and then build up point by point the g(x,y) function. Effect of convolution with delta functions is to make a copy of the triangle function centred on each of the deltas. Note in output triangles not rotated Figure 8: 9

CONVOLUTION THEOREM The convolution theorem will be used many times. If g,h and f functions are related by a convolution (see above) then their fourier transforms G(u, v), F(u, v) and H(u, v) are related, viz if Then g(x, y) = h(x, y) f(x, y) G(u, v) = H(u, v) F(u, v) It also follows that if in the spatial domain then in the Fourier domain g(x, y) = h(x, y) f(x, y) G(u, v) = H(u, v) F(u, v)

CORRELATION Exactly like convolution but with NO 8 degree rotation of second function, before shift multiplication and summation. DEFINITION If g(x, y) = h(x, y) f(x, y) where indicates cross-correlation then mathematically g(x, y) = h(x, y )f(x x, y y)dx dy unlike convolution the order matters, g(x, y) = f(x, y) h(x, y) is not the same output function where g(x, y) = f(x, y )h(x x, y y)dx dy In previous lecture have seen how correlation with various filters can be used to smooth, sharpen and find gradients of images. Can also be used to recognise objects in an image. Note get Autocorrelation if wto imput images are teh same.

CORRELATION THEOREM Similar to convolution if we Fourier transform an image which is the correlation of two input images, there is a simple relationship between this FT and the FT of the two original images. If g(x, y) = h(x, y) f(x, y) and we take the FT then G(u, v) = H(u, v) F (u, v) where the star indicates complex conjugate. In the case of autocorrelation, f =h amd F=H hence the FT of the autocorrelation of h(x,y) is everywhere real and positive and is called the power spectrum of h(x,y).