CS654: Digital Image Analysis

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
Digital Image Processing Frequency Filtering Ashourian
Image Enhancement in the Frequency Domain Part III
Image processing (spatial &frequency domain) Image processing (spatial &frequency domain) College of Science Computer Science Department
Digital Image Processing Lecture 11: Image Restoration Prof. Charlene Tsai.
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Enhancement in Frequency Domain.
Chap 4 Image Enhancement in the Frequency Domain.
Image Processing Frequency Filtering Instructor: Juyong Zhang
Lecture 14 The frequency Domain (2) Dr. Masri Ayob.
Digital image processing Chapter 6. Image enhancement IMAGE ENHANCEMENT Introduction Image enhancement algorithms & techniques Point-wise operations Contrast.
Digtial Image Processing, Spring ECES 682 Digital Image Processing Oleh Tretiak ECE Department Drexel University.
Digital Image Processing: Revision
Chapter 4 Image Enhancement in the Frequency Domain.
CHAPTER 4 Image Enhancement in Frequency Domain
Chap 4-2. Frequency domain processing Jen-Chang Liu, 2006.
General Functions A non-periodic function can be represented as a sum of sin’s and cos’s of (possibly) all frequencies: F(  ) is the spectrum of the function.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.
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.
Filters in the Frequency Domain.  Image Smoothing Using Frequency Domain Filters: ◦ Ideal Lowpass Filters ◦ Butterworth Lowpass Filters ◦ Gaussian Lowpass.
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.
CS654: Digital Image Analysis Lecture 17: Image Enhancement.
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 Lecture 12: Separable Transforms.
Digital Image Processing Chapter 4
09/19/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Dithering.
Digital Image Processing CSC331 Image Enhancement 1.
ENG4BF3 Medical Image Processing Image Enhancement in Frequency Domain.
Computer Vision – Enhancement(Part III) Hanyang University Jong-Il Park.
CS654: Digital Image Analysis Lecture 22: Image Restoration - II.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain 22 June 2005 Digital Image Processing Chapter 4: Image Enhancement in the.
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Digital Image Processing Spatial Aliasing and Image Enhancement.
Digital Image Processing Lecture 11: Image Restoration March 30, 2005 Prof. Charlene Tsai.
Lecture Nine Figures from Gonzalez and Woods, Digital Image Processing, Copyright 2002.
University of Ioannina - Department of Computer Science Filtering in the Frequency Domain (Application) Digital Image Processing Christophoros Nikou
Practical Image Processing1 Chap7 Image Transformation  Image and Transformed image Spatial  Transformed domain Transformation.
CS654: Digital Image Analysis
Filtering x y.
Image Enhancement (Frequency Domain)
Computer Graphics & Image Processing Chapter # 4 Image Enhancement in Frequency Domain 2/26/20161.
CS654: Digital Image Analysis Lecture 11: Image Transforms.
Digital Image Processing Lecture 9: Filtering in Frequency Domain Prof. Charlene Tsai.
ECE 533 Project Tribute By: Justin Shepard & Jesse Fremstad.
Frequency Domain Filtering. Frequency Domain Methods Spatial Domain Frequency Domain.
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 , 2008
Math 3360: Mathematical Imaging
IMAGE ENHANCEMENT IN THE FREQUENCY DOMAIN
IMAGE PROCESSING FREQUENCY DOMAIN PROCESSING
(C) 2002 University of Wisconsin, CS 559
Lecture 11 Image restoration and reconstruction II
Digital Image Processing
Image Enhancement (Frequency Domain)
ENG4BF3 Medical Image Processing
2D Fourier transform is separable
Digital Image Processing
Lecture 4 Image Enhancement in Frequency Domain
Digital Image Processing Lecture 11: Image Restoration
Even Discrete Cosine Transform The Chinese University of Hong Kong
Presentation transcript:

CS654: Digital Image Analysis Lecture 20: Image Enhancement in Frequency Domain

Recap of Lecture 19 Spatial filtering Mean Filter Non-Local Mean Filter Median Filter Unsharp Masking Adaptive Unsharp Masking

Outline of Lecture 20 Image Enhancement in Frequency Domain Low Pass Filtering High pass Filtering Butterworth Filtering Gaussian Filtering Homomorphic Filtering

Introduction Frequency is the rate of repetition of certain periodic events Variation of image brightness with its position in space Fourier transform is reversible Fourier filtering or Frequency domain filtering Convolution in spatial domain = Multiplication in Frequency domain

Frequency domain Enhancement Pipeline Spatial Domain Frequency Domain Mask/ Filter/ Kernel ℎ(𝑥,𝑦) Mask/ Filter/ Kernel H(𝑢,𝑣) DFT Output Image G(𝑢,𝑣) Multiply Input Image 𝑓(𝑥,𝑦) Input Image F(𝑢,𝑣) DFT Output Image g(𝑥,𝑦) IDFT

A quick recap of DFT in 2D Forward transformation (DFT) 𝐹 𝑢,𝑣 = 𝑥=0 𝑀−1 𝑦=0 𝑁−1 𝑓 𝑥,𝑦 exp⁡[−𝑗2𝜋 𝑢𝑥 𝑀 + 𝑣𝑦 𝑁 ] 𝑓(𝑥,𝑦) is an image of dimension 𝑀×𝑁 0≤𝑢≤𝑀−1,0≤𝑣≤𝑁−1 Inverse transformation (IDFT) 𝑓 𝑥,𝑦 = 1 𝑀𝑁 𝑢=0 𝑀−1 𝑣=0 𝑁−1 𝐹 𝑢,𝑣 exp⁡[𝑗2𝜋 𝑢𝑥 𝑀 + 𝑣𝑦 𝑁 ] 𝐹(𝑢,𝑣) is the DFT image 0≤𝑥≤𝑀−1,0≤𝑦≤𝑁−1

2-D DFT Forward transformation 𝑣 𝑘,𝑙 = 𝑚=0 𝑁−1 𝑛=0 𝑁−1 𝑢 𝑚,𝑛 𝑊 𝑁 𝑘𝑚+𝑙𝑛 𝑣 𝑘,𝑙 = 𝑚=0 𝑁−1 𝑛=0 𝑁−1 𝑢 𝑚,𝑛 𝑊 𝑁 𝑘𝑚+𝑙𝑛 where, 0≤𝑘,𝑙≤𝑁−1 Forward transformation 𝑢 𝑚,𝑛 = 𝑘=0 𝑁−1 𝑙=0 𝑁−1 𝑣 𝑘,𝑙 𝑊 𝑁 − 𝑘𝑚+𝑙𝑛 where, 0≤𝑚,𝑛≤𝑁−1 Reverse transformation where, 𝑒𝑥𝑝 −𝑗2𝜋 𝑁 = 𝑊 𝑁

Frequency domain filtering Filtering in spatial domain is convolution of 𝑓(𝑥,𝑦) by the filter kernel ℎ(𝑥,𝑦) Filtering in spatial domain = 𝑓(𝑥,𝑦)∗ℎ(𝑥,𝑦) Filtering in frequency domain is the multiplication of the Fourier transform of the image and the filter kernel Filtering in spatial domain = 𝐹 𝑘,𝑙 ×𝐻(𝑘,𝑙) Take a inverse Fourier transform of the resultant image

Low pass filtering Non-seperable Seperable 𝑫 𝟎 𝑣 𝑢 𝐻 𝑢,𝑣 = 1, 𝑓𝑜𝑟 𝑢 2 + 𝑣 2 ≤ 𝐷 0 0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 Seperable 𝑣 𝑢 𝐻 𝑢,𝑣 = 1, 𝑓𝑜𝑟 𝑢≤ 𝐷 𝑘 𝑎𝑛𝑑 𝑣≤ 𝐷 𝑙 0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒

Butterworth filter 𝐻 𝑘,𝑙 = 1 1+ 𝑘 2 + 𝑙 2 𝐷 0 2𝑛 Images: Gonzalez & Woods, 3rd edition Butterworth filter Transfer function for 2D Butterworth filter 𝐻 𝑘,𝑙 = 1 1+ 𝑘 2 + 𝑙 2 𝐷 0 2𝑛 𝑛= order of the Butterworth filter 𝐷 0 = Cut-off frequency

High-pass Filters Complementary to LP Filters Butterworth High-Pass filter 𝐻 𝑢,𝑣 = 0, 𝐷(𝑢,𝑣)≤ 𝐷 0 1, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 Ideal High Pass Filter (IHPF) 𝐻 𝑘,𝑙 = 1 1+ 𝐷 0 𝑘 2 + 𝑙 2 2𝑛 Butterworth High Pass Filter (BHPF)

Gaussian Filters (Low-pass, High-pass) Popular for removing ringing effect Transfer function for 2-D Gaussian LPF (GLPF) Transfer function for 2-D Gaussian HPF (GHPF) 𝐻 𝑢,𝑣 =𝑒𝑥𝑝 − 𝐷 2 (𝑢,𝑣) 2 𝜎 2 𝐻 𝑢,𝑣 =1−𝑒𝑥𝑝 − 𝐷 2 (𝑢,𝑣) 2 𝜎 2

Selective filtering Operate on a given range of frequencies Bandpass, Band reject Band-reject filter

Homomorphic Filter 𝑓 𝑥,𝑦 = 𝑓 𝑖 𝑥,𝑦 ∗ 𝑓 𝑟 (𝑥,𝑦) 𝑧 𝑥,𝑦 = ln 𝑓(𝑥,𝑦) 𝑓 𝑥,𝑦 = 𝑓 𝑖 𝑥,𝑦 ∗ 𝑓 𝑟 (𝑥,𝑦) 𝑓 𝑖 𝑥,𝑦 = Illumination component 𝑓 𝑟 𝑥,𝑦 = Reflectance component 𝑧 𝑥,𝑦 = ln 𝑓(𝑥,𝑦) = ln 𝑓 𝑖 𝑥,𝑦 + ln 𝑓 𝑟 (𝑥,𝑦) 𝑍 𝑢,𝑣 = 𝐹 𝑖 𝑢,𝑣 + 𝐹 𝑟 (𝑢,𝑣) Fourier transformation of input signal Let, 𝐻(𝑢,𝑣)= the filer to be applied on 𝑍 𝑢,𝑣 , then 𝑆 𝑢,𝑣 = 𝐻(𝑢,𝑣)𝐹 𝑖 𝑢,𝑣 + 𝐻(𝑢,𝑣)𝐹 𝑟 (𝑢,𝑣) Transformed image After Inverse Fourier Transformation 𝑠 𝑥,𝑦 = 𝑓′ 𝑖 𝑥,𝑦 + 𝑓 ′ 𝑟 𝑥,𝑦 ⇒𝑔 𝑥,𝑦 = exp 𝑓 𝑖 ′ 𝑥,𝑦 .exp⁡[ 𝑓 𝑟 ′ (𝑥,𝑦)]

Homomorphic Filter Design Images: Gonzalez & Woods, 3rd edition Homomorphic Filter Design 𝛾 𝐿 <1; 𝛾 𝐻 >1

Images: Gonzalez & Woods, 3rd edition Example

Thank you Next Lecture: Image Restoration