Contents

convolve(with:bias:edgeMode:destination:)

Convolves a 32-bit-per-channel, 4-channel interleaved pixel buffer.

Declaration

func convolve(with kernel: vImage.ConvolutionKernel2D<Float>, bias: Float? = nil, edgeMode: vImage.EdgeMode<Pixel_FFFF>, destination: vImage.PixelBuffer<Format>)

Parameters

  • kernel:

    The convolution kernel.

  • bias:

    An optional value 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