I am trying to sharpen an image by designing a Gaussian High-Pass Filter. I would like to do this using the fact that the high-pass filter is equivalent to the identity matr
I= imread('peppers.png'); % read image H = padarray(2,[2 2]) - fspecial('gaussian' ,[5 5],2); % create unsharp mask % create unsharp mask figure,imshow(I); K = imfilter(I,H); % create a sharpened version of the image using that mask figure,imshow(K); %showing input & output images