1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
/*
PsychToolbox3/Source/Common/PsychKinect/RegisterProject.c
PROJECTS: PsychKinect only.
AUTHORS:
mario.kleiner@tuebingen.mpg.de mk
PLATFORMS: All.
HISTORY:
24.11.2010 mk Created.
DESCRIPTION:
A Psychtoolbox driver for Microsoft's Kinect 3D-camera, based
on the free software code of the http://openkinect.org project.
*/
//begin include once
#include "Psych.h"
#include "PsychKinect.h"
PsychError PsychModuleInit(void)
{
// Register the project exit function
PsychErrorExit(PsychRegisterExit(&PsychKNShutdown));
// Register the project function which is called when the module
// is invoked with no named subfunction:
PsychErrorExit(PsychRegister(NULL, &PsychKinectDisplaySynopsis));
PsychErrorExit(PsychRegister("Open", &PSYCHKINECTOpen));
PsychErrorExit(PsychRegister("Close", &PSYCHKINECTClose));
PsychErrorExit(PsychRegister("Start", &PSYCHKINECTStart));
PsychErrorExit(PsychRegister("Stop", &PSYCHKINECTStop));
PsychErrorExit(PsychRegister("GetStatus", &PSYCHKINECTGetStatus));
PsychErrorExit(PsychRegister("GrabFrame", &PSYCHKINECTGrabFrame));
PsychErrorExit(PsychRegister("ReleaseFrame", &PSYCHKINECTReleaseFrame));
PsychErrorExit(PsychRegister("GetImage", &PSYCHKINECTGetImage));
PsychErrorExit(PsychRegister("GetDepthImage", &PSYCHKINECTGetDepthImage));
PsychErrorExit(PsychRegister("SetBaseCalibration", &PSYCHKINECTSetBaseCalibration));
PsychErrorExit(PsychRegister("SetAngle", &PSYCHKINECTSetAngle));
//report the version
PsychErrorExit(PsychRegister("Version", &MODULEVersion));
//register the module name & authors:
PsychErrorExit(PsychRegister("PsychKinect", NULL));
PsychSetModuleAuthorByInitials("mk");
// Register synopsis and named subfunctions.
InitializeSynopsis();
// Preinit everything:
PsychKNInit();
return(PsychError_none);
}
|