CVB++ 15.0
Loading...
Searching...
No Matches
c_bayer_to_rgb.h
1#pragma once
2
3#if defined __GNUC__ && !defined CVB_SHOW_WARNINGS
4# pragma GCC system_header
5#endif // __GNUC__
6
7#include <cstddef>
8#include <cstdint>
9
10#include "../namespace.hpp"
11
12#include "c_img.h"
13
14
15
16namespace Cvb
17{
18
19CVB_BEGIN_INLINE_NS
20
21namespace CExports
22{
23
24
25
26
27/* Enums and types */
28struct WB
29{
30 cvbval_t ScaleFactorR;
31 cvbval_t ScaleFactorG;
32 cvbval_t ScaleFactorB;
33};
34enum B2RGB_PixelMode
35{
36 PM_GREENBLUE = 0,
37 PM_BLUEGREEN = 1,
38 PM_REDGREEN = 2,
39 PM_GREENRED = 3
40};
41enum B2RGB_InterpolationMode
42{
43 RGB_INTERPOLATE = 1,
44 RGB_NEIGHBOUR = 2,
45 RGB_HALF = 3,
46 RGB_EDGEINTERPOLATE = 4
47};
48enum B2RGB_WhiteBalanceMode
49{
50 WB_SET = 1,
51 WB_RESET = 0
52};
53enum B2RGB_Gamma
54{
55 GAMMA_100 = 1,
56 GAMMA_045 = 2,
57 GAMMA_060 = 3
58};
59
60
61
62
63/* BayerToRGB exported functions */
64CVB_DEF_CAPI_X (cvbres_t, etWhiteBalance, (IMG ImgIn, B2RGB_PixelMode PixelMode, B2RGB_WhiteBalanceMode WBMode, TArea &ImgArea, WB &ImgWB))
65CVB_DEF_CAPI_X (cvbres_t, etBayerToRGB, (IMG ImgIn, IMG &ImgOut, B2RGB_PixelMode PixelMode, B2RGB_InterpolationMode RGBMode, B2RGB_Gamma GammaMode, WB &ImgWB))
66CVB_DEF_CAPI_X (cvbres_t, etCreateOutputImage, (IMG ImgIn, IMG &ImgOut, B2RGB_InterpolationMode RGBMode))
67CVB_DEF_CAPI_X (cvbres_t, etRGBToBayer, (IMG ImgIn, IMG &ImgOut, B2RGB_PixelMode PixelMode))
68CVB_DEF_CAPI_X (cvbres_t, etBayerToMono, (IMG ImgIn, IMG &ImgOut, B2RGB_PixelMode PixelMode, B2RGB_InterpolationMode RGBMode, B2RGB_Gamma GammaMode, WB &ImgWB))
69
70} /* namespace CExports */
71
72CVB_END_INLINE_NS
73
74} /* namespace Cvb */
75
void * IMG
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17