37 #ifndef __OPENNI_IMAGE_BAYER_GRBG__ 38 #define __OPENNI_IMAGE_BAYER_GRBG__ 68 virtual void fillRGB (
unsigned width,
unsigned height,
unsigned char* rgb_buffer,
unsigned rgb_line_step = 0)
const throw (
OpenNIException);
69 virtual void fillGrayscale (
unsigned width,
unsigned height,
unsigned char* gray_buffer,
unsigned gray_line_step = 0)
const throw (
OpenNIException);
70 virtual bool isResizingSupported (
unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height)
const;
73 inline static bool resizingSupported (
unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height);
90 return (output_width <= input_width && output_height <= input_height && input_width % output_width == 0 && input_height % output_height == 0 );
94 #endif // __OPENNI_IMAGE__
void setDebayeringMethod(const DebayeringMethod &method)
Image class containing just a reference to image meta data. Thus this class just provides an interfac...
virtual bool isResizingSupported(unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height) const
DebayeringMethod debayering_method_
DebayeringMethod getDebayeringMethod() const
virtual ~ImageBayerGRBG()
virtual void fillRGB(unsigned width, unsigned height, unsigned char *rgb_buffer, unsigned rgb_line_step=0) const
This class provides methods to fill a RGB or Grayscale image buffer from underlying Bayer pattern ima...
ImageBayerGRBG(boost::shared_ptr< xn::ImageMetaData > image_meta_data, DebayeringMethod method)
virtual Encoding getEncoding() const
virtual void fillGrayscale(unsigned width, unsigned height, unsigned char *gray_buffer, unsigned gray_line_step=0) const
static bool resizingSupported(unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height)