IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
peak_icv_image_writer.hpp
Go to the documentation of this file.
1
11#pragma once
12
14
15#include <string>
16
17namespace peak
18{
19namespace icv
20{
21
31{
32public:
85 void Write(const std::string& filePath, const Image& image) const;
86};
87
88inline void ImageWriter::Write(const std::string& filePath, const Image& image) const
89{
91 auto* handle = peak::common::detail::BackendAccessor<Image>::BackendHandle(image);
92 return PEAK_ICV_C_ABI_PREFIX peak_icv_Image_SaveToFile(handle, filePath.c_str());
93 });
94}
95
96} /* namespace icv */
97} /* namespace peak */
For detailed information about the use of ids_peak_icv Image refer to the Image Guide.
Provides functionality to write images to files in various supported formats.
void Write(const std::string &filePath, const Image &image) const
Saves the specified image to a file.
void ExecuteAndMapReturnCodes(const CallableType &callableObject)