Lecture 5: Frequency Domain Transformations

Similar documents
Digital Image Processing. Lecture 6

Computer Vision and Graphics (ee2031) Digital Image Processing I

Digital Image Processing. Image Enhancement in the Frequency Domain

Biomedical Image Analysis. Spatial Filtering

Motivation. The main goal of Computer Graphics is to generate 2D images. 2D images are continuous 2D functions (or signals)

Reading. 2. Fourier analysis and sampling theory. Required: Watt, Section 14.1 Recommended:

PSD2B Digital Image Processing. Unit I -V

Fourier analysis and sampling theory

Point and Spatial Processing

Texture. Outline. Image representations: spatial and frequency Fourier transform Frequency filtering Oriented pyramids Texture representation

Image Transformation Techniques Dr. Rajeev Srivastava Dept. of Computer Engineering, ITBHU, Varanasi

The main goal of Computer Graphics is to generate 2D images 2D images are continuous 2D functions (or signals)

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

Lecture 2: 2D Fourier transforms and applications

Lecture 6: Edge Detection

CS1114 Section 8: The Fourier Transform March 13th, 2013

Aliasing. Can t draw smooth lines on discrete raster device get staircased lines ( jaggies ):

Computer Vision 2. SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung. Computer Vision 2 Dr. Benjamin Guthier

Tutorial 5. Jun Xu, Teaching Asistant March 2, COMP4134 Biometrics Authentication

Computer Vision. Fourier Transform. 20 January Copyright by NHL Hogeschool and Van de Loosdrecht Machine Vision BV All rights reserved

Relationship between Fourier Space and Image Space. Academic Resource Center

Computer Vision I. Announcements. Fourier Tansform. Efficient Implementation. Edge and Corner Detection. CSE252A Lecture 13.

EECS490: Digital Image Processing. Lecture #16

To Do. Advanced Computer Graphics. Sampling and Reconstruction. Outline. Sign up for Piazza

Digital Image Processing. Prof. P. K. Biswas. Department of Electronic & Electrical Communication Engineering

Image processing in frequency Domain

Basics. Sampling and Reconstruction. Sampling and Reconstruction. Outline. (Spatial) Aliasing. Advanced Computer Graphics (Fall 2010)

Image restoration. Lecture 14. Milan Gavrilovic Centre for Image Analysis Uppsala University

Outline. Sampling and Reconstruction. Sampling and Reconstruction. Foundations of Computer Graphics (Fall 2012)

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

Outline. Foundations of Computer Graphics (Spring 2012)

3. Image formation, Fourier analysis and CTF theory. Paula da Fonseca

Continuous Space Fourier Transform (CSFT)

11. Image Data Analytics. Jacobs University Visualization and Computer Graphics Lab

Lecture 4: Spatial Domain Transformations

Honors Precalculus: Solving equations and inequalities graphically and algebraically. Page 1

Aliasing And Anti-Aliasing Sampling and Reconstruction

Central Slice Theorem

Vivekananda. Collegee of Engineering & Technology. Question and Answers on 10CS762 /10IS762 UNIT- 5 : IMAGE ENHANCEMENT.

Fourier Transform and Texture Filtering

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

EEE 512 ADVANCED DIGITAL SIGNAL AND IMAGE PROCESSING

Image Restoration. Yao Wang Polytechnic Institute of NYU, Brooklyn, NY 11201

Image Processing Notes

Computational Aspects of MRI

To Do. Advanced Computer Graphics. Discrete Convolution. Outline. Outline. Implementing Discrete Convolution

COMP 9517 Computer Vision

Digital Signal Processing Lecture Notes 22 November 2010

Sampling: Application to 2D Transformations

Phys. 428, Lecture 6

C2: Medical Image Processing Linwei Wang

CoE4TN4 Image Processing. Chapter 5 Image Restoration and Reconstruction

Digital Image Processing

Image Reconstruction from Projection

Fourier transforms and convolution

Magnetics. Introduction to Filtering using the Fourier Transform. Chuck Connor, Laura Connor. Potential Fields. Magnetics.

EEM 561 Machine Vision. Week 3: Fourier Transform and Image Pyramids

IMAGE ENHANCEMENT IN THE FREQUENCY DOMAIN (1)

Image Filtering, Warping and Sampling

Lecture 8 Object Descriptors

Introduction to Computer Vision. Week 3, Fall 2010 Instructor: Prof. Ko Nishino

2D Image Processing INFORMATIK. Kaiserlautern University. DFKI Deutsches Forschungszentrum für Künstliche Intelligenz

BLUR INVARIANT REGISTRATION OF ROTATED, SCALED AND SHIFTED IMAGES

Reconstruction of Images Distorted by Water Waves

Chapter 3: Intensity Transformations and Spatial Filtering

Chapter 11 Image Processing

Image Restoration and Reconstruction

Digital Signal Processing. Soma Biswas

Scaled representations

Computer Graphics. Texture Filtering & Sampling Theory. Hendrik Lensch. Computer Graphics WS07/08 Texturing

Filtering. -If we denote the original image as f(x,y), then the noisy image can be denoted as f(x,y)+n(x,y) where n(x,y) is a cosine function.

Edge detection. Convert a 2D image into a set of curves. Extracts salient features of the scene More compact than pixels

Analysis of Planar Anisotropy of Fibre Systems by Using 2D Fourier Transform

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

Image Processing. Application area chosen because it has very good parallelism and interesting output.

Announcements. Image Matching! Source & Destination Images. Image Transformation 2/ 3/ 16. Compare a big image to a small image

Image Sampling and Quantisation

Image Sampling & Quantisation

Overview. Spectral Processing of Point- Sampled Geometry. Introduction. Introduction. Fourier Transform. Fourier Transform

Solutions to Midterm Exam

Lecture 6 Basic Signal Processing

Modern CT system generations Measurement of attenuation

Reconstruction in CT and hints to the assignments

Introduction to Digital Image Processing

Statistical Image Compression using Fast Fourier Coefficients

Digital Image Processing. Image Enhancement - Filtering

Fourier transform of images

Filters and Fourier Transforms

Digital Image Processing. Week 2

Anno accademico 2006/2007. Davide Migliore

Advanced Computer Graphics. Aliasing. Matthias Teschner. Computer Science Department University of Freiburg

Image Processing Lecture 10

BME I5000: Biomedical Imaging

Section Graphs of the Sine and Cosine Functions

Spatial Enhancement Definition

x' = c 1 x + c 2 y + c 3 xy + c 4 y' = c 5 x + c 6 y + c 7 xy + c 8

Edge Detection (with a sidelight introduction to linear, associative operators). Images

Michael Moody School of Pharmacy University of London 29/39 Brunswick Square London WC1N 1AX, U.K.

Digital Image Processing

Mastery. PRECALCULUS Student Learning Targets

Transcription:

#1 Lecture 5: Frequency Domain Transformations Saad J Bedros sbedros@umn.edu

From Last Lecture Spatial Domain Transformation Point Processing for Enhancement Area/Mask Processing Transformations Image Filter for Blurring, Enhancement Geometric Transformations Image Warping or Operations on the image axes Frame Processing Transformations Operations on multiple images #2

Frequency Domain Transformations TODAY s LECTURE #3 New Form of Image Representation Different Representation of an image Fourier Transform Frequency Domain Filtering

Efficient Data Representation #4

Different Form of Image Representation #5 Goal is represent the image using transformation for better analysis and interpretation

Change of Basis #6

Image Transform: Change of Basis #7

Standard Basis Functions 1D #8

Hadamard Basis Functions 1D #9

Finding the Transform Coefficients #10

Reconstructing the Image #11

Transforms: Change of Basis 2D #12

Finding the Transform Coefficients #13

Change of Basis #14

Hadamard Basis Functions #15

Complex Numbers A complex number x is of the form: α: real part, b: imaginary part Addition: Multiplication:

Complex Numbers Magnitude-Phase (i.e.,vector) representation Magnitude: φ Phase: Magnitude-Phase notation:

Complex Numbers Multiplication using magnitude-phase representation Complex conjugate Properties

Euler s formula Complex Numbers Properties j

Sine and Cosine Functions Periodic functions General form of sine and cosine functions:

Sine and Cosine Functions Special case: A=1, b=0, α=1 π/2 π 3π/2 π/2 π 3π/2

Sine and Cosine Functions Shifting or translating the sine function by a const b Note: cosine is a shifted sine function: cos( t) sin( t ) 2

Sine and Cosine Functions Changing the amplitude A

Sine and Cosine Functions Changing the period T=2π/ α consider A=1, b=0: y=cos(αt) α =4 period 2π/4=π/2 shorter period higher frequency (i.e., oscillates faster) Frequency is defined as f=1/t Alternative notation: cos(αt)=cos(2πt/t)=cos(2πft)

Amplitude and Phase #25

Basis Functions Given a vector space of functions, S, then if any f(t) ϵ S can be expressed as f () t ak k() t the set of functions φ k (t) are called the expansion set of S. k If the expansion is unique, the set φ k (t) is a basis.

Image Transforms Many times, image processing tasks are best performed in a domain other than the spatial domain. Key steps: (1) Transform the image (2) Carry the task(s) in the transformed domain. (3) Apply inverse transform to return to the spatial domain.

Transformation Kernels Forward Transformation Inverse Transformation 1 0 1 0 1 0,1,..., 1, 0,1,..., ),,, ( ), ( ), ( M x N y N v M u v u y x r y x f v u T 1 0 1 0 1 0,1,..., 1, 0,1,..., ),,, ( ), ( ), ( M u N v N y M x v u y x s v u T y x f inverse transformation kernel forward transformation kernel

Kernel Properties A kernel is said to be separable if: A kernel is said to be symmetric if: ), ( ), ( ),,, ( 2 1 v y r u x r v u y x r ), ( ), ( ),,, ( 1 1 v y r u x r v u y x r

Notation Continuous Fourier Transform (FT) Discrete Fourier Transform (DFT) Fast Fourier Transform (FFT) Faster Method to Compute DFT for 2 N points, where N is an integer

Fourier Series Theorem Any periodic function f(t) can be expressed as a weighted sum (infinite) of sine and cosine functions of varying frequency: is called the fundamental frequency

Every Function equals a sum of sines/cosines #32

Fourier Series Example α 1 α 2 α 3

Continuous Fourier Transform (FT) Transforms a signal (i.e., function) from the spatial (x) domain to the frequency (u) domain. where

Definitions F(u) is a complex function: Magnitude of FT (spectrum): Phase of FT: Magnitude-Phase representation: Power of f(x): P(u)= F(u) 2 =

Example: rectangular pulse magnitude rect(x) function sinc(x)=sin(x)/x

Example: impulse or delta function Definition of delta function: Properties:

Example: impulse or delta function (cont d) FT of delta function: 1 x u

The Frequency Domain #39

Interpretation #40

Interpretation #41

Example: spatial/frequency shifts ) ( ) ( (2) ) ( ) ( (1) ), ( ) ( 0 2 2 0 0 0 u u F e x f u F e x x f then u F x f x u j ux j Special Cases: 0 2 0 ) ( ux j e x x ) ( 0 2 0 u u e x u j

Example: sine and cosine functions FT of the cosine function cos(2πu 0 x) F(u) 1/2

Example: sine and cosine functions (cont d) FT of the sine function sin(2πu 0 x) -jf(u)

Examples #45

The constant Function #46

A Basis Function #47

The Cosine Wave #48

The Sine Wave #49

The Gaussian #50

Why Representation in Frequency Domain #51

Forward DFT Discrete Fourier Transform (DFT) Inverse DFT 1/NΔx

Discrete Fourier Transform (DFT)

Example

Discrete Fourier Transform (DFT) DFT Computation The spectrum of the sampled signal is Periodic in the frequency domain

Extending FT in 2D Forward FT Inverse FT

Example: 2D rectangle function FT of 2D rectangle function 2D sinc()

Extending DFT to 2D Assume that f(x,y) is M x N. Forward DFT Inverse DFT:

Extending DFT to 2D (cont d) Special case: f(x,y) is N x N. Forward DFT Inverse DFT u,v = 0,1,2,, N-1 x,y = 0,1,2,, N-1

Extending DFT to 2D (cont d) 2D cos/sin functions

Visualizing DFT Typically, we visualize F(u,v) The dynamic range of F(u,v) is typically very large Apply streching: (c is const) F(u,v) D(u,v) original image before stretching after stretching

Why is DFT Useful? Easier to remove undesirable frequencies. Fasterperformance for certain operations in the frequency domain than in the spatial domain.

Example: Removing undesirable frequencies noisy signal frequencies To remove certain frequencies, set their corresponding F(u) coefficients to zero! remove high frequencies reconstructed signal

How do frequencies show up in an image? Low frequencies correspond to slowly varying information (e.g., continuous surface). High frequencies correspond to quickly varying information (e.g., edges) Original Image Low-passed

Example of noise reduction using FT Input image Spectrum Band-pass filter Output image

Magnitude and Phase of DFT Question: What is more important? We can use the inverse DFT to reconstruct the input image using magnitude or phase only information magnitude phase

Magnitude and Phase of DFT Reconstructed image using magnitude only (i.e., magnitude determines the strength of each component!) Reconstructed image using phase only (i.e., phase determines the phase of each component!)

Magnitude and Phase of DFT (cont d)

The Convolution Theorem #69

The Convolution Theorem #70

Convolution Theorem - Example #71

How can we do Frequency Filtering 1. Take the FT of f(x): 2. Remove undesired frequencies: 3. Convert back to a signal: Typically the converted signal is Real without an Imaginary Content

Convolution Example 2D #73

The Fourier Transform of the Dirac Function #74

Frequency Enhancement #75

Frequency Bands #76

Blurring Ideal Low Pass Filter #77

Low Pass Filter #78

H(u,v) Ideal Low Pass Filter #79

The Ringing Problem #80

H(u,v) Butterworth Filter #81

H(u,v) Gaussian Filter #82

Low Pass Filters - Comparison #83

Image Sharpening High Pass Filter #84

H(u,v) Butterworth Filter #85

H(u,v) Gaussian Filter #86

High Pass Filtering #87

High Pass Filters - Comparison #88

High Frequency Emphasis #89

High Frequency Emphasis - Example #90

High Pass Filtering - Examples #91

Band Pass Filtering #92

Band Rejection Filtering #93

Local Frequency Filtering #94

Additive Noise Filtering #95

Local Reject Filter - Example #96

Local Reject Filter - Example #97

DFT Properties: Periodicity The DFT and its inverse are periodic with period N

Symmetry Properties

DFT Properties: Separability The 2D DFT can be computed using 1D transforms only: Forward DFT: kernel is separable: 2 ( ux j vy ) j2 ( ux ) j2 ( vy ) N N N e e e

DFT Properties: Separability Rewrite F(u,v) as follows: Let s set: Then:

DFT Properties: Separability How can we compute F(x,v)? ) N x DFT of rows of f(x,y) How can we compute F(u,v)? DFT of cols of F(x,v)

DFT Properties: Separability

DFT Properties: Translation f(x,y) F(u,v) Translation in spatial domain: Translation in frequency domain: N )

DFT Properties: Translation Warning: to show a full period, we need to translate the origin of the transform at u=n/2 (or at (N/2,N/2) in 2D) F(u) F(u-N/2)

DFT Properties: Translation N ) To move F(u,v) at (N/2, N/2), take N )

Example-Translation #107

DFT Properties: Translation no translation after translation

DFT Properties: Rotation Rotating f(x,y) by θ rotates F(u,v) by θ

DFT Properties: Addition/Multiplication but we saw this before

DFT Properties: Scale

DFT Properties: Average value Average: F(u,v) at u=0, v=0: So:

Review Image Representation Introduced the concept of different image representation Fourier Transform Opportunity of manipulate, process and analyze the image in a different domain Frequency Domain Filtering Can be more efficient in certain cases #113