View Single Post
  #15   Spotlight this post!  
Unread 16-02-2009, 10:21
elfinn elfinn is offline
Team 166 Mentor
AKA: Beth Finn
FRC #0166 (Chopshop Team 166)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2004
Location: Merrimack, NH
Posts: 14
elfinn is an unknown quantity at this point
Re: TrackTwoColors execution time

Quote:
Originally Posted by yoyodyne View Post
Furthermore, the documentation states that frcCreateImage() returns 1 or 0 but that is clearly not the case from debugging the program.

I'm still looking for the definition of the Image structure.

What is interesting to me is how in FindColor the camera image is copied to histImage but histImage is never used?

...
Greg is correct that the Image is a proprietary structure and we don't have insight about its format. It's declared in nivision.h.

frcDispose() can be used to dispose of one or many Images, they have to be listed as input parameters.

The header for frcCreateImage states that it returns the Image structure (or NULL if error). The FRC Vision API spec also says this. What documentation are you referring to that says it returns 0 or 1?

The histImage is used in FindColor to create the colorReport.

Beth
Reply With Quote