PROJECT 04-04
Highpass Filtering Using aLowpass Image
(a) Subtract yourimage in Project 04-03(b) from the original to obtain a sharpened image, as inEq. (4.4-14). You will note that the resulting image does not resemble theGaussian highpass results in Fig. 4.26. Explain why this is so.
(b) Adjust thevariance of your Gaussian lowpass filter until the result obtained by imagesubtraction looks similar to Fig. 4.26(c). Explain your result.
实验代码
在上题基础上继续输入
f=imread('Fig4.11(a).jpg');
g=im2double(g);f=im2double(f);
gmask=f-g;
figure;imshow(gmask);title('sharpened image')