1 CMPB 345: IMAGE PROCESSING DISCRETE TRANSFORM 2.

Slides:



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

Spatial Filtering (Chapter 3)
Image Processing Lecture 4
Frequency Domain Filtering (Chapter 4)
Digital Image Processing
Image Enhancement in the Frequency Domain Part III
Fourier Transform (Chapter 4)
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Enhancement in Frequency Domain.
Chap 4 Image Enhancement in the Frequency Domain.
ECE 472/572 - Digital Image Processing Lecture 5 - Image Enhancement - Frequency Domain Filters 09/13/11.
Digital Image Processing
Lecture05 Transform Coding.
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
Chap 4-2. Frequency domain processing Jen-Chang Liu, 2006.
3. Introduction to Digital Image Analysis
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
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.
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain.
Image Enhancement in the Frequency Domain Part I Image Enhancement in the Frequency Domain Part I Dr. Samir H. Abdul-Jauwad Electrical Engineering Department.
Preprocessing ROI Image Geometry
Image Enhancement.
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.
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.
Lecture 29 Review: Frequency response Frequency response examples Frequency response plots & signal spectra Filters Related educational materials: –Chapter.
02/12/02 (c) 2002 University of Wisconsin, CS 559 Filters A filter is something that attenuates or enhances particular frequencies Easiest to visualize.
Chapter 2. Image Analysis. Image Analysis Domains Frequency Domain Spatial Domain.
Presentation Image Filters
Introduction to Image Processing
The Wavelet Tutorial: Part3 The Discrete Wavelet Transform
Medical Image Analysis Image Enhancement Figures come from the textbook: Medical Image Analysis, by Atam P. Dhawan, IEEE Press, 2003.
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.
1 Chapter 5 Image Transforms. 2 Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post Processing Scaling.
Filtering Robert Lin April 29, Outline Why filter? Filtering for Graphics Sampling and Reconstruction Convolution The Fourier Transform Overview.
Part I: Image Transforms DIGITAL IMAGE PROCESSING.
Digital Image Processing CSC331 Image Enhancement 1.
Image processing Fourth lecture Image Restoration Image Restoration: Image restoration methods are used to improve the appearance of an image.
ENG4BF3 Medical Image Processing Image Enhancement in Frequency Domain.
DCT.
Digital Image Processing (Digitaalinen kuvankäsittely) Exercise 2
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.
Dr. Scott Umbaugh, SIUE Discrete Transforms.
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
Practical Image Processing1 Chap7 Image Transformation  Image and Transformed image Spatial  Transformed domain Transformation.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering March 9, 2004 Prof. Charlene Tsai.
Fourier Transform.
Computer Graphics & Image Processing Chapter # 4 Image Enhancement in Frequency Domain 2/26/20161.
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.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Fourier Transform (Chapter 4) CS474/674 – Prof. Bebis.
Digital Image Processing , 2008
Spatial & Frequency Domain
Image Enhancement in the
Fourier Transform.
ENG4BF3 Medical Image Processing
4. Image Enhancement in Frequency Domain
Digital Image Procesing Unitary Transforms Discrete Fourier Trasform (DFT) in Image Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
Lecture 4 Image Enhancement in Frequency Domain
Presentation transcript:

1 CMPB 345: IMAGE PROCESSING DISCRETE TRANSFORM 2

2 FILTERING n We may want to modify the resulting spectrum after an image has been transformed into the frequency/sequency domain. n High frequency information can be removed with a lowpass filter (effect of blurring an image). n Low frequency information can be removed with a highpass filter (tend to sharpen an image). n Bandpass filtering is to extract the frequency information in specific parts of the spectrum. n Bandreject filtering is to eliminate specific parts of the spectrum (e.g. to remove unwanted noise). n After we have transform the image into frequency or sequency domain, we may want to modify the resulting spectrum before apply any filtering to the image. n 2 types of spectral symmetries result from taking the continuous functions & sampling them to develop the discrete transform:

3 (a) FOURIER TRANSFORM IMPLIED SYMMETRY n WE repeat the discrete NxN spectrum in all directions to infinity. n The frequency in the spectral components only increasing up to N/2 and then decreases due to periodicity and conjugate symmetry properties of the Fourier transform. n The origin of the spectrum is often shifted to the center for display & filtering purposes. This shifting is done by using a property of the Fourier transform called the frequency translation property by multiply the original image I(r,c) by (-1) r+c before we perform the transformation. n Human Visual System give more responds to brightness. So we need to log-remapped the original image which has been shifted to the center by using this formula.:- –log(u,v) = k log [ 1+|F(u,v)| ]

4 (a) FOURIER TRANSFORM IMPLIED SYMMETRY n The advantage of this formula is: (a) It will compress the data into lower range (b) It will remap the dynamic range of the Fourier spectrum which is greater than 256 gray levels (8 bits) into the range, k will control the range. n Example: (k=4) = 4 log [ 1 + | -300 | ] = 4 log [ ] F(u,v)= 4 log 301 = 4(2.4786) = 9.91

5 (b) COSINE TRANSFORM IMPLIED SYMMETRY n The spectrum is folded about the origin, creating a 2Nx2N pattern. The frequency increases  from the origin outward & thus we do not have to shift it to the center (half of the frequency information will lost if we do so). n The Walsh-Hadamard Transform also exhibit increasing sequency from the origin outward.

6 FILTERING METHODS

7 LOWPASS FILTER n Tend to visually blur images, considered an enhancement because it imparts a softer effect to the image. n Pass low frequencies & attenuate/eliminate the high frequency information. n Used for image compression or for hiding effects caused by noise. n Using the below equation: I(r,c) = T -1 [ T(u,v) H(u,v) ] I (r,c) = The filtering image T(u,v) = The transform H(u,v) = The filter function

8 IDEAL LOWPASS FILTER n It is called ideal because the transition from the passband to the stopband in the filter is perfect (it goes from 0 to 1 instantly). H(u,v) only have the value 1’s and 0’s. n The frequency at which we start to eliminate the information is called the cutoff frequency. n The frequencies in the spectrum that are not filtered out are in the passband while the spectral components that do get filtered out are in the stopband. n However, ideal filter leaves undesirable artifacts in images. n This artifact appears in the lowpass filtered image as ripples/waves, wherever there is a boundary in the image. n This problem can be avoided by using a “nonideal filter” which does not have perfect transition.

9 NONIDEAL LOWPASS FILTER n To overcome the problems in ideal filter. n Makes the image become smoother. n One of the nonideal types is called the Butterworth Filter. n With this, the order of the filter can be specified which determines how steep the slope is in the transition of the filter function. n Higher order to the filter create steeper slope & the closer we get to an ideal filter.

10 HIGHPASS FILTER n Passes only high frequency information corresponding to places where gray levels are changing rapidly. n Used for edge enhancement. n The function for a special type of highpass filter, called a high- frequency emphasis filter, is to retain some of the low frequency information by adding an offset value to the function, so we do not lose the overall image info. n The contrast will be added back to the image after using the high-frequency emphasis filter. n Greater offset will give a sharper image.

11 BANDPASS, BANDREJECT & NOTCH FILTER n Bandpass & Bandreject are specified by two cutoff frequencies, low cutoff & high cut off frequencies. n These filters can be modified into nonideal filters by making the transitions gradual (steeper slope) at the cutoff frequencies. n A special form of these filters is called a notch filter because it only notches out or passes specific frequencies. n These 3 types of filters are used in image restoration, enhancement & compression. n The example of these 3 filters can be referred to page 124 in the text book.

12 WAVELET TRANSFORM

13 WHAT IS WAVELET TRANSFORM ? The most common model for a wavelet transform uses the Fourier transform and highpass and lowpass filters.  Wavelet Transform contain both spatial and frequency information.  A transformation of an image which has its basis functions shifted and expanded  The filters must be perfect resolution filters (distortion that exist would be canceled in the inverse transform) in order to satisfy the conditions of the wavelet transform.

14 WHY WAVELET ? n The Wavelet Transform is sufficient for most practical applications and for reconstruction of the signal. n The Wavelet Transform provides enough information, and offers an enormous reduction in the computation time. n The Wavelet Transform is considerably easier to implement when compared to the continuous wavelet transform.

15 WHEN TO USE WAVELET ? n We can use Wavelet Transform for image compression when we want to conserve time and space when handling large images.

16 HOW DOES WAVELET WORK ? n The Wavelet Transform breaks an image into four subsampled images. n Subsampled by keeping every other pixel. n Results in an image which has been highpass filtered both vertically and horizontally, one that has bees lowpass both vertically and horizontally, one which has bee highpass on the vertical side and lowpass on the horizontal side and one that has been lowpass on the vertical side and highpass on the horizontal side n Transform implemented in the spatial domain using 1-D convolution filters. n Circular convolution is a special type of convolution used in order to perform wavelet transformation

17 CIRCULAR CONVOLUTION n Take the underlying image array and extend it in a periodic manner to match the symmetry implied by the discrete Fourier transform. n Convolution starts with the origin of the image and the mask aligned so that the first value contains contributions from the “previous” copy of the extended image. n Last value contains contributions from “next” copy of the extended, periodic image.

18 XXX XXX XXX a. Extended, periodic image (x = origin)

19 b. Extended, periodic 1-D convolution filter (x = origin) One period Center of filter

20 Previous period Period Of interest Next period c. With circular convolution, the outer rows and columns include products of both previous and next periods. X

21 WAVELET USING HAAR FILTERS Example: Lowpass: 1/√2 [X 1 X 2 ] Highpass: 1/√2 [X 1 -X 2 ] n To use the Haar Basis vector to implement the wavelet transform, it must be zero padded to the same size as the subimage (in this case four). n The origin of the basis vector is define in the center, corresponding to the value to the right of the center

22 n Form the example above if we want to implement the Haar basis vector we have to zero pads the vectors to have a length of four. Lowpass: 1/√2 [X 1 X 2 0 0] Highpass: 1/√2 [X 1 -X 2 0 0] Origin  Take note that after the vector has been zero-padded on the right the origin is no longer to the right of the center. The origin is determined before zero padding.

23 WAVELET USING DAUBECHIES FILTER An example of Daubechies basis vectors : LOWPASS : 1/4√2[ 1+√3, 3+√3, 3-√3, 1-√3] HIGHPASS : 1/4√2[ 1-√3, √3-3, 3+√3, -1-√3]

24 n The basis vector has to be zero padded to be the same size as the sub image. n If an image is divided into 8 X 8 blocks : LOWPASS : 1/4√2[ 1+√3, 3+√3, 3-√3, 1-√3, 0, 0, 0, 0] HIGHPASS : 1/4√2[ 1-√3, √3-3, 3+√3, -1-√3, 0, 0, 0, 0] ORIGIN

25 n Because these are assumed circular convolution, we could zero pad equally on both ends. LOWPASS : 1/4√2[0, 0, 1+√3, 3+√3, 3-√3, 1-√3, 0, 0] HIGHPASS : 1/4√2[0, 0, 1-√3, √3-3, 3+√3, -1-√3, 0, 0] ORIGIN