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
14
15#include <string>
16
17namespace peak
18{
19namespace icv
20{
21
29{
30public:
126 void Write(const std::string& filePath, const Image& image) const;
127};
128
129inline void ImageWriter::Write(const std::string& filePath, const Image& image) const
130{
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 */
For detailed information about the use of ids_peak_icv Image refer to the Image Guide.
Writes an image to a file.
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 ...
void ExecuteAndMapReturnCodes(const CallableType &callableObject)