GPUImage
GPUImage copied to clipboard
GPUImageAverageColor had a better way to get a average color ?
Hi @BradLarson , I need to caculate a color average value for full frame image everytime.So using GPU , I found it is very difficult to do, and I read your shader and method in GPUImageAverageColor, it is surely a good idea for using gpu hardware interpolation . And if I choose a 8x4 or 8x8, or 16x16 area for interpolation, and that it to be less time with for-loop. Is it a right method for get faster for your method?
Another method, can I use once gpu draw for drawing a frame to 1*1 texture, and read this texture for get average color?
I do not quite understand the way GPUImageAverageColor use,can anyone explain it?