(Template parameter) Boundary Condition function used while indexing the image matrix.
Input tensor.
Convolution kernel tensor. For 1D input, 1D kernel is expected. For 2D input, 2D kernel is expected. For 3D input, 2D or 3D kernel is expected - if 2D kernel is given, each item in kernel matrix is applied to each value in corresponding 2D coordinate in the input.
Pre-allocated buffer where convolution result can be stored. Default value is emptySlice, where resulting array will be newly allocated. Also if prealloc is not of same shape as input input, resulting array will be newly allocated.
Masking input. Convolution will skip each element where mask is 0. Default value is empty slice, which tells that convolution will be performed on the whole input.
Optional TaskPool instance used to parallelize computation.
Resulting image after convolution, of same type as input tensor.
Note: Input, mask and pre-allocated slices' strides must be the same.
Perform convolution to given tensor, using given kernel. Convolution is supported for 1, 2, and 3 dimensional tensors.