View Single Post
  #13   Spotlight this post!  
Unread 26-01-2013, 14:45
Pulverator's Avatar
Pulverator Pulverator is offline
Registered User
FRC #1551 (The Grapes of Wrath)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Naples
Posts: 8
Pulverator is an unknown quantity at this point
Re: Sample Vision Code, ComputeThreshold() exception

We have tried a few different things and still haven't figured out how to get valid images. We transfered some images to the cRio via ftp and used those and it worked fine. Whenever we use the camera it fails with the initial exception. We would like to call the imaqGetLastError(), but once the exception happens everything just blows up, even with try/catch.

It seems that the image we get from camera.GetImage() is not valid. As a few other posters have noted, the height and width seem ridiculously large with values in the range of 17 million. When we use the images loaded onto the cRio the sizes was 320x240.

We also didn't notice any strange output on the DS when the errors occur.

[IMG][/IMG]
Reply With Quote