<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSImageLaplacian",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSImageLaplacian"
  },
  "title" : "MPSImageLaplacian"
}
-->

# MPSImageLaplacian

An optimized Laplacian filter, provided for ease of use.

```
class MPSImageLaplacian
```

## Overview

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

![](images/com.apple.metalperformanceshaders/media-2556916@2x.png)

> Note:
> The optimized convolution filter used by the ``doc://com.apple.metalperformanceshaders/documentation/MetalPerformanceShaders/MPSImageLaplacian`` class could also be created by initializing an ``doc://com.apple.metalperformanceshaders/documentation/MetalPerformanceShaders/MPSImageConvolution`` object with `kernelWidth=3`, `kernelHeight=3`, and the weights specified above.

## Topics

### Properties

[`bias`](/documentation/MetalPerformanceShaders/MPSImageLaplacian/bias)

The value added to a convolved pixel before it is converted back to its intended storage format.



---

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)