Kernel data
Source data
Function to combine values at a position
Optionalblend: (conv: TCell, original: TCell) => TCellOptional function to blend the convolved value with the original value. If not provided, the convolved value will replace the original value.
Optionalvisitor: Iterable<GridCell, any, any>Visitor to iterate over the source grid. If not provided, all cells will be visited.
Optionalorigin: GridCellOptional origin of the kernel. If not provided, the center of the kernel will be used.
Returns 'source' grid, which has been mutated with the results of the convolution.
Performs kernel-based convolution over a grid, mutating the source grid with the results.