Sharpening
Sharpness is the contrast between different colors. A quick transition from black to white looks sharp. A gradual transition from black to gray to white looks blurry. Sharpening images increases the contrast along the edges where different colors meet.
Unsharp masking
The unsharp masking technique comes from a publishing industry process in which an image is sharpened by subtracting a blurred (unsharp) version of the image from itself. Do not be confused by the name of this filter: an unsharp filter is an operator used to sharpen an image.
如同前缀码这个词,明明是非前缀码,偏要叫前缀码。
Sharpen Image
Read an image into the workspace and display it.
a = imread('D:/MATLAB WORK/DIP/Images/kingfisher2.png');
imshow(a)
title('Original Image');
Sharpen the image using the imsharpen function and display it.
b = imsharpen(a);
figure, imshow(b)
title('Sharpened Image');
Tips
If A is a truecolor (RGB) image, then imsharpen converts the image to the Lab* color space, applies sharpening to the L* channel only, and then converts the image back to the RGB color space before returning it as the output image B.