39 #include <pcl/pcl_config.h>
43 #include "openni_image.h"
59 ImageRGB24 (pcl::shared_ptr<xn::ImageMetaData> image_meta_data) noexcept;
63 getEncoding ()
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 bool isResizingSupported (
unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height)
const override;
71 inline static bool resizingSupported (
unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height);
77 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.
This class provides methods to fill a RGB or Grayscale image buffer from underlying RGB24 image.
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...
bool isResizingSupported(unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height) const override
~ImageRGB24() noexcept override
ImageRGB24(pcl::shared_ptr< xn::ImageMetaData > image_meta_data) noexcept
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...
static bool resizingSupported(unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height)
Defines functions, macros and traits for allocating and using memory.
Defines all the PCL and non-PCL macros used.