How to get the frame image...

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…

If you’re not too concerned with performance, glReadPixels will do the trick. Otherwise, look into PBOs and/or FBOs.

Regards,
Patrick

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