pcl::io::LZFRGB24ImageReader Class Reference
[Module io]

PCL-LZF 24-bit RGB image format reader. More...

#include <pcl/io/lzf_image_io.h>

Inheritance diagram for pcl::io::LZFRGB24ImageReader:
Inheritance graph
[legend]
Collaboration diagram for pcl::io::LZFRGB24ImageReader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LZFRGB24ImageReader ()
 Empty constructor.
virtual ~LZFRGB24ImageReader ()
 Empty destructor.
template<typename PointT >
bool read (const std::string &filename, pcl::PointCloud< PointT > &cloud)
 Read the data stored in a PCLZF RGB file and convert it to a pcl::PointCloud type.
template<typename PointT >
bool readOMP (const std::string &filename, pcl::PointCloud< PointT > &cloud, unsigned int num_threads=0)
 Read the data stored in a PCLZF RGB file and convert it to a pcl::PointCloud type.
virtual bool readParameters (std::istream &is)
 Read camera parameters from a given stream and store them internally.

Detailed Description

PCL-LZF 24-bit RGB image format reader.

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 240 of file lzf_image_io.h.


Constructor & Destructor Documentation

pcl::io::LZFRGB24ImageReader::LZFRGB24ImageReader (  )  [inline]

Empty constructor.

Definition at line 246 of file lzf_image_io.h.

virtual pcl::io::LZFRGB24ImageReader::~LZFRGB24ImageReader (  )  [inline, virtual]

Empty destructor.

Definition at line 248 of file lzf_image_io.h.


Member Function Documentation

template<typename PointT >
bool pcl::io::LZFRGB24ImageReader::read ( const std::string &  filename,
pcl::PointCloud< PointT > &  cloud 
) [inline]
template<typename PointT >
bool pcl::io::LZFRGB24ImageReader::readOMP ( const std::string &  filename,
pcl::PointCloud< PointT > &  cloud,
unsigned int  num_threads = 0 
) [inline]

Read the data stored in a PCLZF RGB file and convert it to a pcl::PointCloud type.

Note that, unless massively multithreaded, this will likely not result in a significant speedup and may even slow performance.

Parameters:
[in] filename the file name to read the data from
[in] num_threads The number of threads to use
[out] cloud the resultant output point cloud

Reimplemented in pcl::io::LZFYUV422ImageReader, and pcl::io::LZFBayer8ImageReader.

Definition at line 241 of file lzf_image_io.hpp.

References pcl::io::LZFImageReader::decompress(), pcl::io::LZFImageReader::getHeight(), pcl::io::LZFImageReader::getImageType(), pcl::io::LZFImageReader::getWidth(), pcl::PointCloud< PointT >::height, pcl::io::LZFImageReader::loadImageBlob(), pcl::PointCloud< PointT >::points, pcl::PointCloud< PointT >::resize(), pcl::PointCloud< PointT >::size(), and pcl::PointCloud< PointT >::width.

virtual bool pcl::io::LZFRGB24ImageReader::readParameters ( std::istream &  is  )  [virtual]

Read camera parameters from a given stream and store them internally.

The parameters will be read from the <rgb> ... </rgb> tag.

Returns:
true if operation successful, false otherwise

Reimplemented from pcl::io::LZFImageReader.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends