OpenGL texture to GpuMat (CUDA)?

I have had a reply from the Khronos OpenGL forums, which says that glMapBuffer is a pointer to GPU memory, but in the CPU address space… does this sound correct?

Another reply mentioned CUDA OpenGL interop , but I am not sure if this is beyond the scope of OpenCV

It sounds correct but

The result from my understanding is that you don’t have a pointer to an address which CUDA can use, you have a pointer to an address you can access from the host which is what you are trying to avoid as there will be some overhead from using managed memory in this way.

If you were using C++ you could use OpenGL interop as described however to do the same in python I am pretty sure you need to use pycuda compiled for use with OpenGL as I mentioned in my original post.