MagickWand For PHP



MagickSharpenImage -- sharpens the current active image, or one or more of its image channels


bool MagickSharpenImage( MagickWand mgck_wnd, float radius, float sigma [, int channel_type] )

Sharpens the current active image, or one or more of its image channels. We convolve the image (or image channel) with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, the radius should be larger than sigma. Use a radius of 0 and MagickSharpenImage() selects a suitable radius for you. Returns TRUE if successful, FALSE if an error occurred. If the optional channel_type parameter is specified, MagickSharpenImageChannel() is called on that particular image channel. channel_type must be a ChannelType constant, one of the following: MW_RedChannel MW_CyanChannel MW_GreenChannel MW_MagentaChannel MW_BlueChannel MW_YellowChannel MW_AlphaChannel MW_OpacityChannel MW_BlackChannel MW_IndexChannel MW_AllChannels

A description of each parameter follows:

mgck_wnd A MagickWand resource
radius The radius of the Gaussian operator, in pixels, not counting the center pixel
sigma The standard deviation of the Gaussian operator, in pixels
channel_type (OPTIONAL) ChannelType constant

Up Next