The high pass filter can be obtained from low pass filter in frequency domain by,
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’)
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.
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.
Read moreEach 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.
Read moreThanks 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.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more