OpenNI 1.5.7
Main Page
Related Pages
Modules
Namespaces
Classes
Files
OpenNI Overview
Getting Started - A Tutorial
Playing a file recording
The following code opens a file recording and reads data from it:
// Initialize OpenNI
xn::Context
context;
nRetVal = context.
Init
();
// TODO: check error code
// Open file recording
nRetVal = context.
OpenFileRecording
(
".\\MyRecording.oni"
);
// TODO: check error code
// Look for the depth node
xn::DepthGenerator
depth;
nRetVal = context.
FindExistingNode
(
XN_NODE_TYPE_DEPTH
, depth);
if
(nRetVal !=
XN_STATUS_OK
)
{
printf(
"Can't run - no depth generator is present in recording!\n"
);
exit(-1);
}
// TODO: mainloop - process data
Generated on Wed Nov 29 2017 19:28:19 for OpenNI 1.5.7 by
1.8.8