IDS peak ICV
v1.3.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
31
class
PointCloudWriter
32
{
33
public
:
53
template
<
typename
Po
int
Cloud>
54
void
Write
(
const
std::string& filePath,
const
PointCloud& cloud)
const
;
55
};
56
57
template
<
typename
Po
int
CloudType>
58
void
PointCloudWriter::Write
(
const
std::string& filePath,
const
PointCloudType& cloud)
const
59
{
60
static_assert
(
detail::is_pointcloud_v<PointCloudType>
,
"Write must be called on PointCloud types!"
);
61
62
auto
pointCloudHandle = peak::common::detail::BackendAccessor<PointCloudType>::BackendHandle(cloud);
63
detail::ExecuteAndMapReturnCodes
([&] {
64
return
PEAK_ICV_C_ABI_PREFIX peak_icv_PointCloud_SaveToFile(pointCloudHandle, filePath.c_str(), {});
65
});
66
}
67
68
69
}
/* namespace icv */
70
}
/* namespace peak */
peak::icv::PointCloudWriter
Provides functionality to write point clouds to file.
Definition
peak_icv_point_cloud_writer.hpp:32
peak::icv::PointCloudWriter::Write
void Write(const std::string &filePath, const PointCloud &cloud) const
Saves the specified point cloud to a PLY file.
peak::icv::detail::is_pointcloud_v
constexpr bool is_pointcloud_v
Definition
peak_icv_type_traits.hpp:124
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 Mon Apr 20 2026 - ©
IDS Imaging Development Systems GmbH