OpenNI2 编程简要说明
目录
OpenNI2 编程简要说明 .............................................................................................................................................. 1
OpenNI 类 ................................................................................................................................................................... 2
设备的基础访问 ................................................................................................................................................. 2
视频流(Video Streams)的基础访问.................................................................................................................... 3
设备的事件驱动访问 ......................................................................................................................................... 3
错误信息 ............................................................................................................................................................. 3
版本信息 ............................................................................................................................................................. 4
设备类(Device Class) ............................................................................................................................................. 4
基本操作 ............................................................................................................................................................. 4
Device::open() .............................................................................................................................................. 4
Device::close() .............................................................................................................................................. 4
Device::isValid()............................................................................................................................................ 4
从设备中获取信息 ............................................................................................................................................. 5
特殊设备功能 ..................................................................................................................................................... 5
对齐(Registration) .................................................................................................................................. 5
帧同步(FramSync) .................................................................................................................................... 5
通用功能(General Capabilities) ................................................................................................................ 6
文件设备(File Devices) .................................................................................................................................. 6
记录器类(Recorder Class) ...................................................................................................................... 6
重放控制类(PlaybackControl Class) ............................................................................................................ 6
视频流类(VideoStream Class) ..................................................................................................................................... 7
视频流的基础功能 ............................................................................................................................................. 7
创建和初始化视频流 ................................................................................................................................. 7
基于轮询的数据读取 ................................................................................................................................. 8
基于事件的数据读取 ................................................................................................................................. 8
获取关于视频流的信息 ..................................................................................................................................... 8
视野(Field of View) ................................................................................................................................ 8
配置视频流 ................................................................................................................................................. 8
视频帧引用类(VideoFrameRef Class).................................................................................................................... 9
访问帧数据 ......................................................................................................................................................... 9