MagickUnsharpMaskImage
MagickUnsharpMaskImage -- sharpens the current active image, or one or more of its image channels
Description
bool MagickUnsharpMaskImage( MagickWand mgck_wnd, float radius, float sigma, float amount, float threshold [, int channel_type] )
Sharpens the current active image, or one or more of its image channels. It convolves the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and UnsharpMaskImage() selects a suitable radius for you. Returns TRUE if successful, FALSE if an error occurred. If the optional channel_type parameter is specified, MagickUnsharpMaskImageChannel() 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 |
| amount | The percentage of the difference between the original and the blur image that is added back into the original |
| threshold | The threshold in pixels needed to apply the difference amount |
| channel_type | (OPTIONAL) ChannelType constant |