|
|
VisionWorks Toolkit ReferenceApril 8, 2016 | 1.4 Release |
This tutorial demonstrates the VisionWorks error checking mechanism.
VisionWorks provides vx_status enumeration for error codes. VX_SUCCESS constant is used for successful status code.
vxGetStatus call is used to check the status of object creation methods (vxCreate<Object>). The vxGetStatus method is applied to the created object. If it returns an error status code, the object cannot be used.
A good practice is to register a callback facility to receive error logs. It allows you to get more information about errors during VisionWorks API usage.
The logging callback must be defined as follows: