41 #include <pcl/pcl_config.h>
46 #include "openni_image.h"
64 ImageBayerGRBG (pcl::shared_ptr<xn::ImageMetaData> image_meta_data, DebayeringMethod method) noexcept;
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;
76 inline void setDebayeringMethod (
const DebayeringMethod& method) noexcept;
77 inline DebayeringMethod getDebayeringMethod ()
const throw ();
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 );