I could not find any such post, the best solution that I found was to use an OpenGL shader. I took into consideration using CUDA, but I needed something cross platform.
It was more complicated than I expected, if anyone knows a better solution, I would be curious to learn it.