Image Component Library (ICL)
|
Grabber implementation for OpenNI based camera access. More...
#include <OpenNIGrabber.h>
Public Member Functions | |
OpenNIGrabber (std::string args) | |
The constructor. | |
~OpenNIGrabber () | |
Destructor. | |
virtual const core::ImgBase * | acquireImage () |
grab function grabs an image (destination image is adapted on demand) | |
virtual void * | getHandle () |
Private Member Functions | |
void | grabNextImage () |
makes the MapGenerator grab a new image. called repeatedly in thread. | |
void | setGeneratorTo (icl_openni::OpenNIMapGenerator::Generators desired) |
void | processPropertyChange (const utils::Configurable::Property &prop) |
callback for changed configurable properties | |
std::string | getName () |
Returns the string representation of the currently used device. | |
Private Attributes | |
utils::Mutex | m_Mutex |
Mutex used for concurrency issues. | |
std::string | m_Id |
a grabber id | |
icl_openni::OpenNIMapGenerator * | m_Generator |
pointer to the currently used image generator | |
icl_openni::ReadWriteBuffer < core::ImgBase > * | m_Buffer |
internally used ReadWriteBuffer | |
bool | m_OmitDoubleFrames |
whether double frames should be omited | |
Friends | |
class | OpenNIGrabberThread |
Grabber implementation for OpenNI based camera access.
icl::io::OpenNIGrabber::OpenNIGrabber | ( | std::string | args | ) |
The constructor.
args | NodeInfo of the device to use. |
Destructor.
virtual const core::ImgBase* icl::io::OpenNIGrabber::acquireImage | ( | ) | [virtual] |
grab function grabs an image (destination image is adapted on demand)
grab function calls the Grabber-specific acquireImage-method and applies distortion if necessary
If dst is not NULL, it is exploited and filled with image data
Reimplemented from icl::io::Grabber.
virtual void* icl::io::OpenNIGrabber::getHandle | ( | ) | [virtual] |
returns the underlying handle of the grabber. In this case the corresponding MapGenerator.
std::string icl::io::OpenNIGrabber::getName | ( | ) | [private] |
Returns the string representation of the currently used device.
void icl::io::OpenNIGrabber::grabNextImage | ( | ) | [private] |
makes the MapGenerator grab a new image. called repeatedly in thread.
void icl::io::OpenNIGrabber::processPropertyChange | ( | const utils::Configurable::Property & | prop | ) | [private] |
callback for changed configurable properties
Reimplemented from icl::io::Grabber.
void icl::io::OpenNIGrabber::setGeneratorTo | ( | icl_openni::OpenNIMapGenerator::Generators | desired | ) | [private] |
switches the current generator to desired. this function works but after changing to another Generator the camcfg-properties will not be refreshed.
friend class OpenNIGrabberThread [friend] |
internally used ReadWriteBuffer
pointer to the currently used image generator
std::string icl::io::OpenNIGrabber::m_Id [private] |
a grabber id
utils::Mutex icl::io::OpenNIGrabber::m_Mutex [private] |
Mutex used for concurrency issues.
bool icl::io::OpenNIGrabber::m_OmitDoubleFrames [private] |
whether double frames should be omited