Contents

convolve(with:bias:edgeMode:useFloat16Accumulator:destination:)

Convolves a floating-point 16-bit planar pixel buffer.

Declaration

func convolve(with kernel: vImage.ConvolutionKernel2D<Float>, bias: Float? = nil, edgeMode: vImage.EdgeMode<Pixel_16F>, useFloat16Accumulator: Bool = false, 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.

  • useFloat16Accumulator:

    A Boolean value that specifies that the function uses faster but lower-precision internal arithmetic. For more information, see Kvimageusefp16accumulator.

  • destination:

    The destination pixel buffer.

See Also

Related Documentation

General convolution