39 #include <pcl/pcl_config.h>
44 #include "openni_image.h"
58 ImageYUV422 (pcl::shared_ptr<xn::ImageMetaData> image_meta_data) noexcept;
62 getEncoding ()
const override
67 bool isResizingSupported (
unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height)
const override;
68 void fillRGB (
unsigned width,
unsigned height,
unsigned char* rgb_buffer,
unsigned rgb_line_step = 0)
const override;
69 void fillGrayscale (
unsigned width,
unsigned height,
unsigned char* gray_buffer,
unsigned gray_line_step = 0)
const override;
70 inline static bool resizingSupported (
unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height);
76 return (output_width <= input_width && output_height <= input_height && input_width % output_width == 0 && input_height % output_height == 0);
Image class containing just a reference to image meta data.
Concrete implementation of the interface Image for a YUV 422 image used by Primesense devices.
~ImageYUV422() noexcept override
ImageYUV422(pcl::shared_ptr< xn::ImageMetaData > image_meta_data) noexcept
bool isResizingSupported(unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height) const override
void fillGrayscale(unsigned width, unsigned height, unsigned char *gray_buffer, unsigned gray_line_step=0) const override
fills a user given buffer with the gray values, with an optional nearest-neighbor down sampling and a...
static bool resizingSupported(unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height)
void fillRGB(unsigned width, unsigned height, unsigned char *rgb_buffer, unsigned rgb_line_step=0) const override
fills a user given buffer with the RGB values, with an optional nearest-neighbor down sampling and an...
Defines functions, macros and traits for allocating and using memory.
Defines all the PCL and non-PCL macros used.