AuxCamConfigMessage.hh
Go to the documentation of this file.
1 
39 #ifndef LibMultiSense_AuxCamConfigMessage
40 #define LibMultiSense_AuxCamConfigMessage
41 
45 
46 namespace crl {
47 namespace multisense {
48 namespace details {
49 namespace wire {
50 
51 class AuxCamConfig {
52 public:
55 
56  //
57  // Parameters representing the current camera configuration
58 
59  uint16_t width;
60  uint16_t height;
62  float gain;
63 
64  uint32_t exposure;
65  uint8_t autoExposure;
66  uint32_t autoExposureMax;
69 
75 
76  float fx, fy;
77  float cx, cy;
78 
79  bool hdrEnabled;
80 
81  uint16_t autoExposureRoiX;
82  uint16_t autoExposureRoiY;
85 
86  uint32_t cameraProfile;
87 
89  float gamma;
90 
93  uint8_t sharpeningLimit;
94 
95  //
96  // Constructors
97 
100  gain(0.0),
101  exposure(0),
102  autoExposure(0),
103  autoExposureMax(0),
104  autoExposureDecay(0),
105  autoExposureThresh(0.0),
106  whiteBalanceRed(0.0),
107  whiteBalanceBlue(0.0),
108  autoWhiteBalance(0),
109  autoWhiteBalanceDecay(0),
110  autoWhiteBalanceThresh(0.0),
111  fx(0.0),
112  fy(0.0),
113  cx(0.0),
114  cy(0.0),
115  hdrEnabled(false),
116  autoExposureRoiX(0),
117  autoExposureRoiY(0),
118  autoExposureRoiWidth(crl::multisense::Roi_Full_Image),
119  autoExposureRoiHeight(crl::multisense::Roi_Full_Image),
120  cameraProfile(0),
121  autoExposureTargetIntensity(Default_Target_Intensity),
122  gamma(Default_Gamma),
123  sharpeningEnable(false),
124  sharpeningPercentage(0.0f),
125  sharpeningLimit(0)
126  {};
127 
128  //
129  // Serialization routine
130 
131  template<class Archive>
132  void serialize(Archive& message,
133  const VersionType version)
134  {
135  (void) version;
136 
137  message & framesPerSecond;
138  message & gain;
139 
140  message & exposure;
141  message & autoExposure;
142  message & autoExposureMax;
143  message & autoExposureDecay;
144  message & autoExposureThresh;
145 
146  message & whiteBalanceRed;
147  message & whiteBalanceBlue;
148  message & autoWhiteBalance;
149  message & autoWhiteBalanceDecay;
150  message & autoWhiteBalanceThresh;
151 
152  message & fx;
153  message & fy;
154  message & cx;
155  message & cy;
156 
157  message & hdrEnabled;
158 
159  message & autoExposureRoiX;
160  message & autoExposureRoiY;
161  message & autoExposureRoiWidth;
162  message & autoExposureRoiHeight;
163  message & cameraProfile;
164 
165  message & autoExposureTargetIntensity;
166  message & gamma;
167 
168  message & sharpeningEnable;
169  message & sharpeningPercentage;
170  message & sharpeningLimit;
171 
172  }
173 };
174 
175 }}}} // namespaces
176 
177 #endif
f
void serialize(Archive &message, const VersionType version)
static CRL_CONSTEXPR IdType ID_DATA_CAM_AUX_CONFIG
Definition: Protocol.hh:229
Definition: channel.cc:58
static CRL_CONSTEXPR float Default_Target_Intensity
Definition: Protocol.hh:305
AuxCamConfig(utility::BufferStreamReader &r, VersionType v)
static CRL_CONSTEXPR VersionType VERSION
static CRL_CONSTEXPR float Default_Gamma
Definition: Protocol.hh:306
static CRL_CONSTEXPR int Roi_Full_Image
#define CRL_CONSTEXPR
Definition: Portability.hh:49


multisense_lib
Author(s):
autogenerated on Sat Jun 24 2023 03:01:21