View Single Post
  #2   Spotlight this post!  
Unread 11-01-2012, 21:42
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Vision Camera: C++ Implementation?

Quote:
Originally Posted by duffany1 View Post
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.
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"