IDS peak ICV v1.1.0
Loading...
Searching...
No Matches
peak_icv_point_cloud_writer.hpp
Go to the documentation of this file.
1
11#pragma once
12
15
16#include <string>
17
18namespace peak
19{
20namespace icv
21{
22
23
32{
33public:
51 template <typename PointCloud>
52 void Write(const std::string& filePath, const PointCloud& cloud) const;
53};
54
55template <typename PointCloudType>
56void PointCloudWriter::Write(const std::string& filePath, const PointCloudType& cloud) const
57{
58 static_assert(detail::is_pointcloud_v<PointCloudType>, "Write must be called on PointCloud types!");
59
60 auto pointCloudHandle = peak::common::detail::BackendAccessor<PointCloudType>::BackendHandle(cloud);
62 return PEAK_ICV_C_ABI_PREFIX peak_icv_PointCloud_SaveToFile(pointCloudHandle, filePath.c_str(), {});
63 });
64}
65
66
67} /* namespace icv */
68} /* namespace peak */
Provides functionality to write point clouds to file.
void Write(const std::string &filePath, const PointCloud &cloud) const
Saves the specified point cloud to a PLY file.
void ExecuteAndMapReturnCodes(const CallableType &callableObject)