Image Processing

%Image Processing
%Use of imfilter
f=imread('fig3.jpg');
f=double(f);
[m,n]=size(f);
filter=[1 1 1
        1 -8 1
        1 1 1]
  
g=imfilter(f,filter);

f=mat2gray(f);
g=mat2gray(g);

subplot(2,2,1),imshow(f),title('input image');  
 subplot(2,2,2),imshow(g),title('sharp'); 
Previous Post Next Post