GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

GPUImageAverageColor had a better way to get a average color ?

Open erickingxu opened this issue 7 years ago • 1 comments

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?

erickingxu avatar Jan 19 '17 08:01 erickingxu

I do not quite understand the way GPUImageAverageColor use,can anyone explain it?

StromanStroman avatar Jan 09 '20 11:01 StromanStroman