IDS peak genericC++ v1.13.0
Loading...
Searching...
No Matches
peak_bufferpart_converter_icv.hpp
Go to the documentation of this file.
1
10
11#pragma once
12
13#include <peak_icv/peak_icv.hpp>
19
20#include <cassert>
21
22
23namespace peak
24{
25
43template <>
44inline peak::icv::Image BufferPartTo(const std::shared_ptr<peak::core::BufferPart>& part)
45{
46 // Using constructor rather than buffer.ToImageView() to include the nullptr check.
47 auto imageView = core::ImageView(part);
48
49 return peak::icv::Image(imageView);
50}
51
52} /* namespace peak */
Implementation of the peak::common::IImageView interface for viewing image pixel data from arbitrary ...
Definition peak_image_view.hpp:55
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