I'm trying to get 5 main/dominant colors from a CVPixelBuffer, and I need it to be as quick and efficient as possible.
I've tried Pixelating with CIFilter & Resize it, and only than go through the Pixels Data, but it's still pretty slow.
Also, how should I manage the tasks flow regarding to Threads Managing?
Any tips on working with CVPixelBuffer will be Great!