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

Similar documents
Digital Image Processing. Filtering in the Frequency Domain (Application)

Digital Image Processing

Frequency Domain Enhancement

TDI2131 Digital Image Processing

Transforms and Frequency Filtering

Midterm Review. Image Processing CSE 166 Lecture 10

Fourier Transforms and the Frequency Domain

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

CoE4TN4 Image Processing. Chapter 4 Filtering in the Frequency Domain

The Fourier Transform

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

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

Lecture 12: Image Processing and 2D Transforms

Lecture #10. EECS490: Digital Image Processing

8. Lecture. Image restoration: Fourier domain

Image Smoothening and Sharpening using Frequency Domain Filtering Technique

Digital Image Processing COSC 6380/4393

Smoothing frequency domain filters

Smoothing frequency domain filters

DIGITAL IMAGE PROCESSING UNIT III

Automatic processing to restore data of MODIS band 6

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

Understanding Digital Signal Processing

CS4495/6495 Introduction to Computer Vision. 2C-L3 Aliasing

G(f ) = g(t) dt. e i2πft. = cos(2πf t) + i sin(2πf t)

Image Enhancement using Histogram Equalization and Spatial Filtering

Digital Image Processing 3/e

The Discrete Fourier Transform. Claudia Feregrino-Uribe, Alicia Morales-Reyes Original material: Dr. René Cumplido

Topic 6. The Digital Fourier Transform. (Based, in part, on The Scientist and Engineer's Guide to Digital Signal Processing by Steven Smith)

2D Discrete Fourier Transform

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

Examples of image processing

Digital Image Processing

IMAGE PROCESSING (RRY025) THE CONTINUOUS 2D FOURIER TRANSFORM

Digital Image Processing COSC 6380/4393

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

DISCRETE FOURIER TRANSFORM AND FILTER DESIGN

Lecture - 10 Image Enhancement in the Frequency Domain

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad

Evoked Potentials (EPs)

LAB MANUAL SUBJECT: IMAGE PROCESSING BE (COMPUTER) SEM VII

EEL 6562 Image Processing and Computer Vision Image Restoration

Frequency Domain Representation of Signals

Digital Image Processing

Thinking in Frequency

Lecture 3 Complex Exponential Signals

Fourier analysis of images

Steganography & Steganalysis of Images. Mr C Rafferty Msc Comms Sys Theory 2005

Digital Signal Processing

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

Digital Image Processing. Frequency Domain Filtering

Prof. Feng Liu. Fall /04/2018

Reading Instructions Chapters for this lecture. Computer Assisted Image Analysis Lecture 2 Point Processing. Image Processing

Image Deblurring and Noise Reduction in Python TJHSST Senior Research Project Computer Systems Lab

COMPREHENSIVE EXAMINATION WEIGHTAGE 40%, MAX MARKS 40, TIME 3 HOURS, DATE Note : Answer all the questions

Digital Imaging Systems for Historical Documents

Wavelet Transform. From C. Valens article, A Really Friendly Guide to Wavelets, 1999

Chapter 4 SPEECH ENHANCEMENT

Signals and Systems Using MATLAB

System analysis and signal processing

Computer Vision, Lecture 3

ECE 484 Digital Image Processing Lec 10 - Image Restoration I

VU Signal and Image Processing. Torsten Möller + Hrvoje Bogunović + Raphael Sahann

Chapter 2 Image Enhancement in the Spatial Domain

Noise and Restoration of Images

Filtering in the spatial domain (Spatial Filtering)

SYLLABUS CHAPTER - 2 : INTENSITY TRANSFORMATIONS. Some Basic Intensity Transformation Functions, Histogram Processing.

Enhancement. Degradation model H and noise must be known/predicted first before restoration. Noise model Degradation Model

Notes on Fourier transforms

EE482: Digital Signal Processing Applications

Frequency Division Multiplexing Spring 2011 Lecture #14. Sinusoids and LTI Systems. Periodic Sequences. x[n] = x[n + N]

Introduction to Wavelet Transform. Chapter 7 Instructor: Hossein Pourghassem

Templates and Image Pyramids

Sampling and Reconstruction

Objectives. Abstract. This PRO Lesson will examine the Fast Fourier Transformation (FFT) as follows:

Templates and Image Pyramids

Digital Signal Processing

Signal segmentation and waveform characterization. Biosignal processing, S Autumn 2012

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

DIGITAL SIGNAL PROCESSING WITH VHDL

Sampling and reconstruction. CS 4620 Lecture 13

RESEARCH PROJECT TECHNICAL UNIVERSITY - SOFIA BACHELOR OF TELECOMUNICATIONS DEGREE FACULTY OF TELECOMMUNICATIONS

Assistant Lecturer Sama S. Samaan

ECEGR Lab #8: Introduction to Simulink

Image Enhancement. Image Enhancement

Digital Image Processing

ECE 484 Digital Image Processing Lec 09 - Image Resampling

Midterm Examination CS 534: Computational Photography

Filtering. Image Enhancement Spatial and Frequency Based

EE 215 Semester Project SPECTRAL ANALYSIS USING FOURIER TRANSFORM

Summary of Lecture 7

Preparing Remote Sensing Data for Natural Resources Mapping (image enhancement, rectifications )

Reference Manual SPECTRUM. Signal Processing for Experimental Chemistry Teaching and Research / University of Maryland

E Final Exam Solutions page 1/ gain / db Imaginary Part

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

Instruction Manual for Concept Simulators. Signals and Systems. M. J. Roberts

Digital Image Processing

USE OF FT IN IMAGE PROCESSING IMAGE PROCESSING (RRY025)

Digital Image Processing

The University of Texas at Austin Dept. of Electrical and Computer Engineering Midterm #2

Transcription:

Digital Image Processing Image Enhancement: Filtering in the Frequency Domain

2 Contents In this lecture we will look at image enhancement in the frequency domain Jean Baptiste Joseph Fourier The Fourier series & the Fourier transform Image Processing in the frequency domain Image smoothing Image sharpening Fast Fourier Transform

3 Jean Baptiste Joseph Fourier Fourier was born in Auxerre, France in 1768 Most famous for his work La Théorie Analitique de la Chaleur published in 1822 Translated into English in 1878: The Analytic Theory Heat Nobody paid much attention when the work was first published One the most important mathematical theories in modern engineering

4 The Big Idea = Any function that periodically repeats itself can be expressed as a sum sines and cosines different frequencies each multiplied by a different coefficient a Fourier series

Taken from www.tfh-berlin.de/~schwenk/hobby/fourier/welcome.html 5 The Big Idea (cont ) Notice how we get closer and closer to the original function as we add more and more frequencies

6 The Big Idea (cont ) Frequency domain signal processing example in Excel

7 The Discrete Fourier Transform (DFT) The Discrete Fourier Transform f(x, y), for x = 0, 1, 2 M-1 and y = 0,1,2 N-1, denoted by F(u, v), is given by the equation: F ( u, v) M 1 N 1 f ( x, y) e j 2 ( ux/ M vy / N ) x 0 y 0 for u = 0, 1, 2 M-1 and v = 0, 1, 2 N-1.

8 DFT & Images The DFT a two dimensional image can be visualised by showing the spectrum the images component frequencies DFT

9 DFT & Images

10 DFT & Images

11 DFT & Images (cont ) DFT Scanning electron microscope image an integrated circuit magnified ~2500 times Fourier spectrum the image

12 DFT & Images (cont )

13 DFT & Images (cont )

14 The Inverse DFT It is really important to note that the Fourier transform is completely reversible The inverse DFT is given by: f ( x, y) 1 MN M 1N 1 u 0 v 0 F ( u, v) e j2 ( ux/ M vy/ N ) for x = 0, 1, 2 M-1 and y = 0, 1, 2 N-1

15 The DFT and Image Processing To filter an image in the frequency domain: 1. Compute F(u,v) the DFT the image 2. Multiply F(u,v) by a filter function H(u,v) 3. Compute the inverse DFT the result

16 Some Basic Frequency Domain Filters Low Pass Filter High Pass Filter

17 Some Basic Frequency Domain Filters

18 Some Basic Frequency Domain Filters

19 Smoothing Frequency Domain Filters Smoothing is achieved in the frequency domain by dropping out the high frequency components The basic model for filtering is: G(u,v) = H(u,v)F(u,v) where F(u,v) is the Fourier transform the image being filtered and H(u,v) is the filter transform function Low pass filters only pass the low frequencies, drop the high ones

20 Ideal Low Pass Filter Simply cut f all high frequency components that are a specified distance D 0 from the origin the transform changing the distance changes the behaviour the filter

21 Ideal Low Pass Filter (cont ) The transfer function for the ideal low pass filter can be given as: H ( u, v) 1 0 if if D( u, v) D( u, v) D D 0 0 where D(u,v) is given as: D 2 ( u, v) [( u M / 2) ( v N / 2) 2 ] 1/ 2

22 Ideal Low Pass Filter (cont ) Above we show an image, it s Fourier spectrum and a series ideal low pass filters radius 5, 15, 30, 80 and 230 superimposed on top it

23 Ideal Low Pass Filter (cont )

24 Ideal Low Pass Filter (cont )

25 Ideal Low Pass Filter (cont ) Original image Result filtering with ideal low pass filter radius 5 Result filtering with ideal low pass filter radius 15 Result filtering with ideal low pass filter radius 30 Result filtering with ideal low pass filter radius 80 Result filtering with ideal low pass filter radius 230

26 Ideal Low Pass Filter (cont ) Result filtering with ideal low pass filter radius 5

27 Ideal Low Pass Filter (cont ) Result filtering with ideal low pass filter radius 15

28 Butterworth Lowpass Filters The transfer function a Butterworth lowpass filter order n with cutf frequency at distance D 0 from the origin is defined as: 1 H( u, v) 1 2n [ D ( u, v ) / D 0 ]

29 Butterworth Lowpass Filter (cont ) Original image Result filtering with Butterworth filter order 2 and cutf radius 5 Result filtering with Butterworth filter order 2 and cutf radius 15 Result filtering with Butterworth filter order 2 and cutf radius 30 Result filtering with Butterworth filter order 2 and cutf radius 80 Result filtering with Butterworth filter order 2 and cutf radius 230

30 Butterworth Lowpass Filter (cont ) Original image Result filtering with Butterworth filter order 2 and cutf radius 5

31 Butterworth Lowpass Filter (cont ) Result filtering with Butterworth filter order 2 and cutf radius 15

32 Gaussian Lowpass Filters The transfer function a Gaussian lowpass filter is defined as: H ( u, v) e D 2 ( u, v)/ 2D 2 0

33 Gaussian Lowpass Filters (cont ) Original image Result filtering with Gaussian filter with cutf radius 5 Result filtering with Gaussian filter with cutf radius 15 Result filtering with Gaussian filter with cutf radius 30 Result filtering with Gaussian filter with cutf radius 85 Result filtering with Gaussian filter with cutf radius 230

34 Lowpass Filters Compared Result filtering with ideal low pass filter radius 15 Result filtering with Butterworth filter order 2 and cutf radius 15 Result filtering with Gaussian filter with cutf radius 15

35 Lowpass Filtering Examples A low pass Gaussian filter is used to connect broken text

36 Lowpass Filtering Examples

37 Lowpass Filtering Examples (cont ) Different lowpass Gaussian filters used to remove blemishes in a photograph

38 Lowpass Filtering Examples (cont )

39 Lowpass Filtering Examples (cont ) Original image Gaussian lowpass filter Spectrum original image Processed image

40 Sharpening in the Frequency Domain Edges and fine detail in images are associated with high frequency components High pass filters only pass the high frequencies, drop the low ones High pass frequencies are precisely the reverse low pass filters, so: H hp (u, v) = 1 H lp (u, v)

41 Ideal High Pass Filters The ideal high pass filter is given as: 0 if D( u, v) D H ( u, v) 1 if D( u, v) D where D 0 is the cut f distance as before 0 0

42 Ideal High Pass Filters (cont ) Results ideal high pass filtering with D 0 = 15 Results ideal high pass filtering with D 0 = 30 Results ideal high pass filtering with D 0 = 80

43 Butterworth High Pass Filters The Butterworth high pass filter is given as: 1 1 [ D0 / D( u, v)] H( u, v) 2n where n is the order and D 0 is the cut f distance as before

44 Butterworth High Pass Filters (cont ) Results Butterworth high pass filtering order 2 with D 0 = 15 Results Butterworth high pass filtering order 2 with D 0 = 80 Results Butterworth high pass filtering order 2 with D 0 = 30

45 Gaussian High Pass Filters The Gaussian high pass filter is given as: H ( u, v) 1 e D 2 ( u, v)/ 2D 2 0 where D 0 is the cut f distance as before

46 Gaussian High Pass Filters (cont ) Results Gaussian high pass filtering with D 0 = 15 Results Gaussian high pass filtering with D 0 = 80 Results Gaussian high pass filtering with D 0 = 30

47 Highpass Filter Comparison Results ideal high pass filtering with D 0 = 15

48 Highpass Filter Comparison Results Butterworth high pass filtering order 2 with D 0 = 15

49 Highpass Filter Comparison Results Gaussian high pass filtering with D 0 = 15

50 Highpass Filter Comparison Results ideal high pass filtering with D 0 = 15 Results Butterworth high pass filtering order 2 with D 0 = 15 Results Gaussian high pass filtering with D 0 = 15

51 Highpass Filter Comparison Results ideal high pass filtering with D 0 = 15

52 Highpass Filter Comparison Results Butterworth high pass filtering order 2 with D 0 = 15

53 Highpass Filter Comparison Results Gaussian high pass filtering with D 0 = 15

High frequency emphasis result Original image Highpass Filtering Example Highpass filtering result After histogram equalisation

55 Highpass Filtering Example

56 Highpass Filtering Example

57 Highpass Filtering Example

58 Highpass Filtering Example

Inverse DFT Laplacian in the frequency domain Laplacian in the frequency domain 59 Laplacian In The Frequency Domain 2-D image Laplacian in the frequency domain Zoomed section the image on the left compared to spatial filter

60 Frequency Domain Laplacian Example Original image Laplacian filtered image Laplacian image scaled Enhanced image

61 Fast Fourier Transform The reason that Fourier based techniques have become so popular is the development the Fast Fourier Transform (FFT) algorithm Allows the Fourier transform to be carried out in a reasonable amount time Reduces the amount time required to perform a Fourier transform by a factor 100 600 times!

62 Frequency Domain Filtering & Spatial Domain Filtering Similar jobs can be done in the spatial and frequency domains Filtering in the spatial domain can be easier to understand Filtering in the frequency domain can be much faster especially for large images

63 Summary In this lecture we examined image enhancement in the frequency domain The Fourier series & the Fourier transform Image Processing in the frequency domain Image smoothing Image sharpening Fast Fourier Transform Next time we will begin to examine image restoration using the spatial and frequency based techniques we have been looking at

64 Imteresting Application Of Frequency Domain Filtering

65 Imteresting Application Of Frequency Domain Filtering

66 Questions?