Point Cloud Data (PLY) file format writer.
More...
#include <pcl/io/ply_io.h>
List of all members.
Public Member Functions |
| PLYWriter () |
| ~PLYWriter () |
std::string | generateHeaderBinary (const sensor_msgs::PointCloud2 &cloud) |
| Generate the header of a PLY v.7 file format.
|
std::string | generateHeaderASCII (const sensor_msgs::PointCloud2 &cloud) |
| Generate the header of a PLY v.7 file format.
|
int | writeASCII (const std::string &file_name, const sensor_msgs::PointCloud2 &cloud, const Eigen::Vector4f &origin=Eigen::Vector4f::Zero(), const Eigen::Quaternionf &orientation=Eigen::Quaternionf::Identity(), int precision=8) |
| Save point cloud data to a PLY file containing n-D points, in ASCII format.
|
int | writeBinary (const std::string &file_name, const sensor_msgs::PointCloud2 &cloud, const Eigen::Vector4f &origin=Eigen::Vector4f::Zero(), const Eigen::Quaternionf &orientation=Eigen::Quaternionf::Identity()) |
| Save point cloud data to a PLY file containing n-D points, in BINARY format.
|
int | write (const std::string &file_name, const sensor_msgs::PointCloud2 &cloud, const Eigen::Vector4f &origin=Eigen::Vector4f::Zero(), const Eigen::Quaternionf &orientation=Eigen::Quaternionf::Identity(), bool binary=false) |
| Save point cloud data to a PLY file containing n-D points.
|
int | write (const std::string &file_name, const sensor_msgs::PointCloud2::ConstPtr &cloud, const Eigen::Vector4f &origin=Eigen::Vector4f::Zero(), const Eigen::Quaternionf &orientation=Eigen::Quaternionf::Identity(), bool binary=false) |
| Save point cloud data to a PLY file containing n-D points.
|
template<typename PointT > |
int | write (const std::string &file_name, const pcl::PointCloud< PointT > &cloud, bool binary=false) |
| Save point cloud data to a PLY file containing n-D points.
|
Detailed Description
Point Cloud Data (PLY) file format writer.
- Author:
- Nizar Sallem
Constructor & Destructor Documentation
pcl::PLYWriter::PLYWriter |
( |
| ) |
[inline] |
pcl::PLYWriter::~PLYWriter |
( |
| ) |
[inline] |
Member Function Documentation
Generate the header of a PLY v.7 file format.
- Parameters:
-
cloud | the point cloud data message |
Definition at line 179 of file ply_io.h.
Generate the header of a PLY v.7 file format.
- Parameters:
-
cloud | the point cloud data message |
Definition at line 171 of file ply_io.h.
int pcl::PLYWriter::write |
( |
const std::string & |
file_name, |
|
|
const sensor_msgs::PointCloud2 & |
cloud, |
|
|
const Eigen::Vector4f & |
origin = Eigen::Vector4f::Zero () , |
|
|
const Eigen::Quaternionf & |
orientation = Eigen::Quaternionf::Identity () , |
|
|
bool |
binary = false |
|
) |
| [inline, virtual] |
Save point cloud data to a PLY file containing n-D points.
- Parameters:
-
file_name | the output file name |
cloud | the point cloud data message |
origin | the sensor acquisition origin |
orientation | the sensor acquisition orientation |
binary | set to true if the file is to be written in a binary PLY format, false (default) for ASCII |
Implements pcl::FileWriter.
Definition at line 211 of file ply_io.h.
int pcl::PLYWriter::write |
( |
const std::string & |
file_name, |
|
|
const sensor_msgs::PointCloud2::ConstPtr & |
cloud, |
|
|
const Eigen::Vector4f & |
origin = Eigen::Vector4f::Zero () , |
|
|
const Eigen::Quaternionf & |
orientation = Eigen::Quaternionf::Identity () , |
|
|
bool |
binary = false |
|
) |
| [inline] |
Save point cloud data to a PLY file containing n-D points.
- Parameters:
-
file_name | the output file name |
cloud | the point cloud data message (boost shared pointer) |
binary | set to true if the file is to be written in a binary PLY format, false (default) for ASCII |
Reimplemented from pcl::FileWriter.
Definition at line 229 of file ply_io.h.
template<typename PointT >
int pcl::PLYWriter::write |
( |
const std::string & |
file_name, |
|
|
const pcl::PointCloud< PointT > & |
cloud, |
|
|
bool |
binary = false |
|
) |
| [inline] |
Save point cloud data to a PLY file containing n-D points.
- Parameters:
-
file_name | the output file name |
cloud | the pcl::PointCloud data |
binary | set to true if the file is to be written in a binary PLY format, false (default) for ASCII |
Reimplemented from pcl::FileWriter.
Definition at line 244 of file ply_io.h.
int pcl::PLYWriter::writeASCII |
( |
const std::string & |
file_name, |
|
|
const sensor_msgs::PointCloud2 & |
cloud, |
|
|
const Eigen::Vector4f & |
origin = Eigen::Vector4f::Zero() , |
|
|
const Eigen::Quaternionf & |
orientation = Eigen::Quaternionf::Identity() , |
|
|
int |
precision = 8 |
|
) |
| |
Save point cloud data to a PLY file containing n-D points, in ASCII format.
- Parameters:
-
file_name | the output file name |
cloud | the point cloud data message |
precision | the specified output numeric stream precision (default: 8) |
int pcl::PLYWriter::writeBinary |
( |
const std::string & |
file_name, |
|
|
const sensor_msgs::PointCloud2 & |
cloud, |
|
|
const Eigen::Vector4f & |
origin = Eigen::Vector4f::Zero() , |
|
|
const Eigen::Quaternionf & |
orientation = Eigen::Quaternionf::Identity() |
|
) |
| |
Save point cloud data to a PLY file containing n-D points, in BINARY format.
- Parameters:
-
file_name | the output file name |
cloud | the point cloud data message |
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/PCL-1.3.1-Source/io/include/pcl/io/ply_io.h