I have a little problem with my pixellation image processing algorithm.
I load the image from the beginning into an array of type unsigned char*
After t
Actually, it's simple as this. Higher input scale key means more pixellation.
let filter = CIFilter(name: "CIPixellate")
filter?.setValue(inputImage, forKey: kCIInputImageKey)
filter?.setValue(30, forKey: kCIInputScaleKey)
let pixellatedCIImage = filter?.outputImage
The result is CIImage, you can convert it using UIImage using
UIImage(ciImage: pixellatedCIImage)