40 #ifndef __OPENNI_DEVICE_KINECT__
41 #define __OPENNI_DEVICE_KINECT__
47 namespace openni_wrapper
56 class DeviceKinect :
public OpenNIDevice
58 friend class OpenNIDriver;
60 DeviceKinect (xn::Context& context,
const xn::NodeInfo& device_node,
const xn::NodeInfo& image_node,
const xn::NodeInfo& depth_node,
const xn::NodeInfo& ir_node);
61 virtual ~DeviceKinect () throw ();
63 inline
void setDebayeringMethod (const ImageBayerGRBG::DebayeringMethod& debayering_method) throw ();
64 inline const ImageBayerGRBG::DebayeringMethod& getDebayeringMethod () const throw ();
67 virtual boost::shared_ptr<Image> getCurrentImage (boost::shared_ptr<xn::ImageMetaData> image_meta_data) const throw ();
68 void enumAvailableModes () throw ();
69 virtual
bool isImageResizeSupported (
unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height) const throw ();
70 ImageBayerGRBG::DebayeringMethod debayering_method_;
74 DeviceKinect::setDebayeringMethod (const ImageBayerGRBG::DebayeringMethod& debayering_method) throw ()
76 debayering_method_ = debayering_method;
79 const ImageBayerGRBG::DebayeringMethod&
80 DeviceKinect::getDebayeringMethod ()
const throw ()
82 return debayering_method_;
87 #endif // __OPENNI_DEVICE_KINECT__