---
title: 2D convolution
framework: accelerate
role: collectionGroup
role_heading: API Collection
path: accelerate/2d-convolution
---

# 2D convolution

Perform convolution operations on matrices of real data.

## Overview

Overview Use the functions in this group to apply a convolution kernel to a 2D matrix. The vDSP library provides functions to convolve with fixed-sized kernels and kernels with an arbitrary size. important: The functions in this group don’t support in-place operation.

## Topics

### Fixed-Size Kernel

- [convolve(_:rowCount:columnCount:with3x3Kernel:)](accelerate/vdsp/convolve(_:rowcount:columncount:with3x3kernel:)-1r5oa.md)
- [convolve(_:rowCount:columnCount:with3x3Kernel:)](accelerate/vdsp/convolve(_:rowcount:columncount:with3x3kernel:)-7qjgw.md)
- [convolve(_:rowCount:columnCount:with3x3Kernel:result:)](accelerate/vdsp/convolve(_:rowcount:columncount:with3x3kernel:result:)-34k76.md)
- [convolve(_:rowCount:columnCount:with3x3Kernel:result:)](accelerate/vdsp/convolve(_:rowcount:columncount:with3x3kernel:result:)-2worq.md)
- [convolve(_:rowCount:columnCount:with5x5Kernel:)](accelerate/vdsp/convolve(_:rowcount:columncount:with5x5kernel:)-7cvh9.md)
- [convolve(_:rowCount:columnCount:with5x5Kernel:)](accelerate/vdsp/convolve(_:rowcount:columncount:with5x5kernel:)-101d6.md)
- [convolve(_:rowCount:columnCount:with5x5Kernel:result:)](accelerate/vdsp/convolve(_:rowcount:columncount:with5x5kernel:result:)-g68r.md)
- [convolve(_:rowCount:columnCount:with5x5Kernel:result:)](accelerate/vdsp/convolve(_:rowcount:columncount:with5x5kernel:result:)-76h85.md)

### Arbitrary-Size Kernel

- [convolve(_:rowCount:columnCount:withKernel:kernelRowCount:kernelColumnCount:)](accelerate/vdsp/convolve(_:rowcount:columncount:withkernel:kernelrowcount:kernelcolumncount:)-1sswe.md)
- [convolve(_:rowCount:columnCount:withKernel:kernelRowCount:kernelColumnCount:)](accelerate/vdsp/convolve(_:rowcount:columncount:withkernel:kernelrowcount:kernelcolumncount:)-267yl.md)
- [convolve(_:rowCount:columnCount:withKernel:kernelRowCount:kernelColumnCount:result:)](accelerate/vdsp/convolve(_:rowcount:columncount:withkernel:kernelrowcount:kernelcolumncount:result:)-4211m.md)
- [convolve(_:rowCount:columnCount:withKernel:kernelRowCount:kernelColumnCount:result:)](accelerate/vdsp/convolve(_:rowcount:columncount:withkernel:kernelrowcount:kernelcolumncount:result:)-5hiro.md)

## See Also

### Vector and matrix correlation and convolution

- [1D correlation and convolution](accelerate/1d-correlation-and-convolution.md)
