PDA

View Full Version : How to get the frame image...



psksurya
12-28-2009, 01:32 PM
Hi all,

I am doing a project automated car by image processing.. my guide asked me to do it virtually using opengl and opencv on visual studio platform..

- i have to load my road map to scene..
- get image in front car..
- then process it using opencv n then move car accordingly..

i just started with opengl... how to get the image of current frame ie displaying in view...
indeed i placed camera by 'setEye' on the car.. now i have to get the image data to process it..

please can any one help me..

pjcozzi
12-28-2009, 04:20 PM
If you're not too concerned with performance, glReadPixels will do the trick. Otherwise, look into PBOs and/or FBOs.

Regards,
Patrick

psksurya
01-23-2010, 02:38 PM
Hi all..

I am using SGI Performer to render my simulation... i want to capture the frame image as JPEG... in program how would i do this...

thank you