36 #include <pcl/pcl_config.h>
39 #ifndef __OPENNI_IMAGE_YUV422__
40 #define __OPENNI_IMAGE_YUV422__
41 #include <pcl/pcl_macros.h>
42 #include "openni_image.h"
44 namespace openni_wrapper
56 ImageYUV422 (boost::shared_ptr<xn::ImageMetaData> image_meta_data)
throw ();
65 virtual bool isResizingSupported (
unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height)
const;
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 inline static bool resizingSupported (
unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height);
74 return (output_width <= input_width && output_height <= input_height && input_width % output_width == 0 && input_height % output_height == 0);
79 #endif // __OPENNI_IMAGE__
virtual Encoding getEncoding() const
returns the encoding of the native data.
static bool resizingSupported(unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height)
Concrete implementation of the interface Image for a YUV 422 image used by Primesense devices...
Image class containing just a reference to image meta data.