On this page
This class provides methods to fill a RGB or Grayscale image buffer from underlying RGB24 image. More...
#include <pcl/io/image_rgb24.h>
Public Member Functions |
|
| ImageRGB24 (FrameWrapper::Ptr image_metadata) | |
| ImageRGB24 (FrameWrapper::Ptr image_metadata, Timestamp timestamp) | |
| ~ImageRGB24 () 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 |
| Image (FrameWrapper::Ptr image_metadata) | |
| Image (FrameWrapper::Ptr image_metadata, Timestamp time) | |
| virtual | ~Image ()=default |
| virtual Destructor that never throws an exception. More... |
|
| virtual void | fillRaw (unsigned char *rgb_buffer) const |
| fills a user given buffer with the raw values. More... |
|
| 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 |
|
| 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 |
| FrameWrapper::Ptr | wrapper_ |
| Timestamp | timestamp_ |
Detailed Description
This class provides methods to fill a RGB or Grayscale image buffer from underlying RGB24 image.
Definition at line 52 of file image_rgb24.h.
Constructor & Destructor Documentation
ImageRGB24() [1/2]
| pcl::io::ImageRGB24::ImageRGB24 | ( | FrameWrapper::Ptr | image_metadata | ) |
ImageRGB24() [2/2]
| pcl::io::ImageRGB24::ImageRGB24 | ( | FrameWrapper::Ptr | image_metadata, |
| Timestamp | timestamp | ||
| ) |
~ImageRGB24()
|
overridenoexcept |
Member Function Documentation
fillGrayscale()
|
overridevirtual |
fills a user given buffer with the gray values, with an optional nearest-neighbor down sampling and an optional subregion
- 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 pcl::io::Image.
fillRGB()
|
overridevirtual |
fills a user given buffer with the RGB values, with an optional nearest-neighbor down sampling and an optional subregion
- 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 pcl::io::Image.
getEncoding()
|
inlineoverridevirtual |
returns the encoding of the native data.
- Returns
- encoding
Implements pcl::io::Image.
Definition at line 61 of file image_rgb24.h.
isResizingSupported()
|
overridevirtual |
- 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 pcl::io::Image.
The documentation for this class was generated from the following file:
- pcl/io/image_rgb24.h
© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/classpcl_1_1io_1_1_image_r_g_b24.html