Easy3D 2.5.3
PointCloudIO Class Reference

Implementation of file input/output operations for PointCloud. More...

#include <easy3d/fileio/point_cloud_io.h>

Static Public Member Functions

static PointCloudload (const std::string &file_name)
 Reads a point cloud from file file_name. More...
 
static bool save (const std::string &file_name, const PointCloud *cloud)
 Saves a point_cloud to a file. More...
 

Detailed Description

Implementation of file input/output operations for PointCloud.

Member Function Documentation

◆ load()

PointCloud * load ( const std::string &  file_name)
static

Reads a point cloud from file file_name.

File extension determines file format (bin, xyz/bxyz, ply, las/laz, vg/bvg) and type (i.e. binary or ASCII).

Returns
The pointer of the point cloud (nullptr if failed).
Examples
Tutorial_203_Viewer_wxWidgets, and Tutorial_204_Viewer_Qt.

◆ save()

bool save ( const std::string &  file_name,
const PointCloud cloud 
)
static

Saves a point_cloud to a file.

File extension determines file format (bin, xyz/bxyz, ply, las/laz, vg/bvg) and type (i.e. binary or ASCII).

Parameters
file_nameThe file name.
cloudThe point cloud.
Returns
The status of the operation
  • true if succeeded
  • false if failed
Examples
Tutorial_203_Viewer_wxWidgets, and Tutorial_204_Viewer_Qt.

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