IDS peak genericC++ v1.17.0
Loading...
Searching...
No Matches
peak_buffer_converter_icv.hpp
Go to the documentation of this file.
1
6
7#pragma once
8
10
11#include <peak_icv/peak_icv.hpp>
14
15
16namespace peak
17{
18
37template <>
39 const std::shared_ptr<peak::core::Buffer>& buffer)
40{
41 // Using constructor rather than buffer.ToImageView() to include the nullptr check.
42 return peak::icv::Image(core::ImageView(buffer));
43}
44
45} /* namespace peak */
Implementation of the peak::common::IImageView interface for viewing image pixel data from arbitrary ...
Definition peak_image_view.hpp:83
PEAK_COMMON_NO_DISCARD 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:38
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_buffer.hpp:29
#define PEAK_COMMON_NO_DISCARD
Definition peak_common_defines.h:89