Go to Post No Firsting way! - Tytus Gerrish [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-01-2012, 13:57
arthurlockman's Avatar
arthurlockman arthurlockman is offline
Team Captain
FRC #0172 (Northern Force)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Gorham, ME
Posts: 29
arthurlockman is an unknown quantity at this point
Send a message via AIM to arthurlockman
Using Vision Assistant Generated Code

So, I've used the vision assistant to generate C code to run on the robot. Pretty slick. I know how to call the code, with an image, but here's my question. Is there a way that's already there to get the code to return some kind of array of targets? If so, how do I get at this? For our vision system, it's important that we know where all of the possible targets are within the robot's field of view. Help?
Thanks in advance!
-Arthur Lockman
__________________
--
Arthur Lockman
Twitter: @arthurlockman
a.rthr.me
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2012, 01:28
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Using Vision Assistant Generated Code

I would have to see the code you are trying to integrate to attempt to help.
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2012, 06:41
arthurlockman's Avatar
arthurlockman arthurlockman is offline
Team Captain
FRC #0172 (Northern Force)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Gorham, ME
Posts: 29
arthurlockman is an unknown quantity at this point
Send a message via AIM to arthurlockman
Re: Using Vision Assistant Generated Code

Quote:
Originally Posted by jhersh View Post
I would have to see the code you are trying to integrate to attempt to help.
I have posted the code here: http://i.rthr.me/JuqE
I know that you call IVA_ProcessImage(Image *image) with your image data that you get from the camera. Looking through the code though, there doesn't seem to be an easy way to get at the data that the particle detection creates. You can access it in the vision assistant, but I'm not sure how to in the C code. Help?

Thanks!
__________________
--
Arthur Lockman
Twitter: @arthurlockman
a.rthr.me
Reply With Quote
  #4   Spotlight this post!  
Unread 14-01-2012, 04:01
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Using Vision Assistant Generated Code

Quote:
Originally Posted by arthurlockman View Post
I know that you call IVA_ProcessImage(Image *image) with your image data that you get from the camera. Looking through the code though, there doesn't seem to be an easy way to get at the data that the particle detection creates. You can access it in the vision assistant, but I'm not sure how to in the C code.
It looks like you can pull the results out of the ivaData variable in the IVA_ProcessImage function before it is passed to IVA_DisposeData(). Maybe pass in an array you wish to populate with the results and you can copy the interesting results. Possibly pCalibratedMeasurements will be simpler if you don't care about the complexity of the struct.
Reply With Quote
Reply


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 13:31.

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