Go to Post Don't give FIRST ideas...we like our 45 day build season. They can make it shorter. Never underestimate the power of the GDC. - Littleboy [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-01-2012, 21:35
duffany1 duffany1 is offline
Registered User
AKA: Brandon
FRC #0195 (The Cyberknights)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2006
Location: Southington, CT
Posts: 17
duffany1 is an unknown quantity at this point
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?
  #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"
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:03.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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