---
title: MPSImageLaplacian
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsimagelaplacian
---

# MPSImageLaplacian

An optimized Laplacian filter, provided for ease of use.

## Declaration

```swift
class MPSImageLaplacian
```

## Overview

Overview This filter uses an optimized convolution filter with a 3x3 kernel with the following weights:

note: The optimized convolution filter used by the MPSImageLaplacian class could also be created by initializing an MPSImageConvolution object with kernelWidth=3, kernelHeight=3, and the weights specified above.

## Topics

### Properties

- [bias](metalperformanceshaders/mpsimagelaplacian/bias.md)

## Relationships

### Inherits From

- [MPSUnaryImageKernel](metalperformanceshaders/mpsunaryimagekernel.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Convolution Image Filters

- [MPSImageConvolution](metalperformanceshaders/mpsimageconvolution.md)
- [MPSImageMedian](metalperformanceshaders/mpsimagemedian.md)
- [MPSImageBox](metalperformanceshaders/mpsimagebox.md)
- [MPSImageTent](metalperformanceshaders/mpsimagetent.md)
- [MPSImageGaussianBlur](metalperformanceshaders/mpsimagegaussianblur.md)
- [MPSImageGaussianPyramid](metalperformanceshaders/mpsimagegaussianpyramid.md)
- [MPSImageSobel](metalperformanceshaders/mpsimagesobel.md)
- [MPSImageLaplacianPyramid](metalperformanceshaders/mpsimagelaplacianpyramid.md)
- [MPSImageLaplacianPyramidAdd](metalperformanceshaders/mpsimagelaplacianpyramidadd.md)
- [MPSImageLaplacianPyramidSubtract](metalperformanceshaders/mpsimagelaplacianpyramidsubtract.md)
- [MPSImagePyramid](metalperformanceshaders/mpsimagepyramid.md)
