|
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.
|