IDS peak ICV
v1.0.0
Loading...
Searching...
No Matches
peak_icv_image_writer.hpp
Go to the documentation of this file.
1
11
#pragma once
12
13
#include <
peak_icv/types/peak_icv_image.hpp
>
14
15
#include <string>
16
17
namespace
peak
18
{
19
namespace
icv
20
{
21
28
class
ImageWriter
29
{
30
public
:
126
void
Write
(
const
std::string& filePath,
const
Image
& image)
const
;
127
};
128
129
inline
void
ImageWriter::Write
(
const
std::string& filePath,
const
Image
& image)
const
130
{
131
detail::ExecuteAndMapReturnCodes
([&]() {
132
auto
* handle = peak::common::detail::BackendAccessor<Image>::BackendHandle(image);
133
return
PEAK_ICV_C_ABI_PREFIX peak_icv_Image_SaveToFile(handle, filePath.c_str());
134
});
135
}
136
137
}
/* namespace icv */
138
}
/* namespace peak */
peak::icv::Image
For detailed information about the use of ids_peak_icv Image refer to the Image Guide.
Definition
peak_icv_image.hpp:46
peak::icv::ImageWriter
Writes an image to a file.
Definition
peak_icv_image_writer.hpp:29
peak::icv::ImageWriter::Write
void Write(const std::string &filePath, const Image &image) const
Writes the specified image to the filesystem. The type is specified by the given file ending in file ...
Definition
peak_icv_image_writer.hpp:129
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_image.hpp
peak_icv
io
peak_icv_image_writer.hpp
Send mail feedback
Generated on Fri Sep 5 2025 - ©
IDS Imaging Development Systems GmbH