|
|
VisionWorks Toolkit ReferenceApril 8, 2016 | 1.4 Release |
This tutorial demonstrates VisionWorks and NVXIO libraries initialization and deinitialization.
VisionWorks library initialization is controlled via the vx_context object. It is the main object that holds all other data and framework objects, and controls immediate mode execution.
The NVXIO library is initialized via the nvxio::Application object. It is a singleton object that initializes the NVXIO library environment and parses command line arguments.
VisionWorks deinitialization is performed via the vxReleaseContext call. The context object destruction releases all references to data and framework objects that were not released by application. For debug purposes, the application might query the number of active references from the context object using the VX_CONTEXT_ATTRIBUTE_REFERENCES attribute.
NVXIO library deinitialization is performed implicitly by the Application object.
NVXIO provides a utility class that encapsulates VisionWorks context creation and destruction in the constructor and destructor. The object of this class can be implicitly cast to type vx_context.