image.sharpen()

Sharpens a image by using the unsharp mask filter.

image.sharpen( [ gain ] )

Returns: void

Argument Description
gain
number, optional

Gain values can be integers or real numbers. The default value is 1.0. The value determines whether the image is blurred or sharpened: - if > 0, the image is sharpened - if = 0, no effect - if < 0, the image is blurred

Examples

img=imageRead("https://avatars1.githubusercontent.com/u/10973141?s=280&v=4");
	img.Sharpen(2);
	cfimage(action="writeToBrowser",source=img);

See also