Interface from OpenGL to OpenCV

Started by
4 comments, last by CMuYu 10 years, 11 months ago

Hi, everyone.
I wanted to process a image by OpenCV. It's generated by OpenGL. Firstly, I saved this image in my hard disk and read it with OpenCv, but I found it inefficient.
So I want to find an interface from OpenGL to OpenCV so that I don't need to save the image to my hard disk.

The function "load3dDataToGL" is not what I want. I just want to load image from OpenGL. :(

Thanks everyone!

Advertisement

Anyone to answer me?

Can anyone tell me a way? :(

I guess you can use glGetTexImage to get the texture data and then create an appropriate OpenCV matrix and point it to the data retrieved from OpenGL.

I guess you can use glGetTexImage to get the texture data and then create an appropriate OpenCV matrix and point it to the data retrieved from OpenGL.

Thank you. I will try it.

Do you have another ways? Thank you?

This topic is closed to new replies.

Advertisement