<!--
{
  "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/gaborGradients()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:objc(cs)CIFilter(cm)gaborGradientsFilter"
  },
  "title" : "gaborGradients()"
}
-->

# gaborGradients()

Highlights textures in an image.

```
class func gaborGradients() -> any CIFilter & CIGaborGradients
```

## Return Value

The modified image.

## Discussion

This method applies the Gabor gradients filter to an image. The effect targets the texture of objects within the frame, and is frequently used to find detail in photographs of fingerprints.

The gabor gradients filter uses the following property:

- `inputImage`: An image with the type [`CIImage`](/documentation/CoreImage/CIImage).

The following code creates a filter that results in a darker image with shades of green and red outlining the texture of objects:

```swift
func garborGradients(inputImage: CIImage) -> CIImage {
    let garborFilter = CIFilter.gaborGradients()
    garborFilter.inputImage = inputImage
    return garborFilter.outputImage!
}
```

![Two pictures of a pink flower surrounded by foliage. The photo on the left shows a single flower photographed close up, in focus, with good light and no effects. In the photo on the right, the Gabor gradient  filter is applied, resulting in the image becoming darker with green and red colors replacing the colors of the original image.](images/com.apple.coreimage/media-3600000@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)