The Kinect adaptor lets you acquire images using a Kinect® for Windows® V1 or V2 device. The Kinect V1 sensor runs on Windows 7 and above.
|Launch Image Acquisition Tool|
|Create video input object|
|Acquire one frame at a time from video device|
|Acquired image frames to MATLAB workspace|
|Most recently acquired image data|
|Immediately return single image frame|
|Obtain exclusive use of image acquisition device|
|Determine whether video input object is logging|
|Determine whether video input object is running|
|Determine whether image acquisition object is associated with image acquisition device|
|Wait until image acquisition object stops running or logging|
|Stop video input object|
|Clear image acquisition object from MATLAB workspace|
|Remove image acquisition object from memory|
|Remove data from memory buffer used to store acquired image frames|
|Convert video input objects to MATLAB code|
|Sequence of image frames as montage|
|Load image acquisition object into MATLAB workspace|
|Save image acquisition objects to MAT-file|
|Initiate data logging|
|Configure video input object trigger properties|
|Provide information about available trigger configurations|
Because the Kinect for Windows camera has
two separate sensors, the color sensor and the depth sensor, the toolbox
the adaptor to display the two device IDs.
This example shows how to create a
for the color sensor to acquire RGB images and then for the depth
sensor to acquire skeletal data. It also outlines the properties of
each sensor, and the skeletal metadata.
You can synchronize the data from the Kinect for Windows color stream and the depth stream using software manual triggering.
You can acquire skeletal data and view the skeleton joints in a viewer. This example uses the viewer function to display the RGB image with skeleton joint locations overlaid on the image.
Doing image acquisition with a Kinect for Windows camera is similar to using other cameras and adaptors, but has some key differences.
The Kinect for Windows V1 device returns these data streams in MATLAB. The formats of the image and depth streams are outlined here.