Question: Implement gaussian _ filter.m , use hsize = 9 , sigma = 4 , and save the image as gaussian _ 9 . jpg Please

Implement gaussian_filter.m, use hsize =9, sigma =4, and save the image as
gaussian_9.jpg
Please do this in MatLab using the pseudocode below. Gaussian Filter needs to be used.
Results can be compared using I = imfilter(img, H);
guassian_filter.m
function output = gaussian_filter(img, hsize, sigma)
H = fspecial('gaussian', hsize, sigma);
% YOUR CODE HERE
end
lab03.m
%% Gaussian filter
hsize =9; sigma =4;
img_gaussian = gaussian_filter(img, hsize, sigma);
figure, imshow(img_gaussian);
imwrite(img_gaussian, 'gaussian_9.jpg');

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!