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>


Public Types | |
| enum | DebayeringMethod { Bilinear = 0, EdgeAware, EdgeAwareWeighted } |
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. | |
| 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 | |
| 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 | |
| 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 () |
Static Public Member Functions | |
| static bool | resizingSupported (unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height) |
Protected Attributes | |
| DebayeringMethod | debayering_method_ |
This class provides methods to fill a RGB or Grayscale image buffer from underlying Bayer pattern image.
Definition at line 52 of file openni_image_bayer_grbg.h.
Definition at line 55 of file openni_image_bayer_grbg.h.
| openni_wrapper::ImageBayerGRBG::ImageBayerGRBG | ( | boost::shared_ptr< xn::ImageMetaData > | image_meta_data, | |
| DebayeringMethod | method | |||
| ) | throw () |
| virtual openni_wrapper::ImageBayerGRBG::~ImageBayerGRBG | ( | ) | throw () [virtual] |
| 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
| [in] | width | desired width of output image. |
| [in] | height | desired height of output image. |
| [in,out] | gray_buffer | the output gray buffer. |
| [in] | gray_line_step | optional 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
| [in] | width | desired width of output image. |
| [in] | height | desired height of output image. |
| [in,out] | rgb_buffer | the output RGB buffer. |
| [in] | rgb_line_step | optional 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 90 of file openni_image_bayer_grbg.h.
References debayering_method_.
| virtual Encoding openni_wrapper::ImageBayerGRBG::getEncoding | ( | ) | const [inline, virtual] |
returns the encoding of the native data.
Implements openni_wrapper::Image.
Definition at line 66 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] |
| [in] | input_width | width of input image |
| [in] | input_height | height of input image |
| [in] | output_width | width of desired output image |
| [in] | output_height | height of desired output image |
Implements openni_wrapper::Image.
| bool openni_wrapper::ImageBayerGRBG::resizingSupported | ( | unsigned | input_width, | |
| unsigned | input_height, | |||
| unsigned | output_width, | |||
| unsigned | output_height | |||
| ) | [inline, static] |
Definition at line 96 of file openni_image_bayer_grbg.h.
| void openni_wrapper::ImageBayerGRBG::setDebayeringMethod | ( | const DebayeringMethod & | method | ) | throw () [inline] |
Definition at line 84 of file openni_image_bayer_grbg.h.
Definition at line 80 of file openni_image_bayer_grbg.h.
Referenced by getDebayeringMethod().