Image Sharpening Using Matlab Code

A=imread('lenna.png');

B=rgb2gray(A);


A_sharpen_1=imsharpen(B,'Amount',0.5);

A_sharpen_2=imsharpen(B,'Amount',1);

A_sharpen_3=imsharpen(B,'Amount',2);

% Plotting the output Images
subplot (2,2,1)
 imshow(B), title ('Origional Image');
subplot(2,2,2)
imshow(A_sharpen_1), title ('sharpen image by factor 0.5');
subplot(2,2,3)
 imshow(A_sharpen_2), title ('sharpen image by factor 1');
subplot (2,2,4)
imshow(A_sharpen_3), title ('sharpen image by factor 2');

Comments

Popular Posts