Back to Adaptive Vision Library website
You are here: Start » Function Reference » Kinect » OpenNI_GrabImage
Captures a frame using Kinect.
Syntax
bool avl::OpenNI_GrabImage ( OpenNI_GrabImageState& ioState, avl::Image& outImage, avl::Image& outDepthImage )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
ioState | OpenNI_GrabImageState& | Object used to maintain state of the function. | ||
outImage | Image& | Captured frame | ||
outDepthImage | Image& |
Description
To be able to grab images using Kinect you need to install:
Installed software must match the Adaptive Vision Studio platform (x86 or x64).
After installing these files you have to manually copy all the files and directories from OpenNI2\Redist directory and all the dll files from the PrimeSense\NiTE2\Redist directory to your Adaptive Vision Studio main directory.
Additionally, if you save the project in which you are using the skeleton tracing feature, you should copy the PrimeSense\NiTE2\Redist\NiTE2 directory also to the project directory.
Multithreaded environment
This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.