IDS peak genericC++ v1.17.0
Loading...
Searching...
No Matches
peak_bufferpart_converter_ipl.hpp
Go to the documentation of this file.
1
6
7#pragma once
8
10
11#include <peak_ipl/peak_ipl.hpp>
17
18#include <cassert>
19
20
21namespace peak
22{
23
41template <>
42PEAK_COMMON_NO_DISCARD inline peak::ipl::Image BufferPartTo(
43 const std::shared_ptr<peak::core::BufferPart>& part)
44{
45 // Using constructor rather than buffer.ToImageView() to include the nullptr check.
46 auto imageView = core::ImageView(part);
47
48 return peak::ipl::Image(imageView);
49}
50
51} /* 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 BufferPartTo(const std::shared_ptr< peak::core::BufferPart > &part)
Converts a core::BufferPart into a peak::ipl::Image.
Definition peak_bufferpart_converter_icv.hpp:42
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