imsharpen() - Image Processing
B = imsharpen(A) returns
an enhanced version of the grayscale or truecolor (RGB) input image A,
where the image features, such as edges, have been sharpened using
the unsharp masking method.exampleB = imsharpen(A,Name,Value,...) sharpens
the image using name-value pairs to control aspects of unsharp masking.
Parameter names can be abbreviated.
Syntax
B = imsharpen(A) exampleB = imsharpen(A,Name,Value,...) example
Example
Sharpen ImageOpen This Example
Read an image into the workspace and display it.a = imread('hestain.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');
Control the Amount of Sharpening at the EdgesOpen This Example
Read an image into the workspace and display it.a = imread('rice.png');
imshow(a), title('Original Image');
Sharpen image, specifying the radius and amount parameters.b = imsharpen(a,'Radius',2,'Amount',1);
figure, imshow(b)
title('Sharpened Image');
Output / Return Value
Limitations
Alternatives / See Also
Reference