IDS peak genericC++ v1.14.0
Loading...
Searching...
No Matches
peak_bufferpart_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
44template <>
45inline peak::ipl::Image BufferPartTo(const std::shared_ptr<peak::core::BufferPart>& part)
46{
47 // Using constructor rather than buffer.ToImageView() to include the nullptr check.
48 auto imageView = core::ImageView(part);
49
50 return peak::ipl::Image(imageView);
51}
52
53} /* namespace peak */
Implementation of the peak::common::IImageView interface for viewing image pixel data from arbitrary ...
Definition peak_image_view.hpp:57
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:44
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_dynamic_loader.h:33