View Single Post
  #5   Spotlight this post!  
Unread 03-02-2012, 14:04
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: ImaqThreshold error

According to the WPI source code, I believe it is impossible to get a NULL image pointer unless you are totally running out of memory. However, it is always a good practice to check for NULL anyway to guard against unforeseen circumstances. But it is true that you should check for zero image height and width because the camera needs some time to boot and you could "acquire" an image while the camera is not ready. Although you get a valid image pointer, there is really no image yet.
__________________

Last edited by mikets : 03-02-2012 at 14:11.
Reply With Quote