36 #include <pcl/pcl_config.h>
39 #ifndef __OPENNI_IMAGE_RGB__
40 #define __OPENNI_IMAGE_RGB__
41 #include "openni_image.h"
42 #include <pcl/pcl_macros.h>
44 namespace openni_wrapper
57 ImageRGB24 (boost::shared_ptr<xn::ImageMetaData> image_meta_data)
throw ();
66 virtual void fillRGB (
unsigned width,
unsigned height,
unsigned char* rgb_buffer,
unsigned rgb_line_step = 0)
const;
67 virtual void fillGrayscale (
unsigned width,
unsigned height,
unsigned char* gray_buffer,
unsigned gray_line_step = 0)
const;
68 virtual bool isResizingSupported (
unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height)
const;
69 inline static bool resizingSupported (
unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height);
75 return (output_width <= input_width && output_height <= input_height && input_width % output_width == 0 && input_height % output_height == 0 );
80 #endif // __OPENNI_IMAGE_RGB__
virtual Encoding getEncoding() const
returns the encoding of the native data.
Image class containing just a reference to image meta data.
This class provides methods to fill a RGB or Grayscale image buffer from underlying RGB24 image...
static bool resizingSupported(unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height)