CVB++ 15.0
convert.hpp
1#pragma once
2
3#if defined _WIN32
4
5# include "../_cexports/c_foundation.h"
6
7# include "../global.hpp"
8# include "../image.hpp"
9# include "../exception.hpp"
10
11# include <vector>
12# include <memory>
13
14namespace Cvb
15{
16 CVB_BEGIN_INLINE_NS
17
18 namespace Foundation
19 {
20
22
26 namespace Convert
27 {
28
30
43 {
44 return Internal::DoResCallObjectOut<Image>(
45 [&](void *&resimg) { return CVB_CALL_CAPI(ConvertTo8BPPUnsigned(image.Handle(), resimg)); });
46 }
47
49
62 {
63 return Internal::DoResCallObjectOut<Image>(
64 [&](void *&resimg) { return CVB_CALL_CAPI(ConvertTo16BPPUnsigned(image.Handle(), resimg)); });
65 }
66
68
81 {
82 return Internal::DoResCallObjectOut<Image>(
83 [&](void *&resimg) { return CVB_CALL_CAPI(ConvertTo16BPPSigned(image.Handle(), resimg)); });
84 }
85
87
100 {
101 return Internal::DoResCallObjectOut<Image>(
102 [&](void *&resimg) { return CVB_CALL_CAPI(ConvertTo32BPPSigned(image.Handle(), resimg)); });
103 }
104
106
119 {
120 return Internal::DoResCallObjectOut<Image>(
121 [&](void *&resimg) { return CVB_CALL_CAPI(ConvertTo32BPPFloat(image.Handle(), resimg)); });
122 }
123
124 } /* namespace Convert */
125
131
132 } /* namespace Foundation */
133 CVB_END_INLINE_NS
134} /* namespace Cvb */
135
136#endif
The Common Vision Blox image.
Definition decl_image.hpp:50
void * Handle() const noexcept
Classic API image handle.
Definition decl_image.hpp:237
cvbres_t ConvertTo32BPPSigned(IMG ImgIn, IMG &ImgOut)
cvbres_t ConvertTo8BPPUnsigned(IMG ImgIn, IMG &ImgOut)
cvbres_t ConvertTo16BPPSigned(IMG ImgIn, IMG &ImgOut)
cvbres_t ConvertTo16BPPUnsigned(IMG ImgIn, IMG &ImgOut)
cvbres_t ConvertTo32BPPFloat(IMG ImgIn, IMG &ImgOut)
Various image conversion functions.
Definition convert.hpp:27
std::unique_ptr< Image > ConvertTo32BppSigned(const Image &image)
Convert the input image to an image with 32 bits per pixel signed data.
Definition convert.hpp:99
std::unique_ptr< Image > ConvertTo16BppUnsigned(const Image &image)
Convert the input image to an image with 16 bits per pixel unsigned data.
Definition convert.hpp:61
std::unique_ptr< Image > ConvertTo8BppUnsigned(const Image &image)
Convert the input image to an image with 8 bits per pixel unsigned data.
Definition convert.hpp:42
std::unique_ptr< Image > ConvertTo32BppFloat(const Image &image)
Convert the input image to an image with 32 bits per pixel float data.
Definition convert.hpp:118
std::unique_ptr< Image > ConvertTo16BppSigned(const Image &image)
Convert the input image to an image with 16 bits per pixel signed data.
Definition convert.hpp:80
Namespace for the Foundation package.
Definition decl_metric_aqs12_calibration_piece.hpp:11
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17