Practical Image Processing1 Chap7 Image Transformation  Image and Transformed image Spatial ---------------------  Transformed domain Transformation.

Slides:



Advertisements
Similar presentations
Image Enhancement in the Frequency Domain (2)
Advertisements

Frequency Domain Filtering (Chapter 4)
1 Image Processing Ch4: Filtering in frequency domain Prepared by: Tahani Khatib AOU.
Digital Image Processing
Image Enhancement in the Frequency Domain Part III
Fourier Transform (Chapter 4)
Image processing (spatial &frequency domain) Image processing (spatial &frequency domain) College of Science Computer Science Department
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Enhancement in Frequency Domain.
Chap 4 Image Enhancement in the Frequency Domain.
Digital Image Processing
Digtial Image Processing, Spring ECES 682 Digital Image Processing Oleh Tretiak ECE Department Drexel University.
Reminder Fourier Basis: t  [0,1] nZnZ Fourier Series: Fourier Coefficient:
Chapter 4 Image Enhancement in the Frequency Domain.
CHAPTER 4 Image Enhancement in Frequency Domain
Machine Vision and Dig. Image Analysis 1 Prof. Heikki Kälviäinen CT50A6100 Lectures 6&7: Image Enhancement Professor Heikki Kälviäinen Machine Vision and.
Chap 4-2. Frequency domain processing Jen-Chang Liu, 2006.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain.
Image Enhancement in the Frequency Domain Spring 2005, Jen-Chang Liu.
Image Enhancement in the Frequency Domain Part I Image Enhancement in the Frequency Domain Part I Dr. Samir H. Abdul-Jauwad Electrical Engineering Department.
Image Enhancement in the Frequency Domain Part II Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Chapter 4 Image Enhancement in the Frequency Domain.
Transforms: Basis to Basis Normal Basis Hadamard Basis Basis functions Method to find coefficients (“Transform”) Inverse Transform.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
CHAPTER 8 Fourier Filters IMAGE ANALYSIS A. Dermanis.
G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Fourier Transform Basic idea.
Presentation Image Filters
Introduction to Image Processing
Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain.
Image Processing © 2002 R. C. Gonzalez & R. E. Woods Lecture 4 Image Enhancement in the Frequency Domain Lecture 4 Image Enhancement.
CS654: Digital Image Analysis
Chapter 7: The Fourier Transform 7.1 Introduction
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Digital Image Processing Chapter 4 Image Enhancement in the Frequency Domain Part I.
Digital Image Processing CSC331 Image Enhancement 1.
ENG4BF3 Medical Image Processing Image Enhancement in Frequency Domain.
DCT.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain 22 June 2005 Digital Image Processing Chapter 4: Image Enhancement in the.
Image Subtraction Mask mode radiography h(x,y) is the mask.
7- 1 Chapter 7: Fourier Analysis Fourier analysis = Series + Transform ◎ Fourier Series -- A periodic (T) function f(x) can be written as the sum of sines.
Frequency Domain Processing Lecture: 3. In image processing, linear systems are at the heart of many filtering operations, and they provide the basis.
University of Ioannina - Department of Computer Science Filtering in the Frequency Domain (Application) Digital Image Processing Christophoros Nikou
Low Pass Filter High Pass Filter Band pass Filter Blurring Sharpening Image Processing Image Filtering in the Frequency Domain.
1 CMPB 345: IMAGE PROCESSING DISCRETE TRANSFORM 2.
Fourier Transform.
CS 376b Introduction to Computer Vision 03 / 17 / 2008 Instructor: Michael Eckmann.
Image hole-filling. Agenda Project 2: Will be up tomorrow Due in 2 weeks Fourier – finish up Hole-filling (texture synthesis) Image blending.
Computer Graphics & Image Processing Chapter # 4 Image Enhancement in Frequency Domain 2/26/20161.
G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Basic idea Input Image, I(x,y) (spatial domain) Mathematical Transformation.
2D Fourier Transform.
BYST Xform-1 DIP - WS2002: Fourier Transform Digital Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department Fourier Transform and Image.
The Frequency Domain Digital Image Processing – Chapter 8.
Frequency Domain Filtering. Frequency Domain Methods Spatial Domain Frequency Domain.
Fourier transform.
Amity School of Engineering & Technology 1 Amity School of Engineering & Technology DIGITAL IMAGE PROCESSING & PATTERN RECOGNITION Credit Units: 4 Mukesh.
Digital Image Processing Lecture 8: Image Enhancement in Frequency Domain II Naveed Ejaz.
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
Digital Image Processing , 2008
Jean Baptiste Joseph Fourier
IMAGE PROCESSING FREQUENCY DOMAIN PROCESSING
The content of lecture This lecture will cover: Fourier Transform
Spatial & Frequency Domain
Image Enhancement in the
Digital Image Processing
ENG4BF3 Medical Image Processing
Frequency Domain Analysis
4. Image Enhancement in Frequency Domain
Digital Image Processing
Lecture 4 Image Enhancement in Frequency Domain
Presentation transcript:

Practical Image Processing1 Chap7 Image Transformation  Image and Transformed image Spatial  Transformed domain Transformation domain Fourier, DCT  Image and Transformed image Spatial  Transformed domain Transformation domain h(x,y) Fourier, DCT F(u,v)  Processing in the transformed domain : u Filtering, Compression, Description  Fourier transform : 1807 Fourier u any periodic signal can be represented as a weighted sum of sinusoids

Practical Image Processing2

3 spatial frequency of an image refers to the rate at which pixel intensities change

Practical Image Processing4 H(u,v); u : spatial frequency along x axis u : spatial frequency along x axis v : spatial frequency along y axis v : spatial frequency along y axis

Practical Image Processing5  Discrete Fourier Transform (DFT) u let h(x,y) be an M x N image  Inverse Discrete Fourier Transform(IDFT)

Practical Image Processing6 Sample code for DFT input : double h[M][N] output : COMPLEX H[M][N] for (u=0; u<M; u++) for (v=0; v<N; v++) { sum_re = 0; sum_im = 0; cu = 2* *u/M; cv=2* *v/N; for (x=0; x<M; x++) for (y=0; y<N; y++) { theta = x*cu + y*cv; sum_re += h[x][y] * cos(theta); sum_im -= h[x][y] * sin(theta); } H[u][v].re = sum_re; H[u][v].im = sum_im; } struct { double re; double im; } COMPLEX;

Practical Image Processing7 u DFT expects input to be periodic

Practical Image Processing8  Gibbs phenomenon u ringing effect caused by sampling & truncation u can reduce width of ringing by increasing the number of data samples u amplitude of ringing is proportional to difference between amplitude of first and last sample F can reduce it by multiplying data by windowing function skip

Practical Image Processing9 skip

Practical Image Processing10 window functions attenuate values at truncation edges

Practical Image Processing11  Fast Fourier transform u for NxN image, time complexity of DFT is O(N 4 ) u fast algorithm : Bell lab 1965 u adopt divide and conquer technique for fast computation : O(N 2 logN) 19 hours  4.8 sec : table 7.2 u dimension of image must be powers of 2 F expand to legal size by zero-padding

Practical Image Processing12 (1) bit-reversal operation : skip

Practical Image Processing13 skip F exploit periodicity and symmetry of recursive DFT computation F swap data elements for in-place computation u butterflies operation F divide set of data points down and perform series of 2 points DFT

Practical Image Processing14  how to display frequency data u 1 pixel range : 1 cycle small u, v : low frequency u logarithmic transform : wide dynamic range D(u,v) = c log(1+|H(u,v)|) u unordered vs ordered display(centering) I IVIII IIIV III III

Practical Image Processing15

Practical Image Processing16 Magnitude only + Phase

Practical Image Processing17

Practical Image Processing18 Fourier, Logarithmic Partial Inverse Fourier

Practical Image Processing19

Practical Image Processing20

Practical Image Processing21 Filtering in Frequency Domain  convolution in spatial domain == multiplication in frequency domain u transform into frequency domain by FFT F f(x, y)  F(u, v). pgm : list 7.1 u multiply by filtering mask in frequency domain F G(u, v) = H(u, v) F(u, v). pgm : list 7.2 F H(u, v) : filter u transform back to spatial domain by IFFT F G(u, v)  g(x, y)

Practical Image Processing22 F(u,v) f(x,y) H(u,v) H(u,v)F(u,v) g(x,y)

Practical Image Processing23 Ideal Filters  filters : low-pass, high-pass, band-pass, band- stop  ideal filter : pass, not-pass style

Practical Image Processing24 Ideal Low Pass Filter

Practical Image Processing25 Ideal Low Pass Filter : Example Input image 500x500 H(u,v) with D 0 : 5, 15, 30, 80, 230 D 0 = 5 D 0 = 30 D 0 = 230 D 0 = 80 D 0 = 15 Ringing 현상 나타남

Practical Image Processing26 Practical Low Pass Filter : Butterworth  ideal filters cause blurring & ringing in spatial domain  use Butterworth filter for smooth frequency response  Low Pass Filter : (== blurring, smoothing mask) D 0 : cutoff frequency n : order

Practical Image Processing27 Butterworth Low Pass Filter : Example Input image 500x500 H(u,v) with D 0 : 5, 15, 30, 80, 230 D 0 = 5 D 0 = 30 D 0 = 230 D 0 = 80 D 0 = 15 Ringing 현상 안 나타남

Practical Image Processing28

Practical Image Processing29 D 0 = 1/3 D 0 = 1/2 Ideal lowpass filters

Practical Image Processing30 D 0 = 1/3 D 0 = 1/2 ideal Butterworth

Practical Image Processing31 Ideal High Pass Filter

Practical Image Processing32 Ideal High Pass Filter : Example IHPF D 0 = 15 IHPF D 0 = 30 IHPF D 0 = 80 Input Image 500 x 500

Practical Image Processing33 ButterWorth HPF The Butterworth high pass filter is given as: where n is the order and D 0 is the cut off distance as before

Practical Image Processing34 Butterworth HPF : Example D 0 = 15D 0 = 30D 0 = 80

Practical Image Processing35  High Pass Filter : sharpening  Band Pass Filter u pass specific frequency component only W : bandwidth, D 0 : center freqency

Practical Image Processing36 Discrete Cosine Transform(DCT)  produce real frequency coefficients  fast : pgm list 7.2, 7.3  used for image compression : JPEG, MPEG