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