I was recently attempting to convert the code from here into Swift. However, I keep getting a white color, no matter the image. Here\'s my code:
// Playgroun
CoreImage in iOS 9: use the CIAreaAverage filter and pass the extent of your entire image to be averaged.
Plus, it's much faster since it'll either be running on the GPU or as a highly-optimized CPU CIKernel.