MATLAB Image Sharpening - Gaussian High Pass Filter using (1- Gaussian Low Pass Filter)

后端 未结 3 796
醉酒成梦
醉酒成梦 2021-01-16 11:16

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

3条回答
  •  天涯浪人
    2021-01-16 11:56

    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
    

提交回复
热议问题