Point Cloud Library (PCL)
1.10.0
|
Image class containing just a reference to image meta data. More...
#include <pcl/io/openni_camera/openni_image.h>
Public Types | |
enum | Encoding { BAYER_GRBG, YUV422, RGB } |
using | Ptr = pcl::shared_ptr< Image > |
using | ConstPtr = pcl::shared_ptr< const Image > |
Public Member Functions | |
Image (pcl::shared_ptr< xn::ImageMetaData > image_meta_data) throw () | |
Constructor. More... | |
virtual | ~Image () throw () |
virtual Destructor that never throws an exception. More... | |
virtual bool | isResizingSupported (unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height) const =0 |
virtual void | fillRGB (unsigned width, unsigned height, unsigned char *rgb_buffer, unsigned rgb_line_step=0) const =0 |
fills a user given buffer with the RGB values, with an optional nearest-neighbor down sampling and an optional subregion More... | |
virtual Encoding | getEncoding () const =0 |
returns the encoding of the native data. More... | |
void | fillRaw (unsigned char *rgb_buffer) const throw () |
fills a user given buffer with the raw values. More... | |
virtual void | fillGrayscale (unsigned width, unsigned height, unsigned char *gray_buffer, unsigned gray_line_step=0) const =0 |
fills a user given buffer with the gray values, with an optional nearest-neighbor down sampling and an optional subregion More... | |
unsigned | getWidth () const throw () |
unsigned | getHeight () const throw () |
unsigned | getFrameID () const throw () |
unsigned long | getTimeStamp () const throw () |
const xn::ImageMetaData & | getMetaData () const throw () |
Protected Attributes | |
pcl::shared_ptr< xn::ImageMetaData > | image_md_ |
Image class containing just a reference to image meta data.
Thus this class just provides an interface to fill a RGB or Grayscale image buffer.
[in] | image_meta_data |
Definition at line 59 of file openni_image.h.
using openni_wrapper::Image::ConstPtr = pcl::shared_ptr<const Image> |
Definition at line 63 of file openni_image.h.
Definition at line 62 of file openni_image.h.
Enumerator | |
---|---|
BAYER_GRBG | |
YUV422 | |
RGB |
Definition at line 65 of file openni_image.h.
|
inline |
Constructor.
[in] | image_meta_data | the actual image data from the OpenNI driver |
Definition at line 172 of file openni_image.h.
|
inlinevirtual |
virtual Destructor that never throws an exception.
Definition at line 177 of file openni_image.h.
|
pure 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. |
Implemented in openni_wrapper::ImageBayerGRBG, openni_wrapper::ImageRGB24, and openni_wrapper::ImageYUV422.
|
inline |
fills a user given buffer with the raw values.
[in,out] | rgb_buffer |
Definition at line 120 of file openni_image.h.
|
pure 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. |
Implemented in openni_wrapper::ImageBayerGRBG, openni_wrapper::ImageRGB24, and openni_wrapper::ImageYUV422.
|
pure virtual |
returns the encoding of the native data.
Implemented in openni_wrapper::ImageBayerGRBG, openni_wrapper::ImageRGB24, and openni_wrapper::ImageYUV422.
|
inline |
Definition at line 192 of file openni_image.h.
|
inline |
Definition at line 186 of file openni_image.h.
|
inline |
Definition at line 204 of file openni_image.h.
|
inline |
Definition at line 198 of file openni_image.h.
|
inline |
Definition at line 180 of file openni_image.h.
|
pure 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 |
Implemented in openni_wrapper::ImageBayerGRBG, openni_wrapper::ImageRGB24, and openni_wrapper::ImageYUV422.
|
protected |
Definition at line 169 of file openni_image.h.