Point Cloud Library (PCL)  1.8.1-dev
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
List of all members | Public Member Functions
pcl::io::LZFYUV422ImageWriter Class Reference

PCL-LZF 16-bit YUV422 image format writer. More...

#include <pcl/io/lzf_image_io.h>

+ Inheritance diagram for pcl::io::LZFYUV422ImageWriter:

Public Member Functions

 LZFYUV422ImageWriter ()
 Empty constructor. More...
 
virtual ~LZFYUV422ImageWriter ()
 Empty destructor. More...
 
virtual bool write (const char *data, uint32_t width, uint32_t height, const std::string &filename)
 Save a 16-bit YUV422 image into PCL-LZF format. More...
 
- Public Member Functions inherited from pcl::io::LZFRGB24ImageWriter
 LZFRGB24ImageWriter ()
 Empty constructor. More...
 
virtual ~LZFRGB24ImageWriter ()
 Empty destructor. More...
 
virtual bool writeParameters (const CameraParameters &parameters, const std::string &filename)
 Write camera parameters to disk. More...
 
- Public Member Functions inherited from pcl::io::LZFImageWriter
 LZFImageWriter ()
 Empty constructor. More...
 
virtual ~LZFImageWriter ()
 Empty destructor. More...
 
virtual bool write (const char *data, uint32_t width, uint32_t height, const CameraParameters &parameters, const std::string &filename_data, const std::string &filename_xml)
 Save an image and its camera parameters into PCL-LZF format. More...
 
bool writeParameter (const double &parameter, const std::string &tag, const std::string &filename)
 Write a single image/camera parameter to file, given an XML tag. More...
 

Additional Inherited Members

- Protected Member Functions inherited from pcl::io::LZFImageWriter
bool saveImageBlob (const char *data, size_t data_size, const std::string &filename)
 Save a compressed image array to disk. More...
 
uint32_t compress (const char *input, uint32_t input_size, uint32_t width, uint32_t height, const std::string &image_type, char *output)
 Realtime LZF compression. More...
 

Detailed Description

PCL-LZF 16-bit YUV422 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.

Author
Radu B. Rusu

Definition at line 580 of file lzf_image_io.h.

Constructor & Destructor Documentation

pcl::io::LZFYUV422ImageWriter::LZFYUV422ImageWriter ( )
inline

Empty constructor.

Definition at line 584 of file lzf_image_io.h.

virtual pcl::io::LZFYUV422ImageWriter::~LZFYUV422ImageWriter ( )
inlinevirtual

Empty destructor.

Definition at line 586 of file lzf_image_io.h.

Member Function Documentation

virtual bool pcl::io::LZFYUV422ImageWriter::write ( const char *  data,
uint32_t  width,
uint32_t  height,
const std::string &  filename 
)
virtual

Save a 16-bit YUV422 image into PCL-LZF format.

Parameters
[in]datathe array holding the YUV422 image (as [YUYV...YUYV])
[in]widththe with of the data array
[in]heightthe height of the data array
[in]filenamethe file name to write (preferred extension: .pclzf)
Returns
true if operation successful, false otherwise

Reimplemented from pcl::io::LZFRGB24ImageWriter.


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