Interface to video capture sources. More...
#include <openni.h>

Public Member Functions | |
| bool | GrabNewest (unsigned char *image, bool wait=true) |
| bool | GrabNext (unsigned char *image, bool wait=true) |
| unsigned | Height () const |
| OpenNiVideo (OpenNiSensorType s1, OpenNiSensorType s2) | |
| std::string | PixFormat () const |
| size_t | SizeBytes () const |
| void | Start () |
| void | Stop () |
| unsigned | Width () const |
| ~OpenNiVideo () | |
Protected Attributes | |
| xn::Context | context |
| xn::DepthGenerator | depthNode |
| xn::ImageGenerator | imageNode |
| xn::IRGenerator | irNode |
| OpenNiSensorType | s1 |
| size_t | s1SizeBytes |
| OpenNiSensorType | s2 |
| size_t | s2SizeBytes |
| size_t | sizeBytes |
Definition at line 6 of file openni.cpp.
Definition at line 105 of file openni.cpp.
| bool pangolin::OpenNiVideo::GrabNewest | ( | unsigned char * | image, |
| bool | wait = true |
||
| ) | [virtual] |
Copy the newest frame from the camera to image discarding all older frames. Optionally wait for a frame if one isn't ready Returns true iff image was copied
Implements pangolin::VideoInterface.
Definition at line 196 of file openni.cpp.
| bool pangolin::OpenNiVideo::GrabNext | ( | unsigned char * | image, |
| bool | wait = true |
||
| ) | [virtual] |
Copy the next frame from the camera to image. Optionally wait for a frame if one isn't ready Returns true iff image was copied
Implements pangolin::VideoInterface.
Definition at line 147 of file openni.cpp.
| unsigned pangolin::OpenNiVideo::Height | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
Definition at line 115 of file openni.cpp.
| std::string pangolin::OpenNiVideo::PixFormat | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
Definition at line 125 of file openni.cpp.
| size_t pangolin::OpenNiVideo::SizeBytes | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
Definition at line 120 of file openni.cpp.
| void pangolin::OpenNiVideo::Start | ( | ) | [virtual] |
Implements pangolin::VideoInterface.
Definition at line 137 of file openni.cpp.
| void pangolin::OpenNiVideo::Stop | ( | ) | [virtual] |
Implements pangolin::VideoInterface.
Definition at line 142 of file openni.cpp.
| unsigned pangolin::OpenNiVideo::Width | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
Definition at line 110 of file openni.cpp.
xn::Context pangolin::OpenNiVideo::context [protected] |
xn::DepthGenerator pangolin::OpenNiVideo::depthNode [protected] |
xn::ImageGenerator pangolin::OpenNiVideo::imageNode [protected] |
xn::IRGenerator pangolin::OpenNiVideo::irNode [protected] |
OpenNiSensorType pangolin::OpenNiVideo::s1 [protected] |
size_t pangolin::OpenNiVideo::s1SizeBytes [protected] |
OpenNiSensorType pangolin::OpenNiVideo::s2 [protected] |
size_t pangolin::OpenNiVideo::s2SizeBytes [protected] |
size_t pangolin::OpenNiVideo::sizeBytes [protected] |