Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interface from OpenGL to OpenCV


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
5 replies to this topic

#1 CMuYu   Members   -  Reputation: 108

Like
0Likes
Like

Posted 16 April 2013 - 07:53 PM

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!



Sponsor:

#2 CMuYu   Members   -  Reputation: 108

Like
0Likes
Like

Posted 18 April 2013 - 09:14 PM

Anyone to answer me?



#3 CMuYu   Members   -  Reputation: 108

Like
0Likes
Like

Posted 20 April 2013 - 06:59 AM

Can anyone tell me a way? :(



#4 CableGuy   Members   -  Reputation: 946

Like
0Likes
Like

Posted 20 April 2013 - 10:47 AM

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.



#5 CMuYu   Members   -  Reputation: 108

Like
0Likes
Like

Posted 21 April 2013 - 07:57 PM

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.



#6 CMuYu   Members   -  Reputation: 108

Like
0Likes
Like

Posted 10 May 2013 - 01:49 AM

Do you have another ways? Thank you!






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS