Go to Post The final product, the inspiration, it all that matters. Awards and championships are just bling. - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 20-01-2012, 16:49
ColonelThrtyTwo's Avatar
ColonelThrtyTwo ColonelThrtyTwo is offline
Registered User
FRC #3676
 
Join Date: Jan 2011
Location: Somewhere in Texas
Posts: 13
ColonelThrtyTwo is an unknown quantity at this point
Re: NI Vision Functions

Quote:
Originally Posted by AjFoster View Post
We get the following errors:

taskExecutor: cannot find symbol
assertCleanStatus: cannot find symbol
You need to instantiate your own TaskExecutor and pass it to setTaskExecutor. assertCleanStatus is a protected method of the NIVision class, which checks if its argument is nonzero and if so throws an NIVisionException. Why it is protected, I don't know; you can't extend the classs because the only constructor is private. Just make your own, or copy+paste the source code from NIVision.java.

Is there any documentation for the imaq functions C-side? Specifically, I would like to use imaqDetectRectangles and need the fields of the RectangleMatch struct.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2012, 17:02
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: NI Vision Functions

Quote:
Originally Posted by ColonelThrtyTwo View Post
Is there any documentation for the imaq functions C-side? Specifically, I would like to use imaqDetectRectangles and need the fields of the RectangleMatch struct.
Look in C:\Program Files\National Instruments\Vision\Documentation\NIVisionCVI.chm

-Joe
Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2012, 17:08
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
Re: NI Vision Functions

Quote:
Originally Posted by ColonelThrtyTwo View Post
You need to instantiate your own TaskExecutor and pass it to setTaskExecutor. assertCleanStatus is a protected method of the NIVision class, which checks if its argument is nonzero and if so throws an NIVisionException. Why it is protected, I don't know; you can't extend the classs because the only constructor is private. Just make your own, or copy+paste the source code from NIVision.java.

Is there any documentation for the imaq functions C-side? Specifically, I would like to use imaqDetectRectangles and need the fields of the RectangleMatch struct.
The way I did it was to make a new executer, and copy and past the assertCleanStatus function from the NIVision.java.
Reply With Quote
  #4   Spotlight this post!  
Unread 20-01-2012, 23:07
AjFoster AjFoster is offline
Hydra Robotics - 2425
AKA: AJ
FRC #2425 (Hydra Robotics)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Tampa, FL
Posts: 2
AjFoster is an unknown quantity at this point
Re: NI Vision Functions

Thanks so much for the tips - everything runs error-free now.

Would it be possible to see an example of convexHull() being properly called (for an image which I've already used an HSL threshold on)?
__________________
Aj Foster

Team 2425 - HYDRA Robotics
Hillsborough High School
Tampa, Florida
Reply With Quote
  #5   Spotlight this post!  
Unread 21-01-2012, 20:28
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
Re: NI Vision Functions

Quote:
Originally Posted by AjFoster View Post
Thanks so much for the tips - everything runs error-free now.

Would it be possible to see an example of convexHull() being properly called (for an image which I've already used an HSL threshold on)?
Sure, here is an example of how I call it:

Code:
convexHull(binaryImage.image,binaryImage.image,1);
That will find the convex hull of binaryImage and put it in binaryImage
Reply With Quote
  #6   Spotlight this post!  
Unread 12-02-2012, 18:16
codes02 codes02 is offline
Randolph aka Roxbury aka R_______
AKA: Cody Schafer
no team (Formerly: Team 11, MORT)
 
Join Date: Oct 2007
Rookie Year: 2008
Location: MA, USA
Posts: 57
codes02 is on a distinguished road
Re: NI Vision Functions

Does anyone know if there is full documentation of the NIVision C functions anywhere to make this process easier?
Reply With Quote
  #7   Spotlight this post!  
Unread 13-02-2012, 07:13
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: NI Vision Functions

Program Filles/National Instruments/Vision/Documentation.

Specifically, you should look at the CVI document.

Greg Mckaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 13-02-2012, 14:02
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: NI Vision Functions

Quote:
Originally Posted by codes02 View Post
Does anyone know if there is full documentation of the NIVision C functions anywhere to make this process easier?
http://www.chiefdelphi.com/forums/sh...4&postcount=14
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 11:15.

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