41 #include <pcl/pcl_config.h>
46 #include "openni_image.h"
68 getEncoding ()
const override
73 void fillRGB (
unsigned width,
unsigned height,
unsigned char* rgb_buffer,
unsigned rgb_line_step = 0)
const override;
74 void fillGrayscale (
unsigned width,
unsigned height,
unsigned char* gray_buffer,
unsigned gray_line_step = 0)
const override;
75 bool isResizingSupported (
unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height)
const override;
78 inline static
bool resizingSupported (
unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height);
88 debayering_method_ = method;
94 return debayering_method_;
100 return (output_width <= input_width && output_height <= input_height && input_width % output_width == 0 && input_height % output_height == 0 );
This class provides methods to fill a RGB or Grayscale image buffer from underlying Bayer pattern ima...
ImageBayerGRBG(pcl::shared_ptr< xn::ImageMetaData > image_meta_data, DebayeringMethod method) noexcept
static bool resizingSupported(unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height)
DebayeringMethod getDebayeringMethod() const 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...
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...
~ImageBayerGRBG() noexcept override
Image class containing just a reference to image meta data.
Defines functions, macros and traits for allocating and using memory.
Defines all the PCL and non-PCL macros used.