PsychKinectCore - A Psychtoolbox driver for the Microsoft Xbox Kinect box.
This driver allows to control the box and grab color images and depth
images from the Kinect depth camera.
For installation instructions for the required 3rd party driver see
help
InstallKinect.
For more info see "help
PsychKinect".
PsychKinect is the preferred way of using this driver. It is much more convenient.
The red keywords are links for per-function documentation!
kinectPtr = PsychKinect
('
Open'
[, deviceIndex=
0][, numbuffers=
2]][, bayerFilterMode=
1]);
PsychKinect
('
Close', kinectPtr
);
PsychKinect
('
SetAngle', kinectPtr, angle
);
[starttime, fps, cwidth, cheight, dwidth, dheight
] = PsychKinect
('
Start', kinectPtr
[, dropframes=
0]);
PsychKinect
('
Stop', kinectPtr
);
status = PsychKinect
('
GetStatus', kinectPtr
);
[...old parameter settings in order of inputs
... ] = PsychKinect
('
SetBaseCalibration', kinectPtr, depthsIntrinsics, rgbIntrinsics, rgbRotation, rgbTranslation, depthsUndistort, rgbUndistort, depthBaseAndOffset
);
[result, cts, age
] = PsychKinect
('
GrabFrame', kinectPtr
[, waitMode=
1][, mostrecent=
0]);
PsychKinect
('
ReleaseFrame', kinectPtr
);
[imageOrPtr, width, height, channels, extType, extFormat
] = PsychKinect
('
GetImage', kinectPtr
[, imtype=
0][, returnTexturePtr=
0]);
[imageOrPtr, width, height, extType, extFormat
] = PsychKinect
('
GetDepthImage', kinectPtr
[,
format=
0][, returnTexturePtr=
0]);
This driver uses and requires the free software drivers and libraries from the
OpenKinect
project (Thanks!):
http://openkinect.org
Libfreenect is Copyright (C) 2010, 2011 individual
OpenKinect contributors.
Libfreenect requires libusb-1.0, which is licensed under LGPL v2 or later.
See 'help
InstallKinect' for more detailed license information.
The
PsychKinectCore driver is licensed to you under the terms of the MIT license,
with some restrictions imposed when used with Matlab. See 'help License.txt' in
the Psychtoolbox root folder for more details.
The driver also uses bits of math inspired by Nicolas Burrus Kinect work:
http://nicolas.burrus.name/index.php/Research/KinectCalibration
Psychtoolbox/PsychBasic/PsychKinectCore.m