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
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
:
51
template
<
typename
Po
int
Cloud>
52
void
Write
(
const
std::string& filePath,
const
PointCloud& cloud)
const
;
53
};
54
55
template
<
typename
Po
int
CloudType>
56
void
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);
61
detail::ExecuteAndMapReturnCodes
([&] {
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 */
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:114
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 Dec 12 2025 - ©
IDS Imaging Development Systems GmbH