gaborGradients()
Highlights textures in an image.
Declaration
class func gaborGradients() -> any CIFilter & CIGaborGradientsReturn 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:
inputImageAn image with the type CIImage.
The following code creates a filter that results in a darker image with shades of green and red outlining the texture of objects:
func garborGradients(inputImage: CIImage) -> CIImage {
let garborFilter = CIFilter.gaborGradients()
garborFilter.inputImage = inputImage
return garborFilter.outputImage!
}[Image]