IDS peak ICV v1.1.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:
76 void Write(const std::string& filePath, const Image& image) const;
77};
78
79inline void ImageWriter::Write(const std::string& filePath, const Image& image) const
80{
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 */
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)