<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIFilter-swift.class/labDeltaE()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:objc(cs)CIFilter(cm)LabDeltaE"
  },
  "title" : "labDeltaE()"
}
-->

# labDeltaE()

Compares an image’s color values.

```
class func labDeltaE() -> any CIFilter & CILabDeltaE
```

## Return Value

The modified image.

## Discussion

This method applies the Lab ΔE filter to an image. The effect creates an image based on the visual color differences between the two input images. The resulting image contains ΔE 1994 values between 0.0 and 100.0.

The Lab ΔE filter uses the following properties:

- `inputImage`: An image with the type [`CIImage`](/documentation/CoreImage/CIImage).
- `image2`: An image with the type [`CIImage`](/documentation/CoreImage/CIImage) the system uses for comparison.

The following code creates a filter that removes the background from the input image:

```swift
func labDeltaE(inputImage: CIImage, inputImage2: CIImage) -> CIImage {
    let labDeltaEFilter = CIFilter.labDeltaE()
    labDeltaEFilter.inputImage = inputImage
    labDeltaEFilter.image2 = inputImage2
    return labDeltaEFilter.outputImage!
}
```

![Two photographs of a star, pentagon, nonagon, and a rounded corner square arranged in the center of the image on a black background. In the photo on the right, a Lab ΔE filter is applied, so the image no longer has a black background, and all of the white shapes are now on a transparent layer.](images/com.apple.coreimage/media-3546476@2x.png)

---

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)