37 #ifndef __OPENNI_IMAGE_RGB__ 38 #define __OPENNI_IMAGE_RGB__ 62 virtual void fillRGB (
unsigned width,
unsigned height,
unsigned char* rgb_buffer,
unsigned rgb_line_step = 0)
const throw (
OpenNIException);
63 virtual void fillGrayscale (
unsigned width,
unsigned height,
unsigned char* gray_buffer,
unsigned gray_line_step = 0)
const throw (
OpenNIException);
64 virtual bool isResizingSupported (
unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height)
const;
65 inline static bool resizingSupported (
unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height);
70 return (output_width <= input_width && output_height <= input_height && input_width % output_width == 0 && input_height % output_height == 0 );
75 #endif // __OPENNI_IMAGE_RGB__ virtual void fillRGB(unsigned width, unsigned height, unsigned char *rgb_buffer, unsigned rgb_line_step=0) const
This class provides methods to fill a RGB or Grayscale image buffer from underlying RGB24 image...
Image class containing just a reference to image meta data. Thus this class just provides an interfac...
virtual void fillGrayscale(unsigned width, unsigned height, unsigned char *gray_buffer, unsigned gray_line_step=0) const
ImageRGB24(boost::shared_ptr< xn::ImageMetaData > image_meta_data)
virtual bool isResizingSupported(unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height) const
virtual Encoding getEncoding() const
static bool resizingSupported(unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height)