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>
|
| ImageBayerGRBG (pcl::shared_ptr< xn::ImageMetaData > image_meta_data, DebayeringMethod method) noexcept |
|
| ~ImageBayerGRBG () noexcept override |
|
Encoding | getEncoding () const override |
| returns the encoding of the native data. More...
|
|
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 optional subregion More...
|
|
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 an optional subregion More...
|
|
bool | isResizingSupported (unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height) const override |
|
void | setDebayeringMethod (const DebayeringMethod &method) noexcept |
|
DebayeringMethod | getDebayeringMethod () const noexcept |
|
| Image (pcl::shared_ptr< xn::ImageMetaData > image_meta_data) noexcept |
| Constructor. More...
|
|
virtual | ~Image () noexcept |
| virtual Destructor that never throws an exception. More...
|
|
void | fillRaw (unsigned char *rgb_buffer) const noexcept |
| fills a user given buffer with the raw values. More...
|
|
unsigned | getWidth () const noexcept |
|
unsigned | getHeight () const noexcept |
|
unsigned | getFrameID () const noexcept |
|
unsigned long | getTimeStamp () const noexcept |
|
const xn::ImageMetaData & | getMetaData () const noexcept |
|
|
static bool | resizingSupported (unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height) |
|
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 54 of file openni_image_bayer_grbg.h.
◆ DebayeringMethod
◆ ImageBayerGRBG()
openni_wrapper::ImageBayerGRBG::ImageBayerGRBG |
( |
pcl::shared_ptr< xn::ImageMetaData > |
image_meta_data, |
|
|
DebayeringMethod |
method |
|
) |
| |
|
noexcept |
◆ ~ImageBayerGRBG()
openni_wrapper::ImageBayerGRBG::~ImageBayerGRBG |
( |
| ) |
|
|
overridenoexcept |
◆ fillGrayscale()
void openni_wrapper::ImageBayerGRBG::fillGrayscale |
( |
unsigned |
width, |
|
|
unsigned |
height, |
|
|
unsigned char * |
gray_buffer, |
|
|
unsigned |
gray_line_step = 0 |
|
) |
| const |
|
overridevirtual |
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] | 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.
◆ fillRGB()
void openni_wrapper::ImageBayerGRBG::fillRGB |
( |
unsigned |
width, |
|
|
unsigned |
height, |
|
|
unsigned char * |
rgb_buffer, |
|
|
unsigned |
rgb_line_step = 0 |
|
) |
| const |
|
overridevirtual |
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] | 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.
◆ getDebayeringMethod()
◆ getEncoding()
Encoding openni_wrapper::ImageBayerGRBG::getEncoding |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isResizingSupported()
bool openni_wrapper::ImageBayerGRBG::isResizingSupported |
( |
unsigned |
input_width, |
|
|
unsigned |
input_height, |
|
|
unsigned |
output_width, |
|
|
unsigned |
output_height |
|
) |
| const |
|
overridevirtual |
- Author
- Suat Gedikli
- Parameters
-
[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 |
- Returns
- whether the resizing is supported or not.
Implements openni_wrapper::Image.
◆ resizingSupported()
bool openni_wrapper::ImageBayerGRBG::resizingSupported |
( |
unsigned |
input_width, |
|
|
unsigned |
input_height, |
|
|
unsigned |
output_width, |
|
|
unsigned |
output_height |
|
) |
| |
|
inlinestatic |
◆ setDebayeringMethod()
void openni_wrapper::ImageBayerGRBG::setDebayeringMethod |
( |
const DebayeringMethod & |
method | ) |
|
|
inlinenoexcept |
◆ debayering_method_
The documentation for this class was generated from the following file: