Contents

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

Convolves an 8-bit planar pixel buffer.

Declaration

func convolve(with kernel: vImage.ConvolutionKernel2D<Int16>, divisor: Int32?, bias: Int32? = nil, edgeMode: vImage.EdgeMode<Pixel_8>, destination: vImage.PixelBuffer<Format>)

Parameters

  • kernel:

    The convolution kernel.

  • divisor:

    A value that the operation divides the results of the convolution by. Pass nil to specify that the function calculates the divisor as the sum of the kernel values.

  • 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