Version 8.9.0
 
Loading...
Searching...
No Matches
IRDeviceParams.h
1/******************************************************************************
2 * Copyright (c) 2012-2017 All Rights Reserved, http://www.evocortex.com *
3 * Evocortex GmbH *
4 * Emilienstr. 1 *
5 * 90489 Nuremberg *
6 * Germany *
7 * *
8 * Contributors: *
9 * Initial version for Linux 64-Bit platform supported by Fraunhofer IPA, *
10 * http://www.ipa.fraunhofer.de *
11 *****************************************************************************/
12
13#pragma once
14
15#include "unicode.h"
16#include <iostream>
17#include "irdirectsdk_defs.h"
18#include <vector>
19#include "IRArray.h"
20
21namespace evo
22{
23
24enum EnumFlagState { irFlagOpen, irFlagClose, irFlagOpening, irFlagClosing, irFlagError, irFlagInitializing};
25
26
32{
33 enum Value
34 {
38 };
39};
40
46{
47 enum Value
48 {
51 };
52};
53
59{
60 enum Value
61 {
68 };
69};
70
71
80 {}
81
83 unsigned char channel;
85};
86
87#if _WIN32 && !IRDIRECTSDK_STATIC
88EXPIMP_TEMPLATE template class __IRDIRECTSDK_API__ IRArray<bool>;
89EXPIMP_TEMPLATE template class __IRDIRECTSDK_API__ IRArray<float>;
90#endif
91
97struct __IRDIRECTSDK_API__ IRFrameMetadata
98{
99 IRFrameMetadata(std::size_t pifDIsSize, std::size_t pifAIsSize) : pifDIs(pifDIsSize), pifAIs(pifAIsSize)
100 {
101 }
102
103 unsigned short size;
104 unsigned int counter;
105 unsigned int counterHW;
106 long long timestamp;
107 long long timestampMedia;
108 EnumFlagState flagState;
109 float tempChip;
110 float tempFlag;
111 float tempBox;
112 unsigned short pifIn;
115};
116
117enum EnumOutputMode { Energy = 1, Temperature = 2 };
118
125{
126 unsigned long serial;
127 int fov;
128 Tchar* opticsText;
129 Tchar* formatsPath;
130 Tchar* caliPath;
132 int tMin;
133 int tMax;
134 float framerate;
142 float focus;
144 unsigned short bufferQueueSize;
151 {
152 unsigned char deviceIpAddress[4];
153 unsigned short localUdpPort;
155 } ethernetDevice;
156};
157
158void __IRDIRECTSDK_API__ IRDeviceParams_InitDefault(IRDeviceParams &params);
159
160void __IRDIRECTSDK_API__ IRDeviceParams_Print(IRDeviceParams params);
161
167class __IRDIRECTSDK_API__ IRDeviceParamsReader
168{
169public:
170
176 static bool readXML(const Tchar* xmlFile, IRDeviceParams &params);
177
183 static bool readXMLC(const char* xmlFile, IRDeviceParams &params);
184
185private:
186
191
196};
197
198}
C-Array wrapper for handle size, copy and memory.
Definition: IRArray.h:23
Helper class for reading PI imager configuration files.
Definition: IRDeviceParams.h:168
static bool readXMLC(const char *xmlFile, IRDeviceParams &params)
Static xml parsing method for 8-bit character path.
static bool readXML(const Tchar *xmlFile, IRDeviceParams &params)
Static xml parsing method.
Definition: IRDeviceParams.h:151
unsigned short localUdpPort
Definition: IRDeviceParams.h:153
bool checkUdpSenderIp
Definition: IRDeviceParams.h:154
Structure containing device parameters.
Definition: IRDeviceParams.h:125
float tChipFixedValue
Definition: IRDeviceParams.h:141
Tchar * formatsPath
Definition: IRDeviceParams.h:129
int deviceAPI
Definition: IRDeviceParams.h:147
float framerate
Definition: IRDeviceParams.h:134
unsigned long serial
Definition: IRDeviceParams.h:126
int autoFlag
Definition: IRDeviceParams.h:137
float maxInterval
Definition: IRDeviceParams.h:139
bool useExternalProbeForReferencing
Definition: IRDeviceParams.h:148
int fov
Definition: IRDeviceParams.h:127
float minInterval
Definition: IRDeviceParams.h:138
int radialDistortionCorrectionMode
Definition: IRDeviceParams.h:146
int bispectral
Definition: IRDeviceParams.h:136
int tChipMode
Definition: IRDeviceParams.h:140
bool enableHighPrecision
Definition: IRDeviceParams.h:145
int tMin
Definition: IRDeviceParams.h:132
int videoFormatIndex
Definition: IRDeviceParams.h:135
bool enableExtendedTempRange
Definition: IRDeviceParams.h:143
unsigned short bufferQueueSize
Definition: IRDeviceParams.h:144
int tMax
Definition: IRDeviceParams.h:133
Tchar * deadPixelPath
Definition: IRDeviceParams.h:131
float focus
Definition: IRDeviceParams.h:142
Tchar * caliPath
Definition: IRDeviceParams.h:130
bool enableMultiThreading
Definition: IRDeviceParams.h:149
Structure containing event data information.
Definition: IRDeviceParams.h:77
IREventInputType::Value inputType
Definition: IRDeviceParams.h:82
IREventType::Value eventType
Definition: IRDeviceParams.h:84
unsigned char channel
Definition: IRDeviceParams.h:83
Enum Input type of the event.
Definition: IRDeviceParams.h:32
Value
Definition: IRDeviceParams.h:34
@ AnalogInput
Triggered by analog input.
Definition: IRDeviceParams.h:36
@ Software
Triggered by software.
Definition: IRDeviceParams.h:37
@ DigitalInput
Triggered by digital input.
Definition: IRDeviceParams.h:35
Enum Type of the event.
Definition: IRDeviceParams.h:46
Value
Definition: IRDeviceParams.h:48
@ Snapshot
Event source is snapshot.
Definition: IRDeviceParams.h:49
@ SnapshotOnEdge
Event source is snapshot on edge.
Definition: IRDeviceParams.h:50
Structure containing meta data acquired from the PI imager.
Definition: IRDeviceParams.h:98
long long timestamp
Definition: IRDeviceParams.h:106
float tempBox
Definition: IRDeviceParams.h:111
float tempFlag
Definition: IRDeviceParams.h:110
EnumFlagState flagState
Definition: IRDeviceParams.h:108
float tempChip
Definition: IRDeviceParams.h:109
unsigned int counter
Definition: IRDeviceParams.h:104
unsigned short pifIn
Definition: IRDeviceParams.h:112
unsigned int counterHW
Definition: IRDeviceParams.h:105
IRArray< float > pifAIs
Definition: IRDeviceParams.h:114
IRArray< bool > pifDIs
Definition: IRDeviceParams.h:113
unsigned short size
Definition: IRDeviceParams.h:103
Enum Specifies the connected pif.
Definition: IRDeviceParams.h:59
Value
Definition: IRDeviceParams.h:61
@ PImV
Extern PI PIF with 0..10 Voltage Output.
Definition: IRDeviceParams.h:64
@ Stackable
Extern stackable pif.
Definition: IRDeviceParams.h:66
@ PI
Extern PI PIF.
Definition: IRDeviceParams.h:63
@ Intern
Intern pif.
Definition: IRDeviceParams.h:65
@ PImA
Extern PI PIF with 0..20 mA Output.
Definition: IRDeviceParams.h:67
@ None
Invalid or none pif.
Definition: IRDeviceParams.h:62