# jit.convolve

## Description

Computes the correlation between two matrices (an image and a kernel). For true convolution, rotate the kernel 180º. This may be used for typical image processing tasks like blurring, sharpening, and edge detection. By default, the convolution kernel is a 3 by 3 float32 matrix.

## Examples

## Matrix Operator

Name | IOProc | Planelink | Typelink | Dimlink | Plane | Dim | Type |
---|---|---|---|---|---|---|---|

in2 | adapt | 0 | 0 | 0 | 1 | 1 | float32 |

out | n/a | 1 | 1 | 1 | 1 | 1 | char long float32 float64 |

### More about Matrix Operators

### The Jitter MOP

### MOP Arguments

### MOP Attributes

### MOP Messages

## Attributes

### boundmode [int]

Boundary case handling mode (default = 0 (clip))

0 = clip: cells which lie outside the domain of the input data will clip to the nearest cell within the domain of the input data (e.g. a convolution which would need to use cell (0,-1) would instead use cell (0,0)).

1 = wrap: cells which lie outside the domain of the input data will wrap via modulus arithmetic within the domain of the input data (e.g. a convolution on a 320 by 240 matrix which would need to use cell (0,-1) would instead use cell (0,239)).

2 = ignore: cells which lie outside the domain of the input data will not be used in calculating the convolution.

### origin [2 ints]

The origin of the convolution kernel (default = 1 1)

### Common Box Attributes

## See Also

Name | Description |
---|---|

Working with Video in Jitter | Working with Video in Jitter |

jit.fastblur | |

jit.op |