Hey i wrote this addon for getting optical flow calculated on GPU…super fast.
it is based upon andrew bensons solution for qc.
i would really appreciate if you could point out stuff that doesnt make sense to you, or if you see more elegant ways solutions.
Thank you very much and enjoy
One quick idea. This:
glBegin( GL_QUADS );
glTexCoord2f(0,0); glVertex3i(0, 0,0);
glTexCoord2f(0, h); glVertex3i(0, h,0);
glTexCoord2f(w, h); glVertex3i(w, h,0);
glTexCoord2f(w, 0); glVertex3i(w, 0,0);
prevents people from using the newer versions of OpenGL and the ofProgrammableRenderer. You use an ofPlanePrimitive or ofMesh instead so you’re storing the vertices in a VAO or VBO.
I tested your example on laptop(Asus hybrid graphic card), with Nvidia GeForce 750M
But i have a trouble, most of the time, event if i reboot, my webcam shut down,
so i just have black window displaying fps
I guess it’s more hardware or driver problem,
but if your have any suggestions
ps: os Ubuntu 14.04 LTS