Digital Image Processing CSC331 Image Enhancement 1.

Slides:



Advertisements
Similar presentations
Spatial Filtering (Chapter 3)
Advertisements

Lecture 6 Sharpening Filters
Frequency Domain Filtering (Chapter 4)
Digital Image Processing
Image Enhancement in the Frequency Domain Part III
Image processing (spatial &frequency domain) Image processing (spatial &frequency domain) College of Science Computer Science Department
Chap 4 Image Enhancement in the Frequency Domain.
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Digital Image Processing
Digtial Image Processing, Spring ECES 682 Digital Image Processing Oleh Tretiak ECE Department Drexel University.
Chapter 4 Image Enhancement in the Frequency Domain.
CHAPTER 4 Image Enhancement in Frequency Domain
Image Enhancement in the Frequency Domain Part III Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Chap 4-2. Frequency domain processing Jen-Chang Liu, 2006.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain.
Image Enhancement.
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.
DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
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
Medical Image Analysis Image Enhancement Figures come from the textbook: Medical Image Analysis, by Atam P. Dhawan, IEEE Press, 2003.
Digital Image Processing CCS331 Basic Transformations 1.
Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain.
Digital Image Processing CCS331 Image Interpolation 1.
Digital Image Processing CCS331
Image Processing © 2002 R. C. Gonzalez & R. E. Woods Lecture 4 Image Enhancement in the Frequency Domain Lecture 4 Image Enhancement.
Chapter 7: The Fourier Transform 7.1 Introduction
Digital Image Processing CCS331 Relationships of Pixel 1.
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, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Background Any function that periodically repeats itself.
Digital Image Processing DIGITIZATION. Summery of previous lecture Digital image processing techniques Application areas of the digital image processing.
ENG4BF3 Medical Image Processing Image Enhancement in Frequency Domain.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain 22 June 2005 Digital Image Processing Chapter 4: Image Enhancement in the.
Digital Image Processing CSC331 Image restoration 1.
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.
University of Ioannina - Department of Computer Science Filtering in the Frequency Domain (Application) Digital Image Processing Christophoros Nikou
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 15/16 – TP7 Spatial Filters Miguel Tavares Coimbra.
Fourier Transform.
Digital Image Processing CSC331 Image Enhancement 1.
Image Enhancement (Frequency Domain)
Frequency Domain By Dr. Rajeev Srivastava. Image enhancement in the frequency domain is straightforward. We simply compute the Fourier transform of the.
Dr. Abdul Basit Siddiqui FUIEMS. QuizTime 30 min. How the coefficents of Laplacian Filter are generated. Show your complete work. Also discuss different.
Digital Image Processing CSC331 Image restoration 1.
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.
Digital Image Processing CSC331
Frequency Domain Filtering. Frequency Domain Methods Spatial Domain Frequency Domain.
Digital Image Processing Lecture 7: Image Enhancement in Frequency Domain-I Naveed Ejaz.
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.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Digital Image Processing , 2008
Miguel Tavares Coimbra
IMAGE ENHANCEMENT IN THE FREQUENCY DOMAIN
IMAGE PROCESSING FREQUENCY DOMAIN PROCESSING
Digital Image Processing CSC331
Spatial & Frequency Domain
Gaussian Lowpass Filter
Image Enhancement in the
Digital Image Processing
Image Enhancement in the Frequency Domain Part I
Image Enhancement (Frequency Domain)
ENG4BF3 Medical Image Processing
4. Image Enhancement in Frequency Domain
Filtering in the Frequency Domain
Lecture 4 Image Enhancement in Frequency Domain
Presentation transcript:

Digital Image Processing CSC331 Image Enhancement 1

Summery of previous lecture First order derivatives using the gradient operator Shobel operator using first order derivatives What are Edges in image? Modeling intensity changes Steps of edge detection 2

Todays lecture Frequency domain Filters Ideal Lowpass Filters Butterworth Highpass Filters Gaussian Highpass Filters The Laplacian in the Frequency Domain High boost filtering Homomorphic Filtering 3

Background Any function that periodically repeats itself can be expressed as the sum of sines and/or cosines of different frequencies, each multiplied by a different coefficient (Fourier series). Even functions that are not periodic (but whose area under the curve is finite) can be expressed as the integral of sines and/or cosines multiplied by a weighting function (Fourier transform).

Background The frequency domain refers to the plane of the two dimensional discrete Fourier transform of an image. The purpose of the Fourier transform is to represent a signal as a linear combination of sinusoidal signals of various frequencies.

Introduction to the Fourier Transform and the Frequency Domain Introduction to the Fourier Transform and the Frequency Domain The one-dimensional Fourier transform and its inverse – Fourier transform (continuous case) – Inverse Fourier transform: The two-dimensional Fourier transform and its inverse – Fourier transform (continuous case) – Inverse Fourier transform:

Introduction to the Fourier Transform and the Frequency Domain Introduction to the Fourier Transform and the Frequency Domain The one-dimensional Fourier transform and its inverse – Fourier transform (discrete case) DTC – Inverse Fourier transform:

8 Frequency Domain Methods Spatial DomainFrequency Domain

9 Major filter categories Typically, filters are classified by examining their properties in the frequency domain: (1) Low-pass (2) High-pass (3) Band-pass (4) Band-stop

10 Example Original signal Low-pass filtered High-pass filtered Band-pass filtered Band-stop filtered

11

Frequency Domain Methods 12

13

Low pass filter functions left hand side: frequency domain filter H (u) as a function of u right hand side: spatial domain filter h (x) which is a function of x. filter H (u) as a function of u in the frequency domain, the corresponding filter h (x) in the spatial domain, will have all positive values. A low-pass filter leaves the low frequencies alone. We expect a low-pass filter to smooth the image. This is good for removing noise, but blurs the image. 14

Low pass filter Mask 15

16

17

high pass filters in the Gaussian domain A high-pass filter leaves the high frequencies alone. We expect a high-pass filter to sharpen the edges. This is good for edge detection. 18

Plot high pass filter The plot in the frequency domain, shows the high pass filter in the frequency domain. It attenuate the low frequency components whereas it will pass the high frequency components and the corresponding filter in the spatial domain is in form of h (x) as the function of x. The function h (x) can be positive as well as negative; In the spatial domain, the Laplacian operator is of similar nature. 19

Laplacian mask as a high pass filtering 20

21

22

Correspondence between Filtering in the Spatial and Frequency Domain Correspondence between Filtering in the Spatial and Frequency Domain

Correspondence between Filtering in the Spatial and Frequency Domain Correspondence between Filtering in the Spatial and Frequency Domain One very useful property of the Gaussian function is that both it and its Fourier transform are real valued; there are no complex values associated with them. In addition, the values are always positive. So, if we convolve an image with a Gaussian function, there will never be any negative output values to deal with. There is also an important relationship between the widths of a Gaussian function and its Fourier transform. If we make the width of the function smaller, the width of the Fourier transform gets larger. This is controlled by the variance parameter  2 in the equations. These properties make the Gaussian filter very useful for lowpass filtering an image. The amount of blur is controlled by  2. It can be implemented in either the spatial or frequency domain. Other filters besides lowpass can also be implemented by using two different sized Gaussian functions.

Basic model for filtering operation 25

Ideal Lowpass Filters (ILPFs)

Ideal Lowpass Filters

Butterworth Lowpass Filters (BLPFs) With order n Butterworth Lowpass Filters (BLPFs) With order n

Butterworth Lowpass Filters (BLPFs) n=2 D 0 =5,15,30,80,and 230

Butterworth Lowpass Filters (BLPFs) Spatial Representation Butterworth Lowpass Filters (BLPFs) Spatial Representation n=1 n=2 n=5 n=20

Gaussian Lowpass Filters (FLPFs)

Gaussian Lowpass Filters (FLPFs) D 0 =5,15,30,80,and 230

Additional Examples of Lowpass Filtering

Sharpening Frequency Domain Filter Ideal high pass filter Sharpening Frequency Domain Filter Ideal high pass filter Butterworth highpass filter Gaussian highpass filter

Highpass Filters Spatial Representations Highpass Filters Spatial Representations

Ideal Highpass Filters

Butterworth Highpass Filters

Gaussian Highpass Filters

The Laplacian filter Shift the center: The Laplacian in the Frequency Domain Frequency domain Spatial domain

For display purposes only

High boost filtering 43

High boost filtering results 44

Homomorphic filtering Many times, we want to remove shading effects from an image (i.e., due to uneven illumination) – Enhance high frequencies – Attenuate low frequencies but preserve fine detail.

Homomorphic Filtering (cont’d) Consider the following model of image formation: In general, the illumination component i(x,y) varies slowly and affects low frequencies mostly. In general, the reflection component r(x,y) varies faster and affects high frequencies mostly. i(x,y): illumination r(x,y): reflection IDEA: separate low frequencies due to i(x,y) from high frequencies due to r(x,y)

How are frequencies mixed together? When applying filtering, it is difficult to handle low/high frequencies separately. Low and high frequencies from i(x,y) and r(x,y) are mixed together.

Can we separate them? Idea: Take the ln( ) of

Steps of Homomorphic Filtering (1) Take (2) Apply FT: or (3) Apply H(u,v)

Steps of Homomorphic Filtering (cont’d) (4) Take Inverse FT: or (5) Take exp( ) or

Example using high-frequency emphasis Attenuate the contribution made by illumination and amplify the contribution made by reflectance

Homomorphic Filtering: Example

Summery of the lecture Frequency domain Filters Ideal Lowpass Filters Butterworth Highpass Filters Gaussian Highpass Filters The Laplacian in the Frequency Domain High boost filtering Homomorphic Filtering 54

References Prof.P. K. Biswas Department of Electronics and Electrical Communication Engineering Indian Institute of Technology, Kharagpur Gonzalez R. C. & Woods R.E. (2008). Digital Image Processing. Prentice Hall. Forsyth, D. A. & Ponce, J. (2011).Computer Vision: A Modern Approach. Pearson Education. 55