Are there any OpenGl-shaders that output video-analysis data similar to i.e. jit.3m?
In my case I’d like to build an auto-contrast-effect to put at the end of a long chain of shaders with jit.gl.slab. It currently seems like I have to render to a matrix before I can analyse the processed video… Stupid.
It’s possible to take a histogram of an image on the GPU, but it requires more than just writing a shader. You also have to draw geometry to screen in a very specific way in order to make the computation efficient and tractable. Here’s a paper from ATI/AMD describing how to do it: