Point Cloud Library (PCL) 1.15.1
Loading...
Searching...
No Matches
pcl::io::ImageYUV422 Class Reference

Concrete implementation of the interface Image for a YUV 422 image used by Primesense devices. More...

#include <pcl/io/image_yuv422.h>

Inheritance diagram for pcl::io::ImageYUV422:

Public Member Functions

 ImageYUV422 (FrameWrapper::Ptr image_metadata)
 ImageYUV422 (FrameWrapper::Ptr image_metadata, Timestamp timestamp)
 ~ImageYUV422 () 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 pcl::io::Image
 Image (FrameWrapper::Ptr image_metadata)
 Image (FrameWrapper::Ptr image_metadata, Timestamp time)
virtual ~Image ()=default
 virtual Destructor that never throws an exception.
virtual void fillRaw (unsigned char *rgb_buffer) const
 fills a user given buffer with the raw values.
unsigned getWidth () const
unsigned getHeight () const
unsigned getFrameID () const
std::uint64_t getTimestamp () const
Timestamp getSystemTimestamp () const
const void * getData ()
int getDataSize () const
unsigned getStep () const

Additional Inherited Members

Public Types inherited from pcl::io::Image
enum  Encoding { BAYER_GRBG , YUV422 , RGB }
using Ptr = shared_ptr<Image>
using ConstPtr = shared_ptr<const Image>
using Clock = std::chrono::high_resolution_clock
using Timestamp = std::chrono::high_resolution_clock::time_point
Protected Attributes inherited from pcl::io::Image
FrameWrapper::Ptr wrapper_
Timestamp timestamp_

Detailed Description

Concrete implementation of the interface Image for a YUV 422 image used by Primesense devices.

Definition at line 52 of file image_yuv422.h.

Constructor & Destructor Documentation

◆ ImageYUV422() [1/2]

pcl::io::ImageYUV422::ImageYUV422 ( FrameWrapper::Ptr image_metadata)

◆ ImageYUV422() [2/2]

pcl::io::ImageYUV422::ImageYUV422 ( FrameWrapper::Ptr image_metadata,
Timestamp timestamp )

◆ ~ImageYUV422()

pcl::io::ImageYUV422::~ImageYUV422 ( )
overridenoexcept

Member Function Documentation

◆ fillGrayscale()

void pcl::io::ImageYUV422::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

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 pcl::io::Image.

◆ fillRGB()

void pcl::io::ImageYUV422::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

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 pcl::io::Image.

◆ getEncoding()

Encoding pcl::io::ImageYUV422::getEncoding ( ) const
inlineoverridevirtual

returns the encoding of the native data.

Returns
encoding

Implements pcl::io::Image.

Definition at line 61 of file image_yuv422.h.

References getEncoding(), and pcl::io::Image::YUV422.

Referenced by getEncoding().

◆ isResizingSupported()

bool pcl::io::ImageYUV422::isResizingSupported ( unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height ) const
overridevirtual
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 pcl::io::Image.


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