IDS peak ICV
v1.0.0
Loading...
Searching...
No Matches
peak_icv_point_cloud_writer.hpp
Go to the documentation of this file.
1
11
#pragma once
12
13
#include <
peak_icv/types/peak_icv_point_cloud_xyz.hpp
>
14
#include <
peak_icv/types/peak_icv_point_cloud_xyzi.hpp
>
15
16
#include <string>
17
18
namespace
peak
19
{
20
namespace
icv
21
{
22
23
namespace
experimental
24
{
25
33
class
PointCloudWriter
34
{
35
public
:
55
template
<
typename
Po
int
Cloud>
56
void
Write
(
const
std::string& filePath,
const
PointCloud& cloud)
const
;
57
};
58
59
template
<
typename
Po
int
CloudType>
60
void
PointCloudWriter::Write
(
const
std::string& filePath,
const
PointCloudType& cloud)
const
61
{
62
static_assert
(
detail::is_pointcloud_v<PointCloudType>
,
"Write must be called on PointCloud types!"
);
63
64
auto
pointCloudHandle = peak::common::detail::BackendAccessor<PointCloudType>::BackendHandle(cloud);
65
detail::ExecuteAndMapReturnCodes
([&] {
66
return
PEAK_ICV_C_ABI_PREFIX peak_icv_PointCloud_SaveToFile(pointCloudHandle, filePath.c_str(), {});
67
});
68
}
69
70
}
/* namespace experimental */
71
72
}
/* namespace icv */
73
}
/* namespace peak */
peak::icv::experimental::PointCloudWriter
Class for writing a point cloud to file, currently supporting only the ply format....
Definition
peak_icv_point_cloud_writer.hpp:34
peak::icv::experimental::PointCloudWriter::Write
void Write(const std::string &filePath, const PointCloud &cloud) const
Saves a point cloud to a file on the disk.
peak::icv::detail::is_pointcloud_v
constexpr bool is_pointcloud_v
Definition
peak_icv_type_traits.hpp:115
peak::icv::detail::ExecuteAndMapReturnCodes
void ExecuteAndMapReturnCodes(const CallableType &callableObject)
Definition
peak_icv_exception_helpers.hpp:56
peak
Definition
peak_common_math.hpp:20
peak_icv_point_cloud_xyz.hpp
peak_icv_point_cloud_xyzi.hpp
peak_icv
io
peak_icv_point_cloud_writer.hpp
Send mail feedback
Generated on Fri Sep 5 2025 - ©
IDS Imaging Development Systems GmbH