|
Point Cloud Library (PCL) 1.15.0
|
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 Types inherited from openni_wrapper::Image | |
| enum | Encoding { BAYER_GRBG , YUV422 , RGB } |
| using | Ptr = pcl::shared_ptr<Image> |
| using | ConstPtr = pcl::shared_ptr<const Image> |
Public Member Functions | |
| 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. | |
| 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 | |
| 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 | |
| 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 |
| Public Member Functions inherited from openni_wrapper::Image | |
| Image (pcl::shared_ptr< xn::ImageMetaData > image_meta_data) noexcept | |
| Constructor. | |
| virtual | ~Image () noexcept |
| virtual Destructor that never throws an exception. | |
| void | fillRaw (unsigned char *rgb_buffer) const noexcept |
| fills a user given buffer with the raw values. | |
| unsigned | getWidth () const noexcept |
| unsigned | getHeight () const noexcept |
| unsigned | getFrameID () const noexcept |
| unsigned long | getTimeStamp () const noexcept |
| const xn::ImageMetaData & | getMetaData () const noexcept |
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 | |
| pcl::shared_ptr< xn::ImageMetaData > | image_md_ |
This class provides methods to fill a RGB or Grayscale image buffer from underlying Bayer pattern image.
Definition at line 54 of file openni_image_bayer_grbg.h.
| Enumerator | |
|---|---|
| Bilinear | |
| EdgeAware | |
| EdgeAwareWeighted | |
Definition at line 57 of file openni_image_bayer_grbg.h.
|
noexcept |
Referenced by setDebayeringMethod().
|
overridenoexcept |
|
overridevirtual |
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.
|
overridevirtual |
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.
|
inlinenoexcept |
Definition at line 92 of file openni_image_bayer_grbg.h.
References debayering_method_, and getDebayeringMethod().
Referenced by getDebayeringMethod(), and isResizingSupported().
|
inlineoverridevirtual |
returns the encoding of the native data.
Implements openni_wrapper::Image.
Definition at line 68 of file openni_image_bayer_grbg.h.
References openni_wrapper::Image::BAYER_GRBG, and getEncoding().
Referenced by getEncoding().
|
overridevirtual |
| [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.
References getDebayeringMethod(), resizingSupported(), and setDebayeringMethod().
|
inlinestatic |
Definition at line 98 of file openni_image_bayer_grbg.h.
References resizingSupported().
Referenced by isResizingSupported(), and resizingSupported().
|
inlinenoexcept |
Definition at line 86 of file openni_image_bayer_grbg.h.
References debayering_method_, ImageBayerGRBG(), and setDebayeringMethod().
Referenced by isResizingSupported(), and setDebayeringMethod().
|
protected |
Definition at line 82 of file openni_image_bayer_grbg.h.
Referenced by getDebayeringMethod(), and setDebayeringMethod().