I am new at Image Processing.
Now, I am studying on Laplacian Sharpening Methods. But there is a thing that I could not understand. I hope you can help me.
As you all know, sharpened images occur when we add laplacian filtered image to original image.
But after getting laplacian filtered image my reference book scales this laplacian filtered image for display purposes and get a greyish image. And add this greyish one to the original image and in conclusion get a sharpened image.
My problem is how can I get this greyish image.
Here is my code:
image1=imread('hw1image1.tif');
m=[1 1 1; 1 -8 1; 1 1 1];
f1=imfilter(image1,m);
r=image1-f1;
subplot(1,3,1);
imshow(image1);
subplot(1,3,2);
imshow(f1);
subplot(1,3,3);
imshow(r);
f1 is laplacian filtered image. But it is not greyish as you all know. How can I get this greyish one?
Edit:
https://i.stack.imgur.com/RMz1b.jpg (1st one original picture, 2nd greyish one, 3rd sharpened image)
Thank you for your help.