convolve(with:divisors:biases:edgeMode:destination:)
Convolves an 8-bit-per-channel, 4-channel interleaved pixel buffer with separate kernels for each channel.
Declaration
func convolve(with kernels: (vImage.ConvolutionKernel2D<Int16>, vImage.ConvolutionKernel2D<Int16>, vImage.ConvolutionKernel2D<Int16>, vImage.ConvolutionKernel2D<Int16>), divisors: (Int32, Int32, Int32, Int32)?, biases: (Int32, Int32, Int32, Int32) = (0, 0, 0, 0), edgeMode: vImage.EdgeMode<Pixel_8888>, destination: vImage.PixelBuffer<Format>)Parameters
- kernels:
The convolution kernels.
- divisors:
An optional tuple of four values that the operation adds to the sum of weighted pixels before it applies the divisor.
- biases:
A tuple of four values that the operation adds to the sum of weighted pixels before it applies the divisor.
- edgeMode:
The convolution edge mode.
- destination:
The destination pixel buffer.
See Also
Related Documentation
General convolution
convolve(with:divisor:bias:edgeMode:destination:)convolve(with:bias:edgeMode:useFloat16Accumulator:destination:)convolve(with:bias:edgeMode:destination:)convolve(with:divisor:bias:edgeMode:destination:)convolve(with:bias:edgeMode:useFloat16Accumulator:destination:)convolve(with:bias:edgeMode:destination:)convolve(with:divisor:bias:edgeMode:destination:)convolve(with:bias:edgeMode:destination:)vImage.EdgeModevImage.ConvolutionKernel2D