Image Enhancement in the Frequency Domain

Similar documents
Lectures 6&7: Image Enhancement

Linear Filtering Part II

SIGNAL PROCESSING & SIMULATION NEWSLETTER

Aliasing, Image Sampling and Reconstruction

Admin stuff. 4 Image Pyramids. Spatial Domain. Projects. Fourier domain 2/26/2008. Fourier as a change of basis

Lecture 14. Point Spread Function (PSF)

The continuous and discrete Fourier transforms

Convolution, Correlation, & Fourier Transforms. James R. Graham 10/25/2005

ANALYZER BASICS WHAT IS AN FFT SPECTRUM ANALYZER? 2-1

Design of FIR Filters

Correlation and Convolution Class Notes for CMSC 426, Fall 2005 David Jacobs

Introduction to Digital Filters

Computational Foundations of Cognitive Science

Sampling Theorem Notes. Recall: That a time sampled signal is like taking a snap shot or picture of signal periodically.

Digital Image Processing

Analysis/resynthesis with the short time Fourier transform

8 Filtering. 8.1 Mathematical operation

Convolution. 1D Formula: 2D Formula: Example on the web:

How to Design 10 khz filter. (Using Butterworth filter design) Application notes. By Vadim Kim

The Fourier Analysis Tool in Microsoft Excel

Sharpening through spatial filtering

Short-time FFT, Multi-taper analysis & Filtering in SPM12

FAST Fourier Transform (FFT) and Digital Filtering Using LabVIEW

FFT Algorithms. Chapter 6. Contents 6.1

The Calculation of G rms

Time series analysis Matlab tutorial. Joachim Gross

The Application of Fourier Analysis to Forecasting the Inbound Call Time Series of a Call Centre

Chapter 8 - Power Density Spectrum

jorge s. marques image processing

DIGITAL IMAGE PROCESSING AND ANALYSIS

Lecture 9. Poles, Zeros & Filters (Lathi 4.10) Effects of Poles & Zeros on Frequency Response (1) Effects of Poles & Zeros on Frequency Response (3)

Bildverarbeitung und Mustererkennung Image Processing and Pattern Recognition

Analog Filters. A common instrumentation filter application is the attenuation of high frequencies to avoid frequency aliasing in the sampled data.

SOFTWARE FOR GENERATION OF SPECTRUM COMPATIBLE TIME HISTORY

Simultaneous Gamma Correction and Registration in the Frequency Domain

An Iterative Image Registration Technique with an Application to Stereo Vision

Chapter 4 Image Enhancement in the Frequency Domain. Chapter 4 Image Enhancement in the Frequency Domain

How To Understand The Nyquist Sampling Theorem

SWISS ARMY KNIFE INDICATOR John F. Ehlers

Applications of the DFT

PRACTICAL GUIDE TO DATA SMOOTHING AND FILTERING

Convolution. The Delta Function and Impulse Response

Acoustic Processor of the MCM Sonar

Em bedded DSP : I ntroduction to Digital Filters

A Novel Method to Improve Resolution of Satellite Images Using DWT and Interpolation

SIGNAL PROCESSING FOR EFFECTIVE VIBRATION ANALYSIS

Final Year Project Progress Report. Frequency-Domain Adaptive Filtering. Myles Friel. Supervisor: Dr.Edward Jones

Software for strong-motion data display and processing

chapter Introduction to Digital Signal Processing and Digital Filtering 1.1 Introduction 1.2 Historical Perspective

Edge detection. (Trucco, Chapt 4 AND Jain et al., Chapt 5) -Edges are significant local changes of intensity in an image.

1.1 Discrete-Time Fourier Transform

Introduction to IQ-demodulation of RF-data

5 Signal Design for Bandlimited Channels

Introduction to Medical Imaging. Lecture 11: Cone-Beam CT Theory. Introduction. Available cone-beam reconstruction methods: Our discussion:

Enhancement of scanned documents in Besov spaces using wavelet domain representations

L9: Cepstral analysis

CHAPTER 6 Frequency Response, Bode Plots, and Resonance

Analog and Digital Filters Anthony Garvert November 13, 2015

Sachin Patel HOD I.T Department PCST, Indore, India. Parth Bhatt I.T Department, PCST, Indore, India. Ankit Shah CSE Department, KITE, Jaipur, India

Computing Fourier Series and Power Spectrum with MATLAB

9 Fourier Transform Properties

Robert Collins CSE598G. More on Mean-shift. R.Collins, CSE, PSU CSE598G Spring 2006

SECTION 6 DIGITAL FILTERS

Digital Imaging and Multimedia. Filters. Ahmed Elgammal Dept. of Computer Science Rutgers University

Introduction to Complex Fourier Series

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

Implementation of Digital Signal Processing: Some Background on GFSK Modulation

PRE-CALCULUS GRADE 12

EECS 556 Image Processing W 09. Interpolation. Interpolation techniques B splines

Active Vibration Isolation of an Unbalanced Machine Spindle

Lecture 8 ELE 301: Signals and Systems

Frequency Response of FIR Filters

A Secure File Transfer based on Discrete Wavelet Transformation and Audio Watermarking Techniques

Signal to Noise Instrumental Excel Assignment

Noise Reduction in Video Images Using Coring on QMF Pyramids by. Arthur J. Kalb

High Quality Integrated Data Reconstruction for Medical Applications

NAPIER University School of Engineering. Electronic Systems Module : SE32102 Analogue Filters Design And Simulation. 4 th order Butterworth response

Filter Comparison. Match #1: Analog vs. Digital Filters

Biggar High School Mathematics Department. National 5 Learning Intentions & Success Criteria: Assessing My Progress

Finding Equations of Sinusoidal Functions From Real-World Data

1995 Mixed-Signal Products SLAA013

PYKC Jan Lecture 1 Slide 1

Agilent Time Domain Analysis Using a Network Analyzer

Analog signals are those which are naturally occurring. Any analog signal can be converted to a digital signal.

Probability and Random Variables. Generation of random variables (r.v.)

3.1. RATIONAL EXPRESSIONS

The Algorithms of Speech Recognition, Programming and Simulating in MATLAB

A Coefficient of Variation for Skewed and Heavy-Tailed Insurance Losses. Michael R. Powers[ 1 ] Temple University and Tsinghua University

Sampling and Interpolation. Yao Wang Polytechnic University, Brooklyn, NY11201

Trigonometric Functions and Equations

Lecture 7 ELE 301: Signals and Systems

The Heat Equation. Lectures INF2320 p. 1/88

Lock - in Amplifier and Applications

521466S Machine Vision Assignment #7 Hough transform

Section 2.7 One-to-One Functions and Their Inverses

ALFFT FAST FOURIER Transform Core Application Notes

CM0340 SOLNS. Do not turn this page over until instructed to do so by the Senior Invigilator.

The front end of the receiver performs the frequency translation, channel selection and amplification of the signal.

Transcription:

Image Enhancement in the Frequency Domain Jesus J. Caban Outline! Assignment #! Paper Presentation & Schedule! Frequency Domain! Mathematical Morphology %&

Assignment #! Questions?! How s OpenCV?! You have another 48hrs. Keep working! Paper Presentation & Schedule! Check the schedule online for the date you are presenting! Check the reading list for your paper assignment! If your name is not there, please let me know! Let me know about errors #&

Presentation: Evaluation Form. Delivery 2. Visual Aids & Organization 3. Topic & Papers Possible change to the syllabus! Instead of reading and writing a question for each paper, do you want to only read one paper? '&

Image Enhancement in the Frequency Domain Recall: Point Processing! Based on the intensity of a single pixel only as opposed to a neighborhood or region (&

Moving Window Transform: Example original 3x3 average Moving Window Transform: Example original 3x3 average )&

Spatial Filtering: Smoothing / 9 / 9 / 9 / 9 / 9 / 9 / 9 / 9 / 9 / 6 2 / 6 / 6 2 / 6 4 / 6 2 / 6 / 6 2 / 6 / 6 Spatial Filtering: Edge Enhancement 0 0-4 0 0 - -2-0 0 0 2-0 -2 0 2-0 *&

Jean Baptiste Joseph Fourier! Claim (807): Any periodic function can be rewritten as a weighted sum of sines and cosines of different frequencies! Published his work in 822: La Théorie Analitique de la Chaleur! His work was translated into English over 55+ years later (878): The Analytic Theory of Heat! Researchers didn t pay too much attention to his work when it was first published! Fourier Theory then became one of the most important mathematical theories in modern engineering The General Idea = Any function that periodically repeats itself can be expressed as a sum of sines and cosines of different frequencies each multiplied by a different coefficient Resulting collection is called Fourier series +&

Frequency t 0 t t 2 Frequency is the number of occurrences of a repeating event per unit time Amplitude The amplitude is the height of the wave.,&

Phase shifts The phase shift describes how far to the left or right the wave slides. The same wave after a central section underwent a phase shift (e.g. passing through glass) Frequency Example! g(t) = sin(2!f t) + (/3)sin(2! (3f) t) = +!&

Fourier Series - Example First 60 Fourier approximations Fourier Transform: Definition Sum of sine and cosine basis functions!! Changes in u and v obtain different basis functions of different frequencies! Point in the new image F(u,v) represent the contribution of that frequency to the original image %$&

Fourier Transform: Real & Imaginary Part! General concept f(x) Fourier Transform F(w) For every w from 0 to inf, F(!) holds the amplitude A and phase " of the corresponding sine 2D Domain! Any image can be captured in a single Fourier term that encodes! the spatial frequency! the magnitude (positive or negative)! the phase x u y v %%&

Frequency Domain: Illustration Frequency Domain: Illustration %#&

Extension to 2D (a-jb) u (a+jb) v Frequency Domain: Properties %'&

Properties of the Fourier Transform! Rotation: rotated image is equivalent to rotated DFT! Scaling: a*f(x,y) is equivalent to a*f(u,v)! F(0,0) = average value of f(x,y)! Others: symmetry, distributive, etc The Discrete Fourier Transform (DFT). Given an image f(x,y) or size MxN x = 0,, 2 M- y = 0,,2 N- Origin M 2. Discrete Fourier Transform of f(x, y) is given by N u = 0,, 2 M- v = 0,, 2 N- j= sqrt(-) %(&

The Inverse DFT! The key feature of a Fourier Transform is that it s completely reversible! The inverse DFT is given by: x = 0,, 2 M- y = 0,, 2 N- The Inverse DFT %)&

! Concept of convolution Recall: Basics of Spatial Filtering! Filter image by moving the convolution kernel. Convolution Theorem! Convolution in the spatial domain is equivalent to multiplication in the frequency domain! Convolution of large kernels to images can be performed by a simple multiplication %*&

Origin Recall: Smoothing Spatial Filtering x 04 00 08 99 06 98 95 90 85 * / 9 / 9 / 9 / 9 / 9! / 9 / 9 / 9 / 9 Simple 3*3 Neighbourhood 04 / 9 00 / 9 08 / 9 / 99 9 06 / 3*3 Smoothing 9 98 / 9 / 9 / 9 / 9 Filter y Image f (x, y) 95 90 85 Original Image Pixels Filter e = / 9 *06 + / 9 *04 + / 9 *00 + / 9 *08 + / 9 *99 + / 9 *98 + / 9 *95 + / 9 *90 + / 9 *85 = 98.3333 The DFT and Image Processing To filter an image in the frequency domain:. Compute F(u,v) the DFT of the image 2. Multiply F(u,v) by a filter function H(u,v) 3. Compute the inverse DFT of the result %+&

Frequency Domain: Filters. A low-pass filter: attenuates high frequencies 2. A high-pass filter: attenuates low frequencies 3. A band-pass filter: attenuates very low and very high frequencies. Low-pass Filters! Attenuates high frequencies and retains low frequencies unchanged.! high frequencies correspond to sharp intensity changes! The result in the spatial domain is equivalent to that of a smoothing filter! fine-scale details and noise in the spatial domain image are filtered %,&

Ideal Low Pass Filter Simply cut off all high frequency components that are a specified distance D 0 from the origin of the transform changing the distance changes the behaviour of the filter Ideal Low Pass Filter The transfer function for the ideal low pass filter can be given as: %!&

Ideal Low Pass Filter (cont ) Above we show an image, it s Fourier spectrum and a series of ideal low pass filters of radius 5, 5, 30, 80 and 230 superimposed on top of it Ideal Low Pass Filter (cont ) Original image Result of filtering with ideal low pass filter of radius 5 Result of filtering with ideal low pass filter of radius 5 Result of filtering with ideal low pass filter of radius 30 Result of filtering with ideal low pass filter of radius 80 Result of filtering with ideal low pass filter of radius 230 #$&

Ideal Low Pass Filter (cont ) Result of filtering with ideal low pass filter of radius 5 Ideal Low Pass Filter (cont ) Result of filtering with ideal low pass filter of radius 5 #%&

Butterworth Lowpass Filters The transfer function of a Butterworth lowpass filter of order n with cutoff frequency at distance D 0 from the origin is defined as: Butterworth Lowpass Filter (cont ) Original image Result of filtering with Butterworth filter of order 2 and cutoff radius 5 Result of filtering with Butterworth filter of order 2 and cutoff radius 5 Result of filtering with Butterworth filter of order 2 and cutoff radius 30 Result of filtering with Butterworth filter of order 2 and cutoff radius 80 Result of filtering with Butterworth filter of order 2 and cutoff radius 230 ##&

Gaussian Lowpass Filters The transfer function of a Gaussian lowpass filter is defined as: #'&

Gaussian Lowpass Filters (cont ) Original image Result of filtering with Gaussian filter with cutoff radius 5 Result of filtering with Gaussian filter with cutoff radius 5 Result of filtering with Gaussian filter with cutoff radius 30 Result of filtering with Gaussian filter with cutoff radius 85 Result of filtering with Gaussian filter with cutoff radius 230 Lowpass Filters Compared Result of filtering with ideal low pass filter of radius 5 Result of filtering with Butterworth filter of order 2 and cutoff radius 5 Result of filtering with Gaussian filter with cutoff radius 5 #(&

Lowpass Filtering Examples A low pass Gaussian filter is used to connect broken text Lowpass Filtering Examples #)&

Lowpass Filtering Examples Different lowpass Gaussian filters used to remove blemishes in a photograph. High-pass Filters! Attenuates high frequencies and retains low frequencies unchanged.! high frequencies correspond to sharp intensity changes! The result in the spatial domain is equivalent to that of a smoothing filter! fine-scale details and noise in the spatial domain image are filtered #*&

High-pass Filters A highpass filter yields edge enhancement or edge detection in the spatial domain Edges contain mostly high frequencies while other areas of the image are rather constant gray level (i.e. low frequencies) which are suppressed. Ideal High Pass Filters The ideal high pass filter is given as: where D 0 is the cut off distance as before #+&

Ideal High Pass Filters (cont ) Results of ideal high pass filtering with D 0 = 5 Results of ideal high pass filtering with D 0 = 30 Results of ideal high pass filtering with D 0 = 80 Butterworth High Pass Filters The Butterworth high pass filter is given as: where n is the order and D 0 is the cut off distance as before #,&

Butterworth High Pass Filters (cont ) Results of Butterworth high pass filtering of order 2 with D 0 = 5 Results of Butterworth high pass filtering of order 2 with D 0 = 80 Results of Butterworth high pass filtering of order 2 with D 0 = 30 Gaussian High Pass Filters The Gaussian high pass filter is given as: where D 0 is the cut off distance as before #!&

Gaussian High Pass Filters (cont ) Results of Gaussian high pass filtering with D 0 = 5 Results of Gaussian high pass filtering with D 0 = 80 Results of Gaussian high pass filtering with D 0 = 30 Highpass Filter Comparison Results of ideal high pass filtering with D 0 = 5 '$&

Highpass Filter Comparison Results of Butterworth high pass filtering of order 2 with D 0 = 5 Highpass Filter Comparison Results of Gaussian high pass filtering with D 0 = 5 '%&

Highpass Filter Comparison Results of ideal high pass filtering with D 0 = 5 Results of Butterworth high pass filtering of order 2 with D 0 = 5 Results of Gaussian high pass filtering with D 0 = 5 Laplacian In The Frequency Domain Laplacian in the frequency domain 2-D image of Laplacian in the frequency domain '#&

Frequency Domain Laplacian Example Original image Laplacian filtered image Laplacian image scaled Enhanced image Some Basic Frequency Domain Filters Low Pass Filter High Pass Filter ''&

3. Band-pass Filters A bandpass filter attenuates very low and very high frequencies, but retains a middle range band of frequencies. Bandpass filtering is used to enhance edges (suppressing low frequencies) while reducing the noise at the same time (attenuating high frequencies). Band-pass Filters: Example '(&

Band-pass Filters: Example Take-home message! Frequency Domain (Properties)! Image filtering in Fourier Domain! Filters:! Low-pass! High-pass! Band-pass ')&

Basic of filtering: Frequency Domain! How to filter in the frequency domain:. Multiply the input image by (-) x+y to center the transform 2. Compute F(u,v) (The DFT of the image) 3. Multiply F(u,v) by a filter function H(u,v) 4. Compute the invert DFT of the resulting image 5. Get the real part of the complex image 6. Multiply the resulting image by (-) x+y Fast Fourier Transform! The reason that Fourier based techniques have become so popular is the development of the Fast Fourier Transform (FFT) algorithm! Allows the Fourier transform to be carried out in a reasonable amount of time! Reduces the amount of time required to perform a Fourier transform by a factor of 00 600 times! '*&

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 Acknowledgements! Some of the images and diagrams have been taken from the Gonzalez et al, Digital Image Processing book. '+&