Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Draw OpenGL- or Direct3D graphics on IMAQ camera window?

I am making a vision-application to track the position and orientation of an object. Now I want to overlay OpenGL- or Direct3D graphics (or similar) onto the object in the image.

In other words, this will be sort of an Augmented Reality application.

Can I do this directly onto the IMAQ window that shows the live camera image? If yes - how? If no - then how? Do I have to show the image and the graphics with OpenGL or with Direct3D? Or any other ways?

-Thanks!
0 Kudos
Message 1 of 3
(2,996 Views)
Hello,

If you have the coordinates of each pixel of what you want to overlay in an array, you can input that array to IMAQ Overlay Points function and that'll display those points overlaid on your image.
Hope this helps!

Regards,

Yusuf C.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 3
(2,996 Views)
Hm, well, I guess that does work, but then I have to figure out for myself what pixels need to be changed. I would rather like to just call some OpenGL-/GLUT functions like glutDrawSolidSphere() etc. Then I only have to worry about position, orientation and size of the cube - not as low-level as changing pixels.

Thanks, anyway!

Torbjørn
0 Kudos
Message 3 of 3
(2,996 Views)