IDS peak ICV
v1.2.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
30
class
ImageWriter
31
{
32
public
:
76
void
Write
(
const
std::string& filePath,
const
Image
& image)
const
;
77
};
78
79
inline
void
ImageWriter::Write
(
const
std::string& filePath,
const
Image
& image)
const
80
{
81
detail::ExecuteAndMapReturnCodes
([&]() {
82
auto
* handle = peak::common::detail::BackendAccessor<Image>::BackendHandle(image);
83
return
PEAK_ICV_C_ABI_PREFIX peak_icv_Image_SaveToFile(handle, filePath.c_str());
84
});
85
}
86
87
}
/* namespace icv */
88
}
/* 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
Provides functionality to write images to files in various supported formats.
Definition
peak_icv_image_writer.hpp:31
peak::icv::ImageWriter::Write
void Write(const std::string &filePath, const Image &image) const
Saves the specified image to a file.
Definition
peak_icv_image_writer.hpp:320
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 Mon Feb 23 2026 - ©
IDS Imaging Development Systems GmbH