PHP Manual: imageconvolution
imageconvolution
Description
bool imageconvolution ( resource image, array matrix, float div, float offset )Applies a convolution matrix on the image, using the given coefficient and offset.
Parameters
imageAn image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
matrixA 3x3 matrix: an array of three arrays of three floats.
divThe divisor of the result of the convolution, used for normalization.
offset
Examples
Example 2. Gaussian blur
The above example will output:
|
Notes
Note: This function is only available if PHP is compiled with the bundled version of the GD library.

