Point Cloud Library (PCL)  1.9.1-dev
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
openni_wrapper::ImageBayerGRBG Class Reference

This class provides methods to fill a RGB or Grayscale image buffer from underlying Bayer pattern image. More...

#include <pcl/io/openni_camera/openni_image_bayer_grbg.h>

+ Inheritance diagram for openni_wrapper::ImageBayerGRBG:

Public Types

enum  DebayeringMethod { Bilinear = 0, EdgeAware, EdgeAwareWeighted }
 
- Public Types inherited from openni_wrapper::Image
enum  Encoding { BAYER_GRBG, YUV422, RGB }
 
typedef boost::shared_ptr< ImagePtr
 
typedef boost::shared_ptr< const ImageConstPtr
 

Public Member Functions

 ImageBayerGRBG (boost::shared_ptr< xn::ImageMetaData > image_meta_data, DebayeringMethod method) throw ()
 
virtual ~ImageBayerGRBG () throw ()
 
virtual Encoding getEncoding () const
 returns the encoding of the native data. More...
 
virtual void fillRGB (unsigned width, unsigned height, unsigned char *rgb_buffer, unsigned rgb_line_step=0) const
 fills a user given buffer with the RGB values, with an optional nearest-neighbor down sampling and an optional subregion More...
 
virtual void fillGrayscale (unsigned width, unsigned height, unsigned char *gray_buffer, unsigned gray_line_step=0) const
 fills a user given buffer with the gray values, with an optional nearest-neighbor down sampling and an optional subregion More...
 
virtual bool isResizingSupported (unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height) const
 
void setDebayeringMethod (const DebayeringMethod &method) throw ()
 
DebayeringMethod getDebayeringMethod () const throw ()
 
- Public Member Functions inherited from openni_wrapper::Image
 Image (boost::shared_ptr< xn::ImageMetaData > image_meta_data) throw ()
 Constructor. More...
 
virtual ~Image () throw ()
 virtual Destructor that never throws an exception. More...
 
void fillRaw (unsigned char *rgb_buffer) const throw ()
 fills a user given buffer with the raw values. More...
 
unsigned getWidth () const throw ()
 
unsigned getHeight () const throw ()
 
unsigned getFrameID () const throw ()
 
unsigned long getTimeStamp () const throw ()
 
const xn::ImageMetaData & getMetaData () const throw ()
 

Static Public Member Functions

static bool resizingSupported (unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height)
 

Protected Attributes

DebayeringMethod debayering_method_
 
- Protected Attributes inherited from openni_wrapper::Image
boost::shared_ptr< xn::ImageMetaData > image_md_
 

Detailed Description

This class provides methods to fill a RGB or Grayscale image buffer from underlying Bayer pattern image.

Author
Suat Gedikli gedik.nosp@m.li@w.nosp@m.illow.nosp@m.gara.nosp@m.ge.co.nosp@m.m

Definition at line 53 of file openni_image_bayer_grbg.h.

Member Enumeration Documentation

Enumerator
Bilinear 
EdgeAware 
EdgeAwareWeighted 

Definition at line 56 of file openni_image_bayer_grbg.h.

Constructor & Destructor Documentation

openni_wrapper::ImageBayerGRBG::ImageBayerGRBG ( boost::shared_ptr< xn::ImageMetaData >  image_meta_data,
DebayeringMethod  method 
)
throw (
)
virtual openni_wrapper::ImageBayerGRBG::~ImageBayerGRBG ( )
throw (
)
virtual

Member Function Documentation

virtual void openni_wrapper::ImageBayerGRBG::fillGrayscale ( unsigned  width,
unsigned  height,
unsigned char *  gray_buffer,
unsigned  gray_line_step = 0 
) const
virtual

fills a user given buffer with the gray values, with an optional nearest-neighbor down sampling and an optional subregion

Author
Suat Gedikli
Parameters
[in]widthdesired width of output image.
[in]heightdesired height of output image.
[in,out]gray_bufferthe output gray buffer.
[in]gray_line_stepoptional line step in bytes to allow the output in a rectangular subregion of the output buffer.

Implements openni_wrapper::Image.

virtual void openni_wrapper::ImageBayerGRBG::fillRGB ( unsigned  width,
unsigned  height,
unsigned char *  rgb_buffer,
unsigned  rgb_line_step = 0 
) const
virtual

fills a user given buffer with the RGB values, with an optional nearest-neighbor down sampling and an optional subregion

Author
Suat Gedikli
Parameters
[in]widthdesired width of output image.
[in]heightdesired height of output image.
[in,out]rgb_bufferthe output RGB buffer.
[in]rgb_line_stepoptional line step in bytes to allow the output in a rectangular subregion of the output buffer.

Implements openni_wrapper::Image.

ImageBayerGRBG::DebayeringMethod openni_wrapper::ImageBayerGRBG::getDebayeringMethod ( ) const
throw (
)
inline

Definition at line 91 of file openni_image_bayer_grbg.h.

virtual Encoding openni_wrapper::ImageBayerGRBG::getEncoding ( ) const
inlinevirtual

returns the encoding of the native data.

Author
Suat Gedikli
Returns
encoding

Implements openni_wrapper::Image.

Definition at line 67 of file openni_image_bayer_grbg.h.

virtual bool openni_wrapper::ImageBayerGRBG::isResizingSupported ( unsigned  input_width,
unsigned  input_height,
unsigned  output_width,
unsigned  output_height 
) const
virtual
Author
Suat Gedikli
Parameters
[in]input_widthwidth of input image
[in]input_heightheight of input image
[in]output_widthwidth of desired output image
[in]output_heightheight of desired output image
Returns
whether the resizing is supported or not.

Implements openni_wrapper::Image.

bool openni_wrapper::ImageBayerGRBG::resizingSupported ( unsigned  input_width,
unsigned  input_height,
unsigned  output_width,
unsigned  output_height 
)
inlinestatic

Definition at line 97 of file openni_image_bayer_grbg.h.

void openni_wrapper::ImageBayerGRBG::setDebayeringMethod ( const DebayeringMethod method)
throw (
)
inline

Definition at line 85 of file openni_image_bayer_grbg.h.

Member Data Documentation

DebayeringMethod openni_wrapper::ImageBayerGRBG::debayering_method_
protected

Definition at line 81 of file openni_image_bayer_grbg.h.


The documentation for this class was generated from the following file: