IDS peak genericC++ v1.15.0
Loading...
Searching...
No Matches
peak_buffer_converter_icv.hpp
Go to the documentation of this file.
1
10
11#pragma once
12
13
14#include <peak_icv/peak_icv.hpp>
17
18
19namespace peak
20{
21
40template <>
41inline peak::icv::Image BufferTo<peak::icv::Image>(const std::shared_ptr<peak::core::Buffer>& buffer)
42{
43 // Using constructor rather than buffer.ToImageView() to include the nullptr check.
44 return peak::icv::Image(core::ImageView(buffer));
45}
46
47} /* namespace peak */
Implementation of the peak::common::IImageView interface for viewing image pixel data from arbitrary ...
Definition peak_image_view.hpp:84
peak::icv::Image BufferTo< peak::icv::Image >(const std::shared_ptr< peak::core::Buffer > &buffer)
Converts a core::Buffer into a peak::icv::Image.
Definition peak_buffer_converter_icv.hpp:41
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_dynamic_loader.h:33