# High Pass Filter in Frequency Domain

The high pass filter can be obtained from low pass filter in frequency domain by,

Don't use plagiarized sources. Get Your Custom Essay on
High Pass Filter in Frequency Domain
Just from \$9/Page

Apply the high pass filter to the â€œimg03.jpgâ€ and report what you get.

The code for Ideal High pass filter is given below where the values for D0 can be easily modified.

%% Ideal High Pass Filter

clc

clear all;

close all;

I = imread(â€˜img03.jpgâ€™); %% Reading Input Image

[m,n]=size(I); %% finding size of image and stroing in m and n

D0 = 5;%% CHANGE the distance parameter and observe the result

[u,v]=dftuv(m,n);%%

d= sqrt(u.^2 + v.^2);%% Calculating the distance

Lfilt = double(d <= D0);%% Creating filter as defined

Hfilt = 1-Lfilt;%% Generating High pass filter from low pass filter

Hfilt_s = fftshift(Hfilt);%% Shitfing the DC componnet to centre

Iff = fft2(I);%% Fourier Transform of the image

Rf = Iff.*Hfilt; %Multiplying filter with the image both are in Fourier Domain

R = ifft2(Rf); % Inverse fourier transfrom of the above filtered image

figure

% Displaying the original image

subplot (2,2,2); imshow(I);title(â€˜Original Imageâ€™)

% Displaying the final result

subplot (2,2,4); imshow(R,[]);title(â€˜Resultant Image after Filteringâ€™)

% Displaying the mesh plot of filter tranfer function

subplot (2,2,[1,3]); mesh(Hfilt_s);title(â€˜Filter Mesh Plot D0 = 5â€™)

## Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
\$26
The price is based on these factors:
Number of pages
Urgency
Basic features
• Free title page and bibliography
• Unlimited revisions
• Plagiarism-free guarantee
• Money-back guarantee
On-demand options
• Writer’s samples
• Part-by-part delivery
• Overnight delivery
• Copies of used sources
Paper format
• 275 words per page
• 12 pt Arial/Times New Roman
• Double line spacing
• Any citation style (APA, MLA, Chicago/Turabian, Harvard)

# Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

### Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

### Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

### Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.