37 #ifndef __OPENNI_IMAGE__ 38 #define __OPENNI_IMAGE__ 40 #include <XnCppWrapper.h> 42 #include <boost/shared_ptr.hpp> 68 inline virtual ~Image () throw ();
70 unsigned output_width,
unsigned output_height) const = 0;
71 virtual
void fillRGB (
unsigned width,
unsigned height,
unsigned char* rgb_buffer,
77 fillRaw (
unsigned char* rgb_buffer) const throw (OpenNIException)
82 virtual void fillGrayscale (
unsigned width,
unsigned height,
unsigned char* gray_buffer,
85 inline unsigned getWidth ()
const throw ();
86 inline unsigned getHeight ()
const throw ();
89 inline const xn::ImageMetaData&
getMetaData ()
const throw ();
122 return (
unsigned long)
image_md_->Timestamp ();
135 #endif //__OPENNI_IMAGE__ virtual Encoding getEncoding() const =0
Image(boost::shared_ptr< xn::ImageMetaData > image_meta_data)
const xn::ImageMetaData & getMetaData() const
Image class containing just a reference to image meta data. Thus this class just provides an interfac...
virtual void fillRGB(unsigned width, unsigned height, unsigned char *rgb_buffer, unsigned rgb_line_step=0) const =0
unsigned getWidth() const
virtual bool isResizingSupported(unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height) const =0
virtual void fillGrayscale(unsigned width, unsigned height, unsigned char *gray_buffer, unsigned gray_line_step=0) const =0
unsigned getHeight() const
boost::shared_ptr< xn::ImageMetaData > image_md_
unsigned long getTimeStamp() const
void fillRaw(unsigned char *rgb_buffer) const
const boost::shared_ptr< xn::ImageMetaData > getMetaDataPtr() const
unsigned getFrameID() const
boost::shared_ptr< Image > Ptr
boost::shared_ptr< const Image > ConstPtr