| MikroCAD SDK Library

- Home
- All Types
- Files

All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
MeasurementDefs.h
Go to the documentation of this file.
1 /**
2 * @file MeasurementDefs.h
3 * @brief Defines for measurement module for sensors with 1 projector and 1 camera
4 *
5 * @author LMI Technologies
6 */
7
8 #ifndef _MeasurementDefs_h
9 #define _MeasurementDefs_h
10
11 #include <vector>
12 #include <string>
13 #include "MC3DDefs.h"
14
15 using namespace std;
16
17 /**
18 List of the IDs of all available sensor types
19 */
20 enum SensorTypeID
21 {
22 SensorTypeID_None = 0, /**< No type */
23 #ifdef __DUMMY_ALLOWED__
24 SensorTypeID_Dummy = 1, /**< Dummy sensor */
25 #endif
26 SensorTypeID_DSP = 2, /**< DSP sensor */
27 SensorTypeID_AlligatorPylon1394 = 3, /**< Sensor Projector: Alligator, Camera Pylon Basler IEEE1394 */
28 SensorTypeID_AlligatorPylonGigE = 4, /**< Sensor Projector: Alligator, Camera Pylon Basler GigE */
29 SensorTypeID_AlligatorVimba = 5, /**< Sensor Projector: Alligator, Camera Vimba AVT */
30
31 SensorTypeID_Last,
32 };
33
34 /**
35 Sensor operating mode
36 */
37 enum SensorOperatingMode
38 {
39 SensorOperatingMode_Measure = 0, /**< Initialized for measurements only */
40 SensorOperatingMode_SimpleCalib = 1, /**< Initialized for simple calibration and measurement */
41 };
42
43 /**
44 Sensor with separate camera and projector
45 */
46
47 /**
48 Projector driver type (Alligator...)
49 */
50 enum ProjectorDriverTypeID
51 {
52 ProjectorDriverTypeID_None = 0, /**< No projector */
53 ProjectorDriverTypeID_Alligator = 1, /**< Alligator */
54
55 ProjectorDriverTypeID_Last,
56 };
57
58 /**
59 Cameras driver type (Pylon, Vimba...)
60 */
61 enum CameraDriverTypeID
62 {
63 CameraDriverTypeID_None = 0, /**< No camera */
64 CameraDriverTypeID_Pylon1394 = 1, /**< Pylon Basler (IEEE 1394) */
65 CameraDriverTypeID_PylonGigE = 2, /**< Pylon Basler (GigE) */
66 CameraDriverTypeID_Vimba = 3, /**< Vimba AVT */
67
68 CameraDriverTypeID_Last,
69 };
70
71
72 /**
73 Description for sensors with separate projector and camera
74 */
75 struct TSensorDescription
76 {
77 long m_lDeviceID; /**< Device ID (May be the sensor number, not necessary) */
78 bool m_bDescSet; /**< All description inputs set? */
79 unsigned long m_dwSensorNo; /**< Sensor number */
80 ProjectorDriverTypeID m_ProjectorDriverTypeID; /**< Projector type ID */
81 CameraDriverTypeID m_CameraDriverTypeID; /**< Camera type ID */
82 string m_stProjectorID; /**< Projector ID */
83 string m_stCameraID; /**< Camera ID */
84
85 TSensorDescription()
86 {
87 m_lDeviceID = -1;
88 m_bDescSet = false;
89 m_dwSensorNo = 0;
90 m_ProjectorDriverTypeID = ProjectorDriverTypeID_None;
91 m_CameraDriverTypeID = CameraDriverTypeID_None;
92 m_stProjectorID = m_stCameraID = "";
93 };
94
95 TSensorDescription& operator =(TSensorDescription& Descr)
96 {
97 if (&Descr == this)
98 return *this;
99
100 m_lDeviceID = Descr.m_lDeviceID;
101 m_bDescSet = Descr.m_bDescSet;
102 m_dwSensorNo = Descr.m_dwSensorNo;
103 m_ProjectorDriverTypeID = Descr.m_ProjectorDriverTypeID;
104 m_CameraDriverTypeID = Descr.m_CameraDriverTypeID;
105 m_stProjectorID = Descr.m_stProjectorID;
106 m_stCameraID = Descr.m_stCameraID;
107
108 return *this;
109 };
110 };
111
112 typedef vector<TSensorDescription> TSensorDescriptionList;
113
114 /**
115 Version information structure for one sensor
116 */
117 struct TSensorVersionInfo
118 {
119 unsigned long m_dwModuleVersion; /**< Version of the module (DLL) */
120 unsigned long m_dwFirmwareVersion; /**< Version of the sensor firmware */
121 unsigned long m_dwInterfaceVersion; /**< Version of the interface (protocol) to hardware */
122 SensorTypeID m_SensorTypeID; /**< Sensor type ID */
123
124 TSensorVersionInfo()
125 {
126 m_dwModuleVersion = m_dwInterfaceVersion = m_dwFirmwareVersion = 0;
127 m_SensorTypeID = SensorTypeID_None;
128 };
129 };
130
131 /**
132 Version information structure for all
133 */
134 struct TMeasurementVersionInfo
135 {
136 unsigned long m_dwModuleVersion; /**< Version of the measurement module (DLL) */
137 unsigned long m_dwInterfaceVersion; /**< Version of the measurement interface (protocol) to hardware */
138 vector<TSensorVersionInfo> m_SensorVersionInfo; /**< List with version info of all available sensor types */
139
140 TMeasurementVersionInfo()
141 {
142 m_dwModuleVersion = m_dwInterfaceVersion = 0;
143 };
144 };
145
146 /**
147 Parameter setting
148 */
149
150 /**
151 Available flags
152 */
153 #define MEAS_PARAMETER_NOT_AVAILABLE 0 ///< Measurement parameter not available
154 #define MEAS_PARAMETER_AVAILABLE_READ 1 ///< Measurement parameter is available to read
155 #define MEAS_PARAMETER_AVAILABLE_WRITE 2 ///< Measurement parameter is available to write
156
157 /**
158 Parameter IDs
159 */
160 enum MeasurementParameterID
161 {
162 /** Integer parameter */
163
164 MeasurementParameterID_CurrCameraSizeX = 0, /**< Current camera size in X direction (in pixel) */
165 MeasurementParameterID_CurrCameraSizeY = 1, /**< Current camera size in Y direction (in pixel) */
166 MeasurementParameterID_CurrCameraX0 = 2, /**< Current camera origin in X direction (in pixel) */
167 MeasurementParameterID_CurrCameraY0 = 3, /**< Current camera origin in Y direction (in pixel) */
168 MeasurementParameterID_MaxCameraSizeX = 4, /**< Maximum camera size in X direction (in pixel) */
169 MeasurementParameterID_MaxCameraSizeY = 5, /**< Maximum camera size in Y direction (in pixel) */
170
171 MeasurementParameterID_CurrProjectorSizeX = 10, /**< Current projector size in X direction (in pixel) */
172 MeasurementParameterID_CurrProjectorSizeY = 11, /**< Current projector size in Y direction (in pixel) */
173 MeasurementParameterID_CurrProjectorX0 = 12, /**< Current projector origin in X direction (in pixel) */
174 MeasurementParameterID_CurrProjectorY0 = 13, /**< Current projector origin in Y direction (in pixel) */
175 MeasurementParameterID_MaxProjectorSizeX = 14, /**< Maximum projector size in X direction (in pixel) */
176 MeasurementParameterID_MaxProjectorSizeY = 15, /**< Maximum projector size in Y direction (in pixel) */
177
178 MeasurementParameterID_CameraShutter = 101, /**< Camera shutter */
179 MeasurementParameterID_CameraShutterTimeBase = 102, /**< Camera shutter time base */
180 MeasurementParameterID_CameraGain = 103, /**< Camera gain */
181
182 MeasurementParameterID_ProjectorBrightness = 151, /**< Projector brightness (e.g. LED power) */
183 MeasurementParameterID_ProjectorSwitchOnOff = 152, /**< Projector switch on/off */
184
185 MeasurementParameterID_SensorBrightness = 160, /**< Sensor brightness combined from camera shutter, camera gain, projector brightness ... */
186 MeasurementParameterID_Dynamic = 165, /**< Dynamic - measurement with 2 or 3 brightness parameter sets (HDR mode , Super HDR mode) */
187 MeasurementParameterID_BrightnessOffsetHDRMode = 166, /**< Brightness offset for HDR mode (Dynamic 2) */
188 MeasurementParameterID_BrightnessOffsetSuperHDRMode = 167, /**< Brightness offset for Super HDR mode (Dynamic 3) */
189
190 MeasurementParameterID_SensorSwitchOnOff = 201, /**< Sensor switch on/off */
191
192 MeasurementParameterID_UseTexture = 801, /**< Use texture acquisition ? */
193
194 MeasurementParameterID_MirrorMode = 821, /**< Mirror mode for all images */
195
196 MeasurementParameterID_NumPattern = 901, /**< Number of predefined pattern */
197 MeasurementParameterID_NumStripes = 902, /**< Number of predefined stripe pattern */
198
199 /** Float parameter */
200
201 MeasurementParameterID_TextureCorrFactorRed = 802, /** Color factor red share (only Texture mode "projection color" */
202 MeasurementParameterID_TextureCorrFactorGreen = 803, /** Color factor green share (only Texture mode "projection color" */
203 MeasurementParameterID_TextureCorrFactorBlue = 804, /** Color factor blue share (only Texture mode "projection color" */
204 MeasurementParameterID_TextureCorrFactorBrightness = 805, /** Brightness factor for texture (all modes) */
205
206 MeasurementParameterID_ScaleX = 1000, /**< Scaling X */
207 MeasurementParameterID_ScaleY = 1001, /**< Scaling Y */
208 MeasurementParameterID_ScaleZ = 1002, /**< Scaling Z */
209
210 MeasurementParameterID_MaxProjectionAreaX = 1011, /**< Maximum of projection area percental X */
211 MeasurementParameterID_MaxProjectionAreaY = 1012, /**< Maximum of projection area percental Y */
212
213 Measurement_ParameterID_LEDTemperature = 2001, /**< LED temperature, only available on some systems */
214 Measurement_ParameterID_SystemTemperature = 2002, /**< System/Camera temperature, only available on some systems */
215 Measurement_ParameterID_ProjectorStatus = 2003, /**< Projector status, only available on some systems */
216 };
217
218 /**
219 Double word list
220 */
221 typedef vector<unsigned long> TDWordList;
222
223 /**
224 String list
225 */
226 typedef vector<string> TStringList;
227
228 /**
229 Measurement mode
230 */
231 enum MeasurementMode
232 {
233 MeasurementMode_None = 0, /**< No measurement mode */
234 MeasurementMode_GrayCodePhaseShift = 1, /**< Gray code + phase shift */
235 MeasurementMode_PhaseShift = 2, /**< Phase shift only */
236 MeasurementMode_PhaseCode = 3, /**< Phase code*/
237 };
238
239 /**
240 Prefilter type
241 */
242 enum MeasurementPreFilterType
243 {
244 MeasurementPreFilterType_None = 0, /**< No type */
245 MeasurementPreFilterType_RemoveInvalid = 1, /**< Remove invalid values */
246 MeasurementPreFilterType_Gaussian = 2, /**< Gaussian filter */
247 MeasurementPreFilterType_Average = 3, /**< Average filter */
248 MeasurementPreFilterType_Median = 4, /**< Median filter */
249 MeasurementPreFilterType_RemovePeaks = 5, /**< Remove peaks */
250
251 MeasurementPreFilterType_Last, /**< Last item */
252 };
253
254 /**
255 Pattern types
256 */
257 enum MeasurementPattern
258 {
259 MeasurementPattern_Bright = 0, /**< Bright image (255) */
260 MeasurementPattern_Dark = 1, /**< Dark image (0) */
261 MeasurementPattern_MeasRange = 2, /**< Measurement range */
262 MeasurementPattern_Sqare = 3, /**< Square */
263 MeasurementPattern_Circle = 4, /**< Circle */
264 MeasurementPattern_SqareCross = 5, /**< Square with cross */
265 MeasurementPattern_CircleCross = 6, /**< Circle with cross */
266 };
267
268 /**
269 Stripes types
270 */
271 enum MeasurementStripePattern
272 {
273 MeasurementStripePattern_None = 0, /**> No stripes, bright image (255 or invers 0) */
274 MeasurementStripePattern_1 = 1, /**> 1 stripe */
275 MeasurementStripePattern_2 = 2, /**> 2 stripes */
276 MeasurementStripePattern_4 = 3, /**> 4 stripes */
277 MeasurementStripePattern_8 = 4, /**> 5 stripes */
278 MeasurementStripePattern_16 = 5, /**> 16 stripes */
279 MeasurementStripePattern_32 = 6, /**> 32 stripes */
280 MeasurementStripePattern_64 = 7, /**> 64 stripes */
281 MeasurementStripePattern_128 = 8, /**> 128 stripes */
282 MeasurementStripePattern_256 = 9, /**> 256 stripes */
283 MeasurementStripePattern_512 = 10, /**> 512 stripes */
284 MeasurementStripePattern_1024 = 11, /**> 2024 stripes */
285 };
286
287 /**
288 Projector lamp state
289 */
290 enum ProjectorLampState
291 {
292 ProjectorLampState_Indefinite, /**< Indefinite - No projector lamp switch on / off possible */
293 ProjectorLampState_On, /**< Lamp on */
294 ProjectorLampState_Off, /**< Lamp off */
295 };
296
297 /**
298 Pre-filter definition
299 */
300 struct TMeasProgFilterData
301 {
302 long m_lFilterLengthX; /**< Filter length X direction */
303 long m_lFilterLengthY; /**< Filter length Y direction */
304 eMC3DFilterDirection m_Direction; /**< Filter direction */
305
306 TMeasProgFilterData()
307 {
308 m_lFilterLengthX = m_lFilterLengthY = 3;
309 m_Direction = MC3DFilterDirection_XY;
310 };
311 };
312
313 /**
314 Pre-filter - remove invalid
315 */
316 struct TMeasProgRemoveInvalidFilterData
317 {
318 long m_lFilterLengthX; /**< Filter length X direction */
319 long m_lFilterLengthY; /**< Filter length Y direction */
320 eMC3DFilterDirection m_Direction; /**< Filter direction */
321 long m_lMaximalRadius; /**< Maximum radius of invalid range (in pixel) */
322 bool m_bUseEdges; /**< Include areas on the edge? */
323 long m_lEnlargeInvalid; /**< Increase invalid area (in pixel) */
324
325 TMeasProgRemoveInvalidFilterData()
326 {
327 m_lFilterLengthX = m_lFilterLengthY = 9;
328 m_Direction = MC3DFilterDirection_XY;
329 m_lMaximalRadius = 10;
330 m_bUseEdges = false;
331 m_lEnlargeInvalid = 2;
332 };
333 };
334
335 /**
336 Calibration states
337 */
338 #define SIMPLE_CALIB_STATE_NONE 0
339 #define SIMPLE_CALIB_STATE_PLANE 1
340 #define SIMPLE_CALIB_STATE_GRID 2
341 #define SIMPLE_CALIB_STATE_GROOVE 4
342
343 /**
344 Calibration modes
345 */
346 enum CalibrationMode
347 {
348 CalibrationMode_None = 0, /**< No calibration */
349 CalibrationMode_Simple = 1, /**< Simple calibration */
350 CalibrationMode_MultiLevel = 2, /**< Multi level calibration */
351
352 CalibrationMode_Last,
353 };
354
355 /**
356 Calibration types
357 */
358 enum CalibrationType
359 {
360 CalibrationType_None = 0,
361 CalibrationType_GrooveStandard = 11,
362 CalibrationType_AdditionalGroove = 12,
363 CalibrationType_GrooveTelecentric = 1,
364 CalibrationType_AdditionalGrooveTelecentric = 2,
365 CalibrationType_MultiLevel = 21,
366 };
367
368 /**
369 Projector position to camera
370 */
371 enum ProjectorPositionToCamera
372 {
373 ProjectorPositionToCamera_Right,
374 ProjectorPositionToCamera_Left,
375 ProjectorPositionToCamera_Top,
376 ProjectorPositionToCamera_Bottom,
377 };
378
379 /**
380 Measuring program for calibration
381 */
382 enum CalibrationMeasProgram
383 {
384 CalibrationMeasProgram_32_8, /**< Stripes width 32, 8 images */
385 CalibrationMeasProgram_32_16, /**< Stripes width 32, 16 images */
386 CalibrationMeasProgram_32_32, /**< Stripes width 32, 32 images */
387 CalibrationMeasProgram_32_64, /**< Stripes width 32, 64 images */
388 CalibrationMeasProgram_32_128, /**< Stripes width 32, 128 images */
389 };
390
391 /**
392 Configuration data transfer mode
393 */
394 enum ConfigDataTransferMode
395 {
396 ConfigDataTransferMode_InitialParameter, /**< Initial parameters */
397 ConfigDataTransferMode_MeasProgramSet, /**< Measurement program set */
398 ConfigDataTransferMode_Calibration, /**< Calibration */
399
400 ConfigDataTransferMode_AllWithoutCalibration = 0xfffe, /**< All without calibration */
401 ConfigDataTransferMode_All = 0xffff, /**< All */
402 };
403
404 /**
405 Trigger event types
406 */
407 enum SensorEventType
408 {
409 SensorEventType_None = 0, /**< No event type */
410 SensorEventType_ProjectionEnd = 1, /**< Called on projection end */
411 SensorEventType_ExternalTrigger = 2, /**< Called on external trigger event */
412 };
413
414 /**
415 Trigger events return types
416 */
417 enum SensorEventReturnType
418 {
419 SensorEventReturnType_None = 0, /**< No return */
420 SensorEventReturnType_Int = 1, /**< Integer */
421 SensorEventReturnType_Float = 2, /**< Double */
422 SensorEventReturnType_String = 3, /**< Zero terminated string */
423 };
424
425 /**
426 Trigger event buffer size
427 */
428 #define SENSOR_EVENT_RETURN_VALUE_BUFFER_SIZE 10240 ///< Buffer size
429
430 /*/
431 Prototype for the event function
432
433 @param EventType Type of the event
434 @param ReturnType Type of the return value
435 @param pcReturnBuffer Pointer to return buffer
436 */
437 typedef void(__stdcall *MikroCADEventFunc)(SensorEventType EventType, SensorEventReturnType ReturnType,
438 char* pcReturnBuffer);
439
440 /**
441 Callback prototype for MikroCAD_SetUSBCommErrorHandler
442 */
443 typedef void(__stdcall *COMM_ERROR)();
444
445 /**
446 Texture mode (Gray or color projection)
447 */
448 enum MeasurementTextureMode
449 {
450 MeasurementTextureMode_ProjectGray, // Gray projection (default)
451 MeasurementTextureMode_ProjectColor, // Color projection
452
453 MeasurementTextureMode_Last, // Last item
454 };
455
456 #endif // _MeasurementDefs_h
SensorEventType
SensorEventType
Trigger event types.
Definition: MeasurementDefs.h:407
MeasurementStripePattern_128
64 stripes
Definition: MeasurementDefs.h:281
MeasurementParameterID_CurrProjectorSizeX
Current projector size in X direction (in pixel)
Definition: MeasurementDefs.h:171
MeasurementParameterID_CameraShutterTimeBase
Camera shutter time base.
Definition: MeasurementDefs.h:179
TMeasProgRemoveInvalidFilterData::m_lFilterLengthY
long m_lFilterLengthY
Filter length Y direction.
Definition: MeasurementDefs.h:319
MeasurementPattern
MeasurementPattern
Pattern types.
Definition: MeasurementDefs.h:257
SensorEventReturnType_Float
Double.
Definition: MeasurementDefs.h:421
MeasurementPreFilterType_None
No type.
Definition: MeasurementDefs.h:244
MeasurementPattern_MeasRange
Measurement range.
Definition: MeasurementDefs.h:261
MeasurementParameterID_SensorBrightness
Sensor brightness combined from camera shutter, camera gain, projector brightness ...
Definition: MeasurementDefs.h:185
MeasurementStripePattern_8
4 stripes
Definition: MeasurementDefs.h:277
MeasurementParameterID_CameraGain
Camera gain.
Definition: MeasurementDefs.h:180
TMeasProgFilterData::m_lFilterLengthX
long m_lFilterLengthX
Filter length X direction.
Definition: MeasurementDefs.h:302
MeasurementParameterID_MaxProjectorSizeY
Maximum projector size in Y direction (in pixel)
Definition: MeasurementDefs.h:176
ConfigDataTransferMode_AllWithoutCalibration
All without calibration.
Definition: MeasurementDefs.h:400
CalibrationType
CalibrationType
Calibration types.
Definition: MeasurementDefs.h:358
MeasurementPattern_Bright
Bright image (255)
Definition: MeasurementDefs.h:259
MeasurementParameterID_Dynamic
Dynamic - measurement with 2 or 3 brightness parameter sets (HDR mode , Super HDR mode) ...
Definition: MeasurementDefs.h:186
ConfigDataTransferMode
ConfigDataTransferMode
Configuration data transfer mode.
Definition: MeasurementDefs.h:394
MeasurementParameterID_CurrProjectorSizeY
Current projector size in Y direction (in pixel)
Definition: MeasurementDefs.h:172
MeasurementPreFilterType_RemovePeaks
Remove peaks.
Definition: MeasurementDefs.h:249
CalibrationMeasProgram_32_64
Stripes width 32, 64 images.
Definition: MeasurementDefs.h:387
MeasurementParameterID_TextureCorrFactorGreen
Color factor red share (only Texture mode "projection color".
Definition: MeasurementDefs.h:202
MeasurementPreFilterType
MeasurementPreFilterType
Prefilter type.
Definition: MeasurementDefs.h:242
TSensorVersionInfo::m_dwInterfaceVersion
unsigned long m_dwInterfaceVersion
Version of the interface (protocol) to hardware.
Definition: MeasurementDefs.h:121
MeasurementPreFilterType_Median
Median filter.
Definition: MeasurementDefs.h:248
MeasurementPreFilterType_Average
Average filter.
Definition: MeasurementDefs.h:247
SensorEventType_None
No event type.
Definition: MeasurementDefs.h:409
MeasurementParameterID_CameraShutter
Camera shutter.
Definition: MeasurementDefs.h:178
MeasurementParameterID_TextureCorrFactorBrightness
Color factor blue share (only Texture mode "projection color".
Definition: MeasurementDefs.h:204
SensorEventReturnType_String
Zero terminated string.
Definition: MeasurementDefs.h:422
TSensorVersionInfo::m_dwModuleVersion
unsigned long m_dwModuleVersion
Version of the module (DLL)
Definition: MeasurementDefs.h:119
MeasurementParameterID_MirrorMode
Mirror mode for all images.
Definition: MeasurementDefs.h:194
MeasurementParameterID_TextureCorrFactorRed
Float parameter.
Definition: MeasurementDefs.h:201
TMeasurementVersionInfo
Version information structure for all.
Definition: MeasurementDefs.h:134
CalibrationMeasProgram
CalibrationMeasProgram
Measuring program for calibration.
Definition: MeasurementDefs.h:382
TMeasProgRemoveInvalidFilterData::m_lEnlargeInvalid
long m_lEnlargeInvalid
Increase invalid area (in pixel)
Definition: MeasurementDefs.h:323
MeasurementStripePattern_512
256 stripes
Definition: MeasurementDefs.h:283
CalibrationMeasProgram_32_32
Stripes width 32, 32 images.
Definition: MeasurementDefs.h:386
TDWordList
vector< unsigned long > TDWordList
Double word list.
Definition: MeasurementDefs.h:221
MeasurementParameterID_CurrCameraSizeX
Integer parameter.
Definition: MeasurementDefs.h:164
ProjectorLampState
ProjectorLampState
Projector lamp state.
Definition: MeasurementDefs.h:290
SensorTypeID_AlligatorVimba
Sensor Projector: Alligator, Camera Vimba AVT.
Definition: MeasurementDefs.h:29
TMeasProgFilterData
Pre-filter definition.
Definition: MeasurementDefs.h:300
std
ConfigDataTransferMode_Calibration
Calibration.
Definition: MeasurementDefs.h:398
CameraDriverTypeID_Vimba
Vimba AVT.
Definition: MeasurementDefs.h:66
MeasurementParameterID_BrightnessOffsetHDRMode
Brightness offset for HDR mode (Dynamic 2)
Definition: MeasurementDefs.h:187
Measurement_ParameterID_LEDTemperature
LED temperature, only available on some systems.
Definition: MeasurementDefs.h:213
TMeasProgRemoveInvalidFilterData::m_lMaximalRadius
long m_lMaximalRadius
Maximum radius of invalid range (in pixel)
Definition: MeasurementDefs.h:321
MeasurementStripePattern
MeasurementStripePattern
Stripes types.
Definition: MeasurementDefs.h:271
SensorEventType_ProjectionEnd
Called on projection end.
Definition: MeasurementDefs.h:410
MeasurementPreFilterType_RemoveInvalid
Remove invalid values.
Definition: MeasurementDefs.h:245
ProjectorDriverTypeID_Alligator
Alligator.
Definition: MeasurementDefs.h:53
CalibrationMeasProgram_32_8
Stripes width 32, 8 images.
Definition: MeasurementDefs.h:384
SensorOperatingMode_SimpleCalib
Initialized for simple calibration and measurement.
Definition: MeasurementDefs.h:40
SensorTypeID_None
No type.
Definition: MeasurementDefs.h:22
MeasurementParameterID_ProjectorSwitchOnOff
Projector switch on/off.
Definition: MeasurementDefs.h:183
MeasurementStripePattern_64
32 stripes
Definition: MeasurementDefs.h:280
MeasurementParameterID_MaxProjectionAreaY
Maximum of projection area percental Y.
Definition: MeasurementDefs.h:211
MeasurementParameterID_MaxProjectionAreaX
Maximum of projection area percental X.
Definition: MeasurementDefs.h:210
MeasurementParameterID_CurrCameraY0
Current camera origin in Y direction (in pixel)
Definition: MeasurementDefs.h:167
ProjectorPositionToCamera
ProjectorPositionToCamera
Projector position to camera.
Definition: MeasurementDefs.h:371
TSensorVersionInfo
Version information structure for one sensor.
Definition: MeasurementDefs.h:117
MeasurementPattern_Sqare
Square.
Definition: MeasurementDefs.h:262
SensorTypeID
SensorTypeID
List of the IDs of all available sensor types.
Definition: MeasurementDefs.h:20
Measurement_ParameterID_SystemTemperature
System/Camera temperature, only available on some systems.
Definition: MeasurementDefs.h:214
MeasurementMode_PhaseCode
Phase code.
Definition: MeasurementDefs.h:236
MeasurementStripePattern_4
2 stripes
Definition: MeasurementDefs.h:276
TSensorDescription::m_dwSensorNo
unsigned long m_dwSensorNo
Sensor number.
Definition: MeasurementDefs.h:79
TSensorDescription::m_stProjectorID
string m_stProjectorID
Projector ID.
Definition: MeasurementDefs.h:82
ConfigDataTransferMode_MeasProgramSet
Measurement program set.
Definition: MeasurementDefs.h:397
ProjectorLampState_Off
Lamp off.
Definition: MeasurementDefs.h:294
MeasurementStripePattern_32
16 stripes
Definition: MeasurementDefs.h:279
SensorOperatingMode_Measure
Initialized for measurements only.
Definition: MeasurementDefs.h:39
TSensorDescription::m_stCameraID
string m_stCameraID
Camera ID.
Definition: MeasurementDefs.h:83
ProjectorLampState_On
Lamp on.
Definition: MeasurementDefs.h:293
MeasurementParameterID_CurrCameraSizeY
Current camera size in Y direction (in pixel)
Definition: MeasurementDefs.h:165
ConfigDataTransferMode_All
All.
Definition: MeasurementDefs.h:401
TSensorDescription::m_bDescSet
bool m_bDescSet
All description inputs set?
Definition: MeasurementDefs.h:78
CalibrationMode_Simple
Simple calibration.
Definition: MeasurementDefs.h:349
MeasurementStripePattern_1
No stripes, bright image (255 or invers 0)
Definition: MeasurementDefs.h:274
MeasurementStripePattern_16
5 stripes
Definition: MeasurementDefs.h:278
MeasurementMode_GrayCodePhaseShift
Gray code + phase shift.
Definition: MeasurementDefs.h:234
TSensorVersionInfo::m_dwFirmwareVersion
unsigned long m_dwFirmwareVersion
Version of the sensor firmware.
Definition: MeasurementDefs.h:120
MeasurementParameterID_ProjectorBrightness
Projector brightness (e.g.
Definition: MeasurementDefs.h:182
MeasurementStripePattern_2
1 stripe
Definition: MeasurementDefs.h:275
MeasurementParameterID_CurrProjectorY0
Current projector origin in Y direction (in pixel)
Definition: MeasurementDefs.h:174
TSensorDescription::m_CameraDriverTypeID
CameraDriverTypeID m_CameraDriverTypeID
Camera type ID.
Definition: MeasurementDefs.h:81
COMM_ERROR
void(__stdcall * COMM_ERROR)()
Callback prototype for MikroCAD_SetUSBCommErrorHandler.
Definition: MeasurementDefs.h:443
TMeasurementVersionInfo::m_dwModuleVersion
unsigned long m_dwModuleVersion
Version of the measurement module (DLL)
Definition: MeasurementDefs.h:136
CalibrationMode
CalibrationMode
Calibration modes.
Definition: MeasurementDefs.h:346
TStringList
vector< string > TStringList
String list.
Definition: MeasurementDefs.h:226
MeasurementPreFilterType_Gaussian
Gaussian filter.
Definition: MeasurementDefs.h:246
MeasurementParameterID_ScaleY
Scaling Y.
Definition: MeasurementDefs.h:207
MeasurementParameterID_TextureCorrFactorBlue
Color factor green share (only Texture mode "projection color".
Definition: MeasurementDefs.h:203
SensorOperatingMode
SensorOperatingMode
Sensor operating mode.
Definition: MeasurementDefs.h:37
MeasurementMode_None
No measurement mode.
Definition: MeasurementDefs.h:233
CameraDriverTypeID_None
No camera.
Definition: MeasurementDefs.h:63
TSensorDescription::m_ProjectorDriverTypeID
ProjectorDriverTypeID m_ProjectorDriverTypeID
Projector type ID.
Definition: MeasurementDefs.h:80
MeasurementParameterID_UseTexture
Use texture acquisition ?
Definition: MeasurementDefs.h:192
SensorTypeID_AlligatorPylon1394
Sensor Projector: Alligator, Camera Pylon Basler IEEE1394.
Definition: MeasurementDefs.h:27
MeasurementPattern_SqareCross
Square with cross.
Definition: MeasurementDefs.h:264
CalibrationMode_MultiLevel
Multi level calibration.
Definition: MeasurementDefs.h:350
MeasurementPattern_Dark
Dark image (0)
Definition: MeasurementDefs.h:260
MeasurementParameterID
MeasurementParameterID
Parameter IDs.
Definition: MeasurementDefs.h:160
MeasurementMode_PhaseShift
Phase shift only.
Definition: MeasurementDefs.h:235
CalibrationMeasProgram_32_128
Stripes width 32, 128 images.
Definition: MeasurementDefs.h:388
CameraDriverTypeID_Pylon1394
Pylon Basler (IEEE 1394)
Definition: MeasurementDefs.h:64
TMeasProgRemoveInvalidFilterData
Pre-filter - remove invalid.
Definition: MeasurementDefs.h:316
SensorEventType_ExternalTrigger
Called on external trigger event.
Definition: MeasurementDefs.h:411
MeasurementParameterID_SensorSwitchOnOff
Sensor switch on/off.
Definition: MeasurementDefs.h:190
CameraDriverTypeID
CameraDriverTypeID
Cameras driver type (Pylon, Vimba...)
Definition: MeasurementDefs.h:61
SensorEventReturnType_Int
Integer.
Definition: MeasurementDefs.h:420
MeasurementParameterID_BrightnessOffsetSuperHDRMode
Brightness offset for Super HDR mode (Dynamic 3)
Definition: MeasurementDefs.h:188
Measurement_ParameterID_ProjectorStatus
Projector status, only available on some systems.
Definition: MeasurementDefs.h:215
MeasurementPattern_CircleCross
Circle with cross.
Definition: MeasurementDefs.h:265
TMeasurementVersionInfo::m_SensorVersionInfo
vector< TSensorVersionInfo > m_SensorVersionInfo
List with version info of all available sensor types.
Definition: MeasurementDefs.h:138
MeasurementPattern_Circle
Circle.
Definition: MeasurementDefs.h:263
CameraDriverTypeID_PylonGigE
Pylon Basler (GigE)
Definition: MeasurementDefs.h:65
TSensorDescription::m_lDeviceID
long m_lDeviceID
Device ID (May be the sensor number, not necessary)
Definition: MeasurementDefs.h:77
TMeasProgFilterData::m_lFilterLengthY
long m_lFilterLengthY
Filter length Y direction.
Definition: MeasurementDefs.h:303
TMeasurementVersionInfo::m_dwInterfaceVersion
unsigned long m_dwInterfaceVersion
Version of the measurement interface (protocol) to hardware.
Definition: MeasurementDefs.h:137
MeasurementParameterID_NumStripes
Number of predefined stripe pattern.
Definition: MeasurementDefs.h:197
MeasurementPreFilterType_Last
Last item.
Definition: MeasurementDefs.h:251
CalibrationMode_None
No calibration.
Definition: MeasurementDefs.h:348
MeasurementParameterID_CurrProjectorX0
Current projector origin in X direction (in pixel)
Definition: MeasurementDefs.h:173
MeasurementTextureMode
MeasurementTextureMode
Texture mode (Gray or color projection)
Definition: MeasurementDefs.h:448
MeasurementParameterID_CurrCameraX0
Current camera origin in X direction (in pixel)
Definition: MeasurementDefs.h:166
ProjectorLampState_Indefinite
Indefinite - No projector lamp switch on / off possible.
Definition: MeasurementDefs.h:292
MeasurementParameterID_MaxProjectorSizeX
Maximum projector size in X direction (in pixel)
Definition: MeasurementDefs.h:175
TSensorVersionInfo::m_SensorTypeID
SensorTypeID m_SensorTypeID
Sensor type ID.
Definition: MeasurementDefs.h:122
MeasurementParameterID_NumPattern
Number of predefined pattern.
Definition: MeasurementDefs.h:196
SensorEventReturnType
SensorEventReturnType
Trigger events return types.
Definition: MeasurementDefs.h:417
SensorEventReturnType_None
No return.
Definition: MeasurementDefs.h:419
TMeasProgRemoveInvalidFilterData::m_bUseEdges
bool m_bUseEdges
Include areas on the edge?
Definition: MeasurementDefs.h:322
MC3DDefs.h
Common defines for the MikroCAD SDK library.
MeasurementMode
MeasurementMode
Measurement mode.
Definition: MeasurementDefs.h:231
TSensorDescription
Description for sensors with separate projector and camera.
Definition: MeasurementDefs.h:75
ProjectorDriverTypeID_None
No projector.
Definition: MeasurementDefs.h:52
MeasurementParameterID_MaxCameraSizeX
Maximum camera size in X direction (in pixel)
Definition: MeasurementDefs.h:168
TMeasProgRemoveInvalidFilterData::m_lFilterLengthX
long m_lFilterLengthX
Filter length X direction.
Definition: MeasurementDefs.h:318
eMC3DFilterDirection
eMC3DFilterDirection
The direction of filter.
Definition: MC3DDefs.h:19
MeasurementParameterID_ScaleZ
Scaling Z.
Definition: MeasurementDefs.h:208
MeasurementParameterID_MaxCameraSizeY
Maximum camera size in Y direction (in pixel)
Definition: MeasurementDefs.h:169
TMeasProgFilterData::m_Direction
eMC3DFilterDirection m_Direction
Filter direction.
Definition: MeasurementDefs.h:304
SensorTypeID_AlligatorPylonGigE
Sensor Projector: Alligator, Camera Pylon Basler GigE.
Definition: MeasurementDefs.h:28
CalibrationMeasProgram_32_16
Stripes width 32, 16 images.
Definition: MeasurementDefs.h:385
ConfigDataTransferMode_InitialParameter
Initial parameters.
Definition: MeasurementDefs.h:396
TMeasProgRemoveInvalidFilterData::m_Direction
eMC3DFilterDirection m_Direction
Filter direction.
Definition: MeasurementDefs.h:320
MeasurementStripePattern_256
128 stripes
Definition: MeasurementDefs.h:282
ProjectorDriverTypeID
ProjectorDriverTypeID
Sensor with separate camera and projector.
Definition: MeasurementDefs.h:50
SensorTypeID_DSP
DSP sensor.
Definition: MeasurementDefs.h:26
MeasurementParameterID_ScaleX
Brightness factor for texture (all modes)
Definition: MeasurementDefs.h:206
MeasurementStripePattern_1024
512 stripes
Definition: MeasurementDefs.h:284