Prev
MagickWand For PHP
Manual


Next

MagickConvolveImage

MagickConvolveImage -- applies a custom convolution kernel to the current active image, or to one or more image channels

Description

bool MagickConvolveImage( MagickWand mgck_wnd, array kernel_array [, int channel_type] )

Applies a custom convolution kernel to the current active image in the MagickWand. Returns TRUE on success, FALSE if an error occurred. If the optional channel_type parameter is supplied, MagickConvolveImageChannel() is called on the specified 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
kernel_array An array of doubles representing the convolution kernel; it's length MUST be
perfectly square, i.e. it must contain 4, 9, 16, 25, 36, 49, 64, ... elements
channel_type (OPTIONAL) ChannelType constant


Prev
MagickContrastImage
Up Next
MagickCropImage