IDS peak ICV v1.0.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 a point cloud to a file on the disk.
 
template<typename PointCloudType >
void Write (const std::string &filePath, const PointCloudType &cloud) const
 

Detailed Description

Class for writing a point cloud to file, currently supporting only the ply format. If no file extension is provided, .ply is automatically added.

Warning
This function is still in development and not released.

Definition at line 33 of file peak_icv_point_cloud_writer.hpp.

Member Function Documentation

◆ Write() [1/2]

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

Saves a point cloud to a file on the disk.

The chosen file type is determined by the given extension.

The following file formats are supported:

  • PLY (only binary, external link to Wikipedia)

If no file extension is provided, .ply is automatically added.

Parameters
[in]filePathThe non existing file is saved to the file_path, which should encompass both the directory path and the filename.
[in]cloudThe point cloud to be saved.
Exceptions
NotSupportedExceptionThe file ending or the point type is not supported to write to file.
IOExceptionIf the specified file path is invalid or you lack the necessary permissions.
Warning
This function is still in development and not released.

◆ Write() [2/2]

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

Definition at line 60 of file peak_icv_point_cloud_writer.hpp.