Acquire Images with Kinect V1
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.
Functions
videoinput | Create video input object |
imaq.VideoDevice | Acquire one frame at a time from video device |
getdata | Acquired image frames to MATLAB workspace |
peekdata | Most recently acquired image data |
getsnapshot | Immediately return single image frame |
start | Obtain exclusive use of image acquisition device |
islogging | Determine whether video input object is logging |
isrunning | Determine whether video input object is running |
isvalid | Determine whether image acquisition object is associated with image acquisition device |
wait | Wait until image acquisition object stops running or logging |
stop | Stop video input object |
clear | Clear image acquisition object from MATLAB workspace |
delete | Remove image acquisition object from memory |
flushdata | Remove data from memory buffer used to store acquired image frames |
obj2mfile | Convert video input objects to MATLAB code |
imaqmontage | Sequence of image frames as montage |
load | Load image acquisition object into MATLAB workspace |
save | Save image acquisition objects to MAT-file |
trigger | Initiate data logging |
triggerconfig | Configure video input object trigger properties |
triggerinfo | Provide information about available trigger configurations |
Apps
Image Acquisition Tool | (Removed) Acquire images and video from hardware |
Examples and How To
- Detect the Kinect V1 Devices
Because the Kinect for Windows camera has two separate sensors, the color sensor and the depth sensor, the toolbox lists two
DeviceIDs
. Useimaqhwinfo
on the adaptor to display the two device IDs. - Acquire Image and Skeletal Data Using Kinect V1
This example shows how to create a
videoinput
object 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. - Acquire Data from Kinect V1 Color and Depth Devices Simultaneously
You can synchronize the data from the Kinect for Windows color stream and the depth stream using software manual triggering.
- Use Skeleton Viewer for Kinect V1 Skeletal Data
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.
Concepts
- Key Features and Differences in the Kinect V1 Support
Doing image acquisition with a Kinect for Windows camera is similar to using other cameras and adaptors, but has some key differences.
- Data Streams Returned by the Kinect V1 Adaptor in MATLAB
The Kinect for Windows V1 device returns these data streams in MATLAB®. The formats of the image and depth streams are outlined here.