Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Vision Camera: C++ Implementation? (http://www.chiefdelphi.com/forums/showthread.php?t=99883)

duffany1 11-01-2012 21:35

Vision Camera: C++ Implementation?
 
Hello,

We are trying to figure out how to implement the vision camera in our C++ code.

We have discovered that the NI Vision Assistant, which can get you the binary image, allows you to export C code. But, our question is, how do we implement this with C++/Windriver/WPI Library? The exported C code isn't very clear to us. Does anybody have any insight into this matter?

Radical Pi 11-01-2012 21:42

Re: Vision Camera: C++ Implementation?
 
Quote:

Originally Posted by duffany1 (Post 1103039)
Hello,

We are trying to figure out how to implement the vision camera in our C++ code.

We have discovered that the NI Vision Assistant, which can get you the binary image, allows you to export C code. But, our question is, how do we implement this with C++/Windriver/WPI Library? The exported C code isn't very clear to us. Does anybody have any insight into this matter?

The code generated calls directly to the IMAQ libraries (which are the backend of the WPILib code you see). To use it, after getting the image, you can say
Code:

IVA_ProcessImage(m_image->GetImaqImage());
You'll want to also grab the results of the final step in your script from the generated code. How you do that depends on the exact script you're generating.


All times are GMT -5. The time now is 23:24.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi