Professional Documents
Culture Documents
Experiment 11
Experiment 11
Experiment 11
Objective: In this experiment, student should be able to understand the formula to perform high boost
filtering of an image.
PEO to be achieved:
Pre Lab/ Prior Concepts: Basic MATLAB knowledge of the standard formula to obtain High Boost
filter.
______________________________________________________________________________________
Historical Profile:
1816 – It is often desirable to emphasize high frequency components representing the image details (by
means such as sharpening) without eliminating low frequency components representing the basic form of
the signal. In this case, the high-boost filter can be used to enhance high frequency component while still
keeping the low frequency components.
New Concepts to be learned: How to pass very high frequencies and also consider lower ones.
Flow Chart:
Start
Stop
Stepwise Procedure:
1. Open Matlab software
2. Goto New Script
3. Write the program code given below.
4. Save the code with an “.m” extension.
5. Run the code to get the output.
Program Code:
clc;
clear all;
a=imread('cameraman.tif');
A=input('Enter value of A : ');
X=9*A-1;
[x y]=size(a);
w=[-1 -1 -1 -1 X -1 -1 -1 -1]/9;
for m=2:x-1
for n=2:y-1
c(m,n)=w(1)*a(m-1,n-1)+w(2)*a(m-1,n)+w(3)*a(m-1,n+1)+w(4)*a(m,n-1)+w(5)*a(m,n)
+w(6)*a(m,n+1)+w(7)*a(m+1,n-1)+w(8)*a(m+1,n)+w(9)*a(m+1,n+1);
end
end
subplot(1,2,1);
imshow(a);
Experiment 11 10-244
subplot(1,2,2);
imshow(c);
Output:
A=1
A=2
Experiment 11 10-244
A=4
A=9
Experiment 11 10-244
Conclusion: Therefore we obtained a sharper and slightly smoother image from the current
image.
Viva Questions:
1. What is the relation between high pass filter and high boost filter
High Boost = High Pass + ( A – 1 ) Original
1/9
-1 -1 -1
-1 X -1
X= -1 -1 -1 9A - 1
_________________________________________________________________________
_______