Experiment 11

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 5

Experiment 11 10-244

Title: To implement High Boost filter.

Estimated time to complete this experiment: 2 hours

Objective: In this experiment, student should be able to understand the formula to perform high boost
filtering of an image.

PEO to be achieved:

Expected Outcome of Experiment:


Obtaining sharper as well as slightly smoother image from the current image.

Books/ Journals/ Websites referred:


 http://www.mathworks.in/help/matlab/

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.

Software & Hardware Required: MATLAB software and PC Hardware


Experiment 11 10-244

Flow Chart:

Start

Read the image in an object

Use given formulae to sharpen and


smoothen the original image

Plot the image

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.

Real Life Application:


Sharpening as well as smoothening of poor quality images.
_________________________________________________________________________
_______

Viva Questions:

1. What is the relation between high pass filter and high boost filter
 High Boost = High Pass + ( A – 1 ) Original

2. What is the basic use of high boost filter?


 It is used to highlight the high frequency components and retain some part of the low
frequency region.
3. What is the mask in high boost filter?
 The mask used in high boost filter is,

1/9

-1 -1 -1
-1 X -1
X= -1 -1 -1 9A - 1
_________________________________________________________________________
_______

You might also like