Indexed Face set (IFS) file format reader. More...
#include <pcl/io/ifs_io.h>
Public Types | |
enum | { IFS_V1_0 = 0, IFS_V1_1 = 1 } |
we support two versions 1.0 classic 1.1 with texture coordinates addon More... |
|
Public Member Functions | |
IFSReader () | |
Empty constructor. More... |
|
~IFSReader () | |
Empty destructor. More... |
|
int | readHeader (const std::string &file_name, pcl::PCLPointCloud2 &cloud, int &ifs_version, unsigned int &data_idx) |
Read a point cloud data header from an IFS file. More... |
|
int | read (const std::string &file_name, pcl::PCLPointCloud2 &cloud, int &ifs_version) |
Read a point cloud data from an IFS file and store it into a pcl/PCLPointCloud2. More... |
|
int | read (const std::string &file_name, pcl::PolygonMesh &mesh, int &ifs_version) |
Read a point cloud data from an IFS file and store it into a PolygonMesh. More... |
|
template<typename PointT > | |
int | read (const std::string &file_name, pcl::PointCloud< PointT > &cloud) |
Read a point cloud data from an IFS file, and convert it to the given template pcl::PointCloud format. More... |
|
Indexed Face set (IFS) file format reader.
This file format is used for the Brown Mesh Set for instance.
anonymous enum |
int pcl::IFSReader::read | ( | const std::string & | file_name, |
pcl::PCLPointCloud2 & | cloud, | ||
int & | ifs_version | ||
) |
Read a point cloud data from an IFS file and store it into a pcl/PCLPointCloud2.
[in] | file_name | the name of the file containing the actual PointCloud data |
[out] | cloud | the resultant PCLPointCloud2 blob read from disk |
[out] | ifs_version | the IFS version of the file (either IFS_V1_0 or IFS_V1_1) |
Referenced by pcl::io::loadIFSFile().
| inline |
Read a point cloud data from an IFS file, and convert it to the given template pcl::PointCloud format.
[in] | file_name | the name of the file containing the actual PointCloud data |
[out] | cloud | the resultant PointCloud message read from disk |
Definition at line 123 of file ifs_io.h.
References pcl::fromPCLPointCloud2(), pcl::read(), pcl::PointCloud< PointT >::sensor_orientation_, and pcl::PointCloud< PointT >::sensor_origin_.
int pcl::IFSReader::read | ( | const std::string & | file_name, |
pcl::PolygonMesh & | mesh, | ||
int & | ifs_version | ||
) |
Read a point cloud data from an IFS file and store it into a PolygonMesh.
[in] | file_name | the name of the file containing the mesh data |
[out] | mesh | the resultant PolygonMesh |
[out] | ifs_version | the IFS version of the file (either IFS_V1_0 or IFS_V1_1) |
int pcl::IFSReader::readHeader | ( | const std::string & | file_name, |
pcl::PCLPointCloud2 & | cloud, | ||
int & | ifs_version, | ||
unsigned int & | data_idx | ||
) |
Read a point cloud data header from an IFS file.
Load only the meta information (number of points, their types, etc), and not the points themselves, from a given IFS file. Useful for fast evaluation of the underlying data structure.
[in] | file_name | the name of the file to load |
[out] | cloud | the resultant point cloud dataset (only header will be filled) |
[out] | ifs_version | the IFS version of the file (IFS_V1_0 or IFS_V1_1) |
[out] | data_idx | the offset of cloud data within the file |
© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/classpcl_1_1_i_f_s_reader.html