SlideShare una empresa de Scribd logo
1 de 5
ASSIGNMENT 3
(FOURIER)
NAME : MUHAMAD AMINUDDIN BIN MOHD JAMAL
MATRIC NO : 2200255
CLASS : 3TSI
LECTURER : PROF MADYA TS DR. SUZAIMAH BTE RAMLI
1. Give three(3) steps to filter an image in the frequency domain
All frequency filters can also be implemented in the spatial domain and, if there exists
a simple kernel for the desired filter effect, it is computationally less expensive to
perform the filtering in the spatial domain. Frequency filtering is more appropriate if
no straightforward kernel can be found in the spatial domain, and may also be more
efficient.
1. Compute F(u,v) the Discrete Fourier transform (DFT) of the Image.
2. Multiply F(u,v) by a filter function H(u,v)
3. Compute the inverse Discrete Fourier Transform of the result.
2. Figure 1 show an image and it’s Fourier spectrum and a series of ideal low
pass filters of radius 5, 15, 30, 80 and 230 superimposed on top of it. Give
your justification on the result of filtering with ideal low pass filter of radius 5
and ideal low pass filter of radius 230.
An ideal low pass filter is the one which transmits all the signal of frequencies less
than a certain frequency ωc radians per second without any distortion and blocks all
the signals of frequencies above ωc radians per second. Where, the frequency ωc
radians per second is called the cut-off frequency.
Simply cut off all high frequency components that are a specified distance D0 from
the origin of the transform. changing the distance changes the behaviour of the filter
The transfer function for the ideal low pass filter can be given as:
where D(u,v) is given as:
This is the result of the filtering with ideal low pass filter of radius 5
This is the result of the filtering with ideal low pass filter of
radius 230.
Figure 1
3. Run this Matlab Code by used any image with this specification:
a. Only 1 object/person in the image with no background
b. Only 1 object/person in the image with scenery background
c. More than 2 object in the image with scenery background
d. More than 2 object + noise(refer Slide 35: Chap 3, Fourier)
- Explain what the output you get and what are the differences between a,b and c.
clear all
%I=zeros(10);
I= imread('D:qqqrrrxx.jpg')
%I=
imread('D:BackupACERJul2019DataBackupJun2019BackupNotbkSu_Jan2010Kerja
HusnaInkedOIPicture_LI3.jpg')
figure(3), imshow(I)
I=rgb2gray(I);
[r, c] = size(I)
%imshow(I);
for i=1:r
X(i,:) = fft(I(i,:));
end
for j=1:c
Y(:,j) = fft(X(:,j));
end
figure(1), imshow(I)
M=Y;
M=fftshift(M);
Ab=abs(M);
Ab = (Ab-min(min(Ab)))./(max(max(Ab))).*255;
figure(2),imshow(Ab)
a.
b.
c.

Más contenido relacionado

Similar a Assignment 3Fourier.docx

Digital Image Processing_ ch3 enhancement freq-domain
Digital Image Processing_ ch3 enhancement freq-domainDigital Image Processing_ ch3 enhancement freq-domain
Digital Image Processing_ ch3 enhancement freq-domain
Malik obeisat
 
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
Shajun Nisha
 

Similar a Assignment 3Fourier.docx (20)

Frequency Domain Filtering 1.ppt
 Frequency Domain Filtering 1.ppt Frequency Domain Filtering 1.ppt
Frequency Domain Filtering 1.ppt
 
Digital Image Processing_ ch3 enhancement freq-domain
Digital Image Processing_ ch3 enhancement freq-domainDigital Image Processing_ ch3 enhancement freq-domain
Digital Image Processing_ ch3 enhancement freq-domain
 
Comparative analysis of filters and wavelet based thresholding methods for im...
Comparative analysis of filters and wavelet based thresholding methods for im...Comparative analysis of filters and wavelet based thresholding methods for im...
Comparative analysis of filters and wavelet based thresholding methods for im...
 
Filtering an image is to apply a convolution
Filtering an image is to apply a convolutionFiltering an image is to apply a convolution
Filtering an image is to apply a convolution
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
IMPROVEMENT OF BM3D ALGORITHM AND EMPLOYMENT TO SATELLITE AND CFA IMAGES DENO...
IMPROVEMENT OF BM3D ALGORITHM AND EMPLOYMENT TO SATELLITE AND CFA IMAGES DENO...IMPROVEMENT OF BM3D ALGORITHM AND EMPLOYMENT TO SATELLITE AND CFA IMAGES DENO...
IMPROVEMENT OF BM3D ALGORITHM AND EMPLOYMENT TO SATELLITE AND CFA IMAGES DENO...
 
IMPROVEMENT OF BM3D ALGORITHM AND EMPLOYMENT TO SATELLITE AND CFA IMAGES DENO...
IMPROVEMENT OF BM3D ALGORITHM AND EMPLOYMENT TO SATELLITE AND CFA IMAGES DENO...IMPROVEMENT OF BM3D ALGORITHM AND EMPLOYMENT TO SATELLITE AND CFA IMAGES DENO...
IMPROVEMENT OF BM3D ALGORITHM AND EMPLOYMENT TO SATELLITE AND CFA IMAGES DENO...
 
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
 
A HYBRID DENOISING APPROACH FOR SPECKLE NOISE REDUCTION IN ULTRASONIC B-MODE ...
A HYBRID DENOISING APPROACH FOR SPECKLE NOISE REDUCTION IN ULTRASONIC B-MODE ...A HYBRID DENOISING APPROACH FOR SPECKLE NOISE REDUCTION IN ULTRASONIC B-MODE ...
A HYBRID DENOISING APPROACH FOR SPECKLE NOISE REDUCTION IN ULTRASONIC B-MODE ...
 
A HYBRID DENOISING APPROACH FOR SPECKLE NOISE REDUCTION IN ULTRASONIC B-MODE...
A HYBRID DENOISING APPROACH FOR SPECKLE NOISE  REDUCTION IN ULTRASONIC B-MODE...A HYBRID DENOISING APPROACH FOR SPECKLE NOISE  REDUCTION IN ULTRASONIC B-MODE...
A HYBRID DENOISING APPROACH FOR SPECKLE NOISE REDUCTION IN ULTRASONIC B-MODE...
 
Cg36496501
Cg36496501Cg36496501
Cg36496501
 
Lc3618931897
Lc3618931897Lc3618931897
Lc3618931897
 
Dsp book ch15
Dsp book ch15Dsp book ch15
Dsp book ch15
 
Ieee 802.20 working group on mobile broadband wireless access
Ieee 802.20 working group on mobile broadband wireless accessIeee 802.20 working group on mobile broadband wireless access
Ieee 802.20 working group on mobile broadband wireless access
 
Comparisons of adaptive median filter based on homogeneity level information ...
Comparisons of adaptive median filter based on homogeneity level information ...Comparisons of adaptive median filter based on homogeneity level information ...
Comparisons of adaptive median filter based on homogeneity level information ...
 
07 frequency domain DIP
07 frequency domain DIP07 frequency domain DIP
07 frequency domain DIP
 
IMAGE DENOISING BY MEDIAN FILTER IN WAVELET DOMAIN
IMAGE DENOISING BY MEDIAN FILTER IN WAVELET DOMAINIMAGE DENOISING BY MEDIAN FILTER IN WAVELET DOMAIN
IMAGE DENOISING BY MEDIAN FILTER IN WAVELET DOMAIN
 
Unit3 dip
Unit3 dipUnit3 dip
Unit3 dip
 
Design of an Adaptive Hearing Aid Algorithm using Booth-Wallace Tree Multiplier
Design of an Adaptive Hearing Aid Algorithm using Booth-Wallace Tree MultiplierDesign of an Adaptive Hearing Aid Algorithm using Booth-Wallace Tree Multiplier
Design of an Adaptive Hearing Aid Algorithm using Booth-Wallace Tree Multiplier
 
W4101139143
W4101139143W4101139143
W4101139143
 

Último

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Último (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 

Assignment 3Fourier.docx

  • 1. ASSIGNMENT 3 (FOURIER) NAME : MUHAMAD AMINUDDIN BIN MOHD JAMAL MATRIC NO : 2200255 CLASS : 3TSI LECTURER : PROF MADYA TS DR. SUZAIMAH BTE RAMLI
  • 2. 1. Give three(3) steps to filter an image in the frequency domain All frequency filters can also be implemented in the spatial domain and, if there exists a simple kernel for the desired filter effect, it is computationally less expensive to perform the filtering in the spatial domain. Frequency filtering is more appropriate if no straightforward kernel can be found in the spatial domain, and may also be more efficient. 1. Compute F(u,v) the Discrete Fourier transform (DFT) of the Image. 2. Multiply F(u,v) by a filter function H(u,v) 3. Compute the inverse Discrete Fourier Transform of the result. 2. Figure 1 show an image and it’s Fourier spectrum and a series of ideal low pass filters of radius 5, 15, 30, 80 and 230 superimposed on top of it. Give your justification on the result of filtering with ideal low pass filter of radius 5 and ideal low pass filter of radius 230.
  • 3. An ideal low pass filter is the one which transmits all the signal of frequencies less than a certain frequency ωc radians per second without any distortion and blocks all the signals of frequencies above ωc radians per second. Where, the frequency ωc radians per second is called the cut-off frequency. Simply cut off all high frequency components that are a specified distance D0 from the origin of the transform. changing the distance changes the behaviour of the filter The transfer function for the ideal low pass filter can be given as: where D(u,v) is given as: This is the result of the filtering with ideal low pass filter of radius 5 This is the result of the filtering with ideal low pass filter of radius 230.
  • 4. Figure 1 3. Run this Matlab Code by used any image with this specification: a. Only 1 object/person in the image with no background b. Only 1 object/person in the image with scenery background c. More than 2 object in the image with scenery background d. More than 2 object + noise(refer Slide 35: Chap 3, Fourier) - Explain what the output you get and what are the differences between a,b and c. clear all %I=zeros(10); I= imread('D:qqqrrrxx.jpg') %I= imread('D:BackupACERJul2019DataBackupJun2019BackupNotbkSu_Jan2010Kerja HusnaInkedOIPicture_LI3.jpg') figure(3), imshow(I) I=rgb2gray(I); [r, c] = size(I) %imshow(I); for i=1:r X(i,:) = fft(I(i,:)); end for j=1:c Y(:,j) = fft(X(:,j)); end figure(1), imshow(I) M=Y; M=fftshift(M); Ab=abs(M); Ab = (Ab-min(min(Ab)))./(max(max(Ab))).*255; figure(2),imshow(Ab)