Point Cloud Library (PCL)
1.7.0
|
PCL-LZF 24-bit RGB image format writer. More...
#include <pcl/io/lzf_image_io.h>
Public Member Functions | |
LZFRGB24ImageWriter () | |
Empty constructor. | |
virtual | ~LZFRGB24ImageWriter () |
Empty destructor. | |
virtual bool | write (const char *data, uint32_t width, uint32_t height, const std::string &filename) |
Save a 24-bit RGB image into PCL-LZF format. | |
virtual bool | writeParameters (const CameraParameters ¶meters, const std::string &filename) |
Write camera parameters to disk. |
PCL-LZF 24-bit RGB image format writer.
The main advantage of using the PCL-LZF image I/O routines is a very good file size versus I/O speed ratio. Tests performed using LZF, Snappy, ZIP, GZ2, BZIP2, as well as PNG, JPEG, and TIFF compression have shown that the internal PCL LZF methods provide the best score for the types of applications PCL is suited for.
Definition at line 537 of file lzf_image_io.h.
pcl::io::LZFRGB24ImageWriter::LZFRGB24ImageWriter | ( | ) | [inline] |
Empty constructor.
Definition at line 541 of file lzf_image_io.h.
virtual pcl::io::LZFRGB24ImageWriter::~LZFRGB24ImageWriter | ( | ) | [inline, virtual] |
Empty destructor.
Definition at line 543 of file lzf_image_io.h.
virtual bool pcl::io::LZFRGB24ImageWriter::write | ( | const char * | data, |
uint32_t | width, | ||
uint32_t | height, | ||
const std::string & | filename | ||
) | [virtual] |
Save a 24-bit RGB image into PCL-LZF format.
[in] | data | the array holding the RGB image (as [RGB..RGB] or [BGR..BGR]) |
[in] | width | the with of the data array |
[in] | height | the height of the data array |
[in] | filename | the file name to write (preferred extension: .pclzf) |
Implements pcl::io::LZFImageWriter.
Reimplemented in pcl::io::LZFBayer8ImageWriter, and pcl::io::LZFYUV422ImageWriter.
virtual bool pcl::io::LZFRGB24ImageWriter::writeParameters | ( | const CameraParameters & | parameters, |
const std::string & | filename | ||
) | [virtual] |
Write camera parameters to disk.
[in] | parameters | the camera parameters |
[in] | filename | the file name to write |
Implements pcl::io::LZFImageWriter.