<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImage/PixelBuffer/convolve(with:divisors:biases:edgeMode:destination:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate6vImageO11PixelBufferVAaC14Interleaved8x4VRszrlE8convolve4with8divisors6biases8edgeMode11destinationyAC19ConvolutionKernel2DVy_s5Int16VG_A3Rt_s5Int32V_A3TtSgAT_A3TtAC04EdgeK0Oy_s5UInt8V_A3YtGAEy_AGGtF"
  },
  "title" : "convolve(with:divisors:biases:edgeMode:destination:)"
}
-->

# convolve(with:divisors:biases:edgeMode:destination:)

Convolves an 8-bit-per-channel, 4-channel interleaved pixel buffer with separate kernels for each channel.

```
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

  <doc://com.apple.accelerate/documentation/Accelerate/blurring-an-image>



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)