IDS peak ICV v1.4.0
Loading...
Searching...
No Matches
PointCloudWriter Class Reference

#include <peak_icv/io/peak_icv_point_cloud_writer.hpp>

Public Member Functions

template<typename PointCloud >
void Write (const std::string &filePath, const PointCloud &cloud) const
 Saves the specified point cloud to a PLY file.
 
template<typename PointCloudType >
void Write (const std::string &filePath, const PointCloudType &cloud) const
 

Detailed Description

Provides functionality to write point clouds to file.

Since
ids_peak_icv 1.1

Member Function Documentation

◆ Write() [1/2]

template<typename PointCloud >
void Write ( const std::string & filePath,
const PointCloud & cloud ) const

Saves the specified point cloud to a PLY file.

The file format is determined by the specified file extension of the file name. Only binary PLY (.ply) is supported.

If no extension is provided, .ply is appended automatically.

Note
If a point cloud does not contain any points it cannot be written to file.
Parameters
[in]filePathThe path of the file to write to, as a UTF-8 encoded string.
[in]cloudThe point cloud to save.
Exceptions
NotSupportedExceptionThe specified file extension or point type is not supported or the point cloud is empty.
IOExceptionThe specified file path is invalid or lacks write permissions.
Since
ids_peak_icv 1.1

◆ Write() [2/2]

template<typename PointCloudType >
void Write ( const std::string & filePath,
const PointCloudType & cloud ) const