Transforms and Frequency Filtering

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

Fourier Transforms and the Frequency Domain

Frequency Domain Enhancement

Smoothing frequency domain filters

Digital Image Processing

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

TDI2131 Digital Image Processing

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

Smoothing frequency domain filters

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

8. Lecture. Image restoration: Fourier 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

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

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

Image Smoothening and Sharpening using Frequency Domain Filtering Technique

Computer Vision, Lecture 3

Lecture 3 Complex Exponential Signals

IMAGE PROCESSING (RRY025) THE CONTINUOUS 2D FOURIER TRANSFORM

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

Lecture 3, Multirate Signal Processing

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

06: Thinking in Frequencies. CS 5840: Computer Vision Instructor: Jonathan Ventura

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

DIGITAL IMAGE PROCESSING UNIT III

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad

Midterm Review. Image Processing CSE 166 Lecture 10

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

Image Filtering. Median Filtering

Lecture 12: Image Processing and 2D Transforms

Digital Signal Processing

Examples of image processing

The Fourier Transform

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

Digital Image Processing

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

Digital Image Processing

Digital Image Processing 3/e

EE482: Digital Signal Processing Applications

Filtering. Image Enhancement Spatial and Frequency Based

Understanding Digital Signal Processing

CHAPTER 6 Frequency Response, Bode. Plots, and Resonance

Digital Image Processing COSC 6380/4393

Head, IICT, Indus University, India

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

Images and Filters. EE/CSE 576 Linda Shapiro

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

Graphing Sine and Cosine

Chapter 2 Image Enhancement in the Spatial Domain

Lecture #10. EECS490: Digital Image Processing

Fourier Transform Pairs

Practical Image and Video Processing Using MATLAB

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

DIGITAL SIGNAL PROCESSING CCC-INAOE AUTUMN 2015

Exercise Problems: Information Theory and Coding

Analysis of Image Enhancement Techniques Used in Remote Sensing Satellite Imagery

Section 7.2 Logarithmic Functions

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

Digital Image Processing. Lecture # 3 Image Enhancement

Digital Image Processing. Frequency Domain Filtering

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

2D Discrete Fourier Transform

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

Image Enhancement using Histogram Equalization and Spatial Filtering

Lecture 7 Frequency Modulation

Image preprocessing in spatial domain

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

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

Implementation of Image Deblurring Techniques in Java

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

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

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

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

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

Image Processing for feature extraction

Image Enhancement. Image Enhancement

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

+ 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.

Prof. Feng Liu. Fall /04/2018

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

Sampling and Reconstruction of Analog Signals

Midterm Examination CS 534: Computational Photography

USE OF FT IN IMAGE PROCESSING IMAGE PROCESSING (RRY025)

June 30 th, 2008 Lesson notes taken from professor Hongmei Zhu class.

Lecture 3: Linear Filters

Digital Processing of Continuous-Time Signals

SECTION 7: FREQUENCY DOMAIN ANALYSIS. MAE 3401 Modeling and Simulation

Signals and Systems Lecture 6: Fourier Applications

ECE 2111 Signals and Systems Spring 2012, UMD Experiment 9: Sampling

Chapter 2 Fourier Integral Representation of an Optical Image

Signals and Systems Lecture 6: Fourier Applications

Digital Processing of

TRANSFORMS / WAVELETS

Lecture Schedule: Week Date Lecture Title

Linear Image Processing

Fourier and Wavelets

Last Lecture. photomatix.com

LOCAL MULTISCALE FREQUENCY AND BANDWIDTH ESTIMATION. Hans Knutsson Carl-Fredrik Westin Gösta Granlund

Image Processing. Image Processing. What is an Image? Image Resolution. Overview. Sources of Error. Filtering Blur Detect edges

DIGITAL FILTERS. !! Finite Impulse Response (FIR) !! Infinite Impulse Response (IIR) !! Background. !! Matlab functions AGC DSP AGC DSP

Transcription:

Transforms and Frequency Filtering Khalid Niazi Centre for Image Analysis Swedish University of Agricultural Sciences Uppsala University

2 Reading Instructions Chapter 4: Image Enhancement in the Frequency Domain Book: Digital Image Processing by Gonzalez & Woods, Third Edition, 2007

3 Image processing g(x, y) = T[f(x, y)] Original image f. Result image g after transformation T. T can be performed point-wise (gray-level transformation) 1 x 1 locally (in a small neighborhood) m x n globally (the whole image) M X N

4 Image representations An image is a function of x and y. f(x, y) One possible way to investigate its properties is to display the function values as grey-level intensities; this is the normal representation. Another possibility is to transform the function values, e.g., to spatial frequencies through the Fourier transform. It is still the same image, but in a different representation. This gives a partitioning of the frequencies in the image.

5 Frequency domain representation We need to know Frequency Sinusoids Euler s formula

6 Frequency domain representation Frequency: Cycles per second Sinusoids: Common name for Cosine and Sine Euler's formula

7 Frequency domain representation Using Euler s formula one can write a Sinusoid as, 0

8 Frequency domain representation x(t) = x1(t) + x2(t) + x3(t) + x4(t) x1(t) = 10 cos(2*pi*1*t+pi/32) x2(t) = 6 cos(2*pi*1.5*t+pi/10) x3(t) = 4 cos(2*pi*2.7*t+pi/7) x4(t) = 2 cos(2*pi*3.4*t+pi/13) 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 time

9 Frequency domain representation 5 4.5 4 3.5 3 2.5 2 1.5 1 0.5 0-4 -3-2 -1 0 1 2 3 4 frequency

10 Frequency domain representation Conjugate symmetric pair of points in the frequency domain of a signal corresponds to a sinusoid in the spatial domain A one-dimensional sinusoid has frequency, phase, and amplitude No time information in the frequency domain

11 Frequency domain representation Y[x, y] = sin[2π(ux+ Vy)] Where x and y are horizontal and vertical dimensions of the image Y. U and V represents the frequencies along these dimensions. Here the image has two frequencies, i.e., horizontal and vertical frequencies MATLAB demonstration

12 Frequency domain representation Conjugate symmetric pair of points in the frequency domain of an image corresponds to a two-dimensional sinusoid in the spatial domain A one-dimensional sinusoid has frequency, phase, and amplitude and two dimensional sinusoid also has a direction Two-dimensional sinusoids are directional in nature

13 Fourier transform F(u, v) is generally complex: F(u, v) = R(u, v) + I(u, v) = F(u, v) exp ( φ(u, v)) R(u, v) is the real component of F(u, v). I(u, v) is the imaginary component of F(u, v). F(u, v) is the magnitude function, also called the Fourier spectrum. φ(u, v) is the phase angle. F(u, v) is composed of an infinite sum of sine and cosine terms, where u and v determines the frequency of its corresponding sine-cosine pair.

Summation of Fourier frequency 14 terms to fit a step function

15 Display of Fourier images The magnitude function, or Fourier spectrum, F(u, v) can be displayed as an intensity function, where the brightness is proportional to the amplitude. The spectrum most often has a large dynamic range, e.g., 0 2.500.000. Only the brightest parts of the spectrum are visible. By a logarithmic transform an increase in visible detail is possible: D(u, v) = c log(1 + F(u, v) )

16 Display of Fourier images

17 The Fourier spectrum F(u, v) F(0, 0) is the mean grey-level in the image, i.e., the lowest frequency. The farther away from (u, v) = (0, 0) we get, the higher the frequencies represented by F(u, v) are. F(u, v) contains information about low frequencies (areas with slowly changing grey-level) if (u, v) is close to (0, 0). F(u, v) contains information about high frequencies (abrupt changes in grey-level, such as edges and noise) if (u, v) is far away from (0, 0). F(0, 0) is usually centered in the image showing the Fourier spectrum.

18 Properties of the Fourier transform Separability Translation Periodicity Conjugate Symmetry Rotation Convolution

19 Separability The separability property is a great advantage for images with M = N. F(u, v) or f(x, y) can be obtained by two successive applications of the simple 1D Fourier transform or its inverse, instead of by one application of the more complex 2D Fourier transform. That is, first transform along each row, and then transform along each column, or vice versa.

20 Translation A shift in f(x, y) = f(x x0, y y0) does not affect the magnitude function F(u, v) : It only affects the phase angle φ(u, v). Keep in mind when displaying the magnitude function! MATLAB demonstration

21 Periodicity The discrete Fourier transform is periodic: F(u, v) = F(u +M, v) = F(u, v + N) = F(u +M, v + N) Why Periodic? Only one period is necessary to reconstruct f(x, y)

22 Conjugate Symmetry

23 Rotation Dependency Rotating f(x, y) by an angle α rotates F(u, v) by the same angle. Similarly, rotating F(u, v) rotates f(x, y) by the same angle.

24 Convolution theorem Convolution in the spatial domain multiplication in frequency domain f(x, y) g(x, y) = F 1{F(u, v) G(u, v)} and vice versa F(u, v) G(u, v) = F{f(x, y) g(x, y)}

25 Examples

26 Examples

27 Enhancement in frequency domain Steps in filtering in the frequency domain (simplified): 1. Compute the Fourier-transform of the image to be enhanced. 2. Multiply the result by a frequency filter. 3. Compute the inverse Fourier-transform to produce the enhanced image.

28 Enhancement in frequency domain When filtering images by a mask, convolution in the spatial domain is used. We can get the frequency filter by computing the Fourier transform of the spatial filter (the mask). Then, filtering by multiplying the Fourier transformed image and the frequency filter is equal to filtering by convolution in spatial domain.

29 Smoothing frequency-domain filters High frequencies are attenuated; noise and edges are blurred. Ideal lowpass filter: ILPF Butterworth lowpass filter: BLPF Gaussian lowpass filter: GLPF

30 Ideal lowpass filtering Only values of F(u, v) near (u, v) = (0, 0) remains after filtering Only low frequencies remains after filtering

31 Gaussian lowpass filtering The frequency filter must have the same size as the original image, this is achieved by filling up the frequency filter with zeros.

32 Gaussian lowpass filtering

Sharpening frequency-domain 33 filters Low frequencies are attenuated; noise and edges are enhanced. The reverse operation of lowpass filters. Ideal highpass filter: IHPF Butterworth highpass filter: BHPF Gaussian highpass filter: GHPF The Laplacian in the frequency domain

34 Ideal highpass filtering Only values of F(u, v) far from (u, v) = (0, 0) remains after filtering Only high frequencies remains after filtering.

35 Gaussian highpass filter By taking one minus the Gaussian lowpass filter (GLPF), the Gaussian highpass filter (GHPF) is achieved.

36 Gaussian highpass filter

37 Laplacian in frequency domain

38 Laplacian in frequency domain

Decimation-free directional filter 39 bank(ddfb)

40 DDFB

41 DDFB

42 DDFB

43 Directional analysis

44 Directional analysis

45 Directional analysis

46 DDFB

47 Directional analysis

48 Directional analysis

49 Directional analysis name@cb.uu.se

50 Directional analysis

51 Directional analysis

52 Directional analysis

53 Directional analysis

54 Directional analysis

55 Directional analysis

56 Directional analysis

57 Design of DDFB

58 DDFB Divides an Image into its directional components It is common practice to divide an image into eight directional components. But it is mostly dependent on the image information Noise is omni-directional

59 Image enhancement with DDFB

60 Image enhancement with DDFB

61 Image enhancement with DDFB

62 Next lecture Image Restoration Time1315hrs Date: 28/10/09