Point Cloud Library (PCL) 1.15.1
Loading...
Searching...
No Matches
openni_wrapper::ImageRGB24 Class Reference

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

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

Inheritance diagram for openni_wrapper::ImageRGB24:

Public Member Functions

 ImageRGB24 (pcl::shared_ptr< xn::ImageMetaData > image_meta_data) noexcept
 ~ImageRGB24 () 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
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)

Additional Inherited Members

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>
Protected Attributes inherited from openni_wrapper::Image
pcl::shared_ptr< xn::ImageMetaData > image_md_

Detailed Description

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

Author
Suat Gedikli
Date
19. June 2011

Definition at line 55 of file openni_image_rgb24.h.

Constructor & Destructor Documentation

◆ ImageRGB24()

openni_wrapper::ImageRGB24::ImageRGB24 ( pcl::shared_ptr< xn::ImageMetaData > image_meta_data)
noexcept

◆ ~ImageRGB24()

openni_wrapper::ImageRGB24::~ImageRGB24 ( )
overridenoexcept

Member Function Documentation

◆ fillGrayscale()

void openni_wrapper::ImageRGB24::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]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.

◆ fillRGB()

void openni_wrapper::ImageRGB24::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]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.

◆ getEncoding()

Encoding openni_wrapper::ImageRGB24::getEncoding ( ) const
inlineoverridevirtual

returns the encoding of the native data.

Author
Suat Gedikli
Returns
encoding

Implements openni_wrapper::Image.

Definition at line 63 of file openni_image_rgb24.h.

References getEncoding(), and openni_wrapper::Image::RGB.

Referenced by getEncoding().

◆ isResizingSupported()

bool openni_wrapper::ImageRGB24::isResizingSupported ( unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height ) const
overridevirtual
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.

References resizingSupported().

◆ resizingSupported()

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

Definition at line 75 of file openni_image_rgb24.h.

Referenced by isResizingSupported().


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