Are OpenCV python images OpenGL accelerated?
Reading the OpenCV documentation, I do understand that a namedWindow() created with the flag WINDOW_OPENGLwill enable OpenGL support, meaning that in C++, you could feed the imshow() function with gpu data types, such as gpu::gpuMat.
However, when using an OpenGL-enabled namedWindow()with Python, will the numpy arrays fed to imshow() be displayed as OpenGL accelerated images (i.e will be passed to the gpu)? If not, is there a way to display OpenGL accelerated images in a namedWindow() using the Python interface?
wait, that's wrong. you can't feed gpuMat's to imshow, not even with opengl.
opengl support will let you draw textured 3d meshes to the screen (instead of 2d images).
but even for that, the opencv libs have to be compiled against opengl libs, check that with:
it should say WITH_OPENGL=ON somewhere at the bottom.
also, afaik, you can't even access gpuMat's from python (or java) . if you want to code CUDA, you will have to use opencv's c++. api.
@berak Ok, thank you! However, I seem to remember that
cvMat
types fed toimshow()
does allow OpenGL acceleration. And it seems to be accessible to python: https://code.google.com/p/pycvgl/ so I guess I'll use that...