Convolution
Description
Doing convlolution between a kernel and an image, see wiki.
Params
tSrc | Tensor | The source image to be convolved. |
tKernel | Tensor | Kernel body, tensor with shape [n, m, 4], where alpha component of each pixel is kernel cell value. |
factor? | number | a scaling quantity that is multiplied by the result |
bias? | number | is added on after the factor has been accounted for |
Example
gm.conv2d(inputImage, gm.kernels.boxBlur());