ilabs-flir 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Flir.podspec +31 -31
- package/README.md +1271 -1271
- package/android/Flir/build.gradle.kts +85 -80
- package/android/Flir/libs/flir-stubs.jar +0 -0
- package/android/Flir/src/main/AndroidManifest.xml +31 -31
- package/android/Flir/src/main/java/com/flir/thermalsdk/ErrorCodeException.java +14 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/ImageBuffer.java +11 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/JavaImageBuffer.java +35 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/Palette.java +15 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/PaletteManager.java +16 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/Point.java +11 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/ThermalImage.java +23 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/ThermalValue.java +9 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/CameraType.java +8 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/CommunicationInterface.java +16 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/Identity.java +23 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/IpSettings.java +9 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/connectivity/ConnectionStatusListener.java +7 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/remote/OnReceived.java +5 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/remote/OnRemoteError.java +7 -0
- package/android/Flir/src/main/java/flir/android/CameraHandler.java +224 -194
- package/android/Flir/src/main/java/flir/android/FlirCommands.java +111 -0
- package/android/Flir/src/main/java/flir/android/FlirConnectionManager.java +354 -0
- package/android/Flir/src/main/java/flir/android/FlirController.kt +11 -11
- package/android/Flir/src/main/java/flir/android/FlirDiscoveryManager.java +236 -0
- package/android/Flir/src/main/java/flir/android/FlirDownloadManager.kt +75 -75
- package/android/Flir/src/main/java/flir/android/FlirDownloadPackage.kt +16 -16
- package/android/Flir/src/main/java/flir/android/FlirFrameCache.kt +6 -6
- package/android/Flir/src/main/java/flir/android/FlirManager.kt +254 -248
- package/android/Flir/src/main/java/flir/android/FlirModule.kt +74 -74
- package/android/Flir/src/main/java/flir/android/FlirPackage.kt +19 -16
- package/android/Flir/src/main/java/flir/android/FlirSDKLoader.kt +195 -191
- package/android/Flir/src/main/java/flir/android/FlirSdkManager.java +890 -0
- package/android/Flir/src/main/java/flir/android/FlirStatus.kt +12 -12
- package/android/Flir/src/main/java/flir/android/FlirView.kt +48 -48
- package/android/Flir/src/main/java/flir/android/FlirViewManager.kt +13 -13
- package/android/Flir/src/main/java/flir/android/FrameDataHolder.java +14 -14
- package/app.plugin.js +264 -264
- package/expo-module.config.json +5 -5
- package/ios/Flir/Framework/ThermalSDK/FLIRBattery.h +76 -76
- package/ios/Flir/Framework/ThermalSDK/FLIRCalibration.h +108 -108
- package/ios/Flir/Framework/ThermalSDK/FLIRCamera.h +156 -156
- package/ios/Flir/Framework/ThermalSDK/FLIRCameraDeviceInfo.h +53 -53
- package/ios/Flir/Framework/ThermalSDK/FLIRCameraEvent.h +132 -132
- package/ios/Flir/Framework/ThermalSDK/FLIRCameraImport.h +204 -204
- package/ios/Flir/Framework/ThermalSDK/FLIRColorDistributionSettings.h +204 -204
- package/ios/Flir/Framework/ThermalSDK/FLIRColorizer.h +82 -82
- package/ios/Flir/Framework/ThermalSDK/FLIRDiscoveredCamera.h +44 -44
- package/ios/Flir/Framework/ThermalSDK/FLIRDiscovery.h +132 -132
- package/ios/Flir/Framework/ThermalSDK/FLIRDisplaySettings.h +29 -29
- package/ios/Flir/Framework/ThermalSDK/FLIRFocus.h +70 -70
- package/ios/Flir/Framework/ThermalSDK/FLIRFusion.h +192 -192
- package/ios/Flir/Framework/ThermalSDK/FLIRFusionController.h +136 -136
- package/ios/Flir/Framework/ThermalSDK/FLIRFusionTransformation.h +35 -35
- package/ios/Flir/Framework/ThermalSDK/FLIRIdentity.h +264 -264
- package/ios/Flir/Framework/ThermalSDK/FLIRImageBase.h +196 -196
- package/ios/Flir/Framework/ThermalSDK/FLIRImageColorizer.h +26 -26
- package/ios/Flir/Framework/ThermalSDK/FLIRImageStatistics.h +61 -61
- package/ios/Flir/Framework/ThermalSDK/FLIRIsotherms.h +208 -208
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementArea.h +38 -38
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementCollection.h +147 -147
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementDelta.h +62 -62
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementDimensions.h +33 -33
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementEllipse.h +49 -49
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementLine.h +66 -66
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementMarker.h +69 -69
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementParameters.h +41 -41
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementRectangle.h +36 -36
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementReference.h +27 -27
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementShape.h +46 -46
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementSpot.h +33 -33
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementsController.h +160 -160
- package/ios/Flir/Framework/ThermalSDK/FLIRMeterLinkSensorPoll.h +247 -247
- package/ios/Flir/Framework/ThermalSDK/FLIROverlayController.h +27 -27
- package/ios/Flir/Framework/ThermalSDK/FLIRPalette.h +60 -60
- package/ios/Flir/Framework/ThermalSDK/FLIRPaletteController.h +36 -36
- package/ios/Flir/Framework/ThermalSDK/FLIRPaletteManager.h +97 -97
- package/ios/Flir/Framework/ThermalSDK/FLIRQuantification.h +55 -55
- package/ios/Flir/Framework/ThermalSDK/FLIRRemoteControl.h +393 -393
- package/ios/Flir/Framework/ThermalSDK/FLIRRenderer.h +35 -35
- package/ios/Flir/Framework/ThermalSDK/FLIRRendererImpl.h +17 -17
- package/ios/Flir/Framework/ThermalSDK/FLIRScale.h +99 -99
- package/ios/Flir/Framework/ThermalSDK/FLIRScaleController.h +44 -44
- package/ios/Flir/Framework/ThermalSDK/FLIRStream.h +109 -109
- package/ios/Flir/Framework/ThermalSDK/FLIRStreamer.h +124 -124
- package/ios/Flir/Framework/ThermalSDK/FLIRSystem.h +40 -40
- package/ios/Flir/Framework/ThermalSDK/FLIRTemperatureRange.h +43 -43
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalDelta.h +77 -77
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalImage.h +331 -331
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalImageFile.h +56 -56
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalParameters.h +31 -31
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalValue.h +92 -92
- package/ios/Flir/Framework/ThermalSDK/FLIRWirelessCameraDetails.h +88 -88
- package/ios/Flir/Framework/ThermalSDK/ThermalSDK.h +73 -73
- package/ios/Flir/SDKLoader/FlirSDKLoader.m +13 -13
- package/ios/Flir/SDKLoader/FlirSDKLoader.swift +175 -175
- package/ios/Flir/src/FlirEventEmitter.h +12 -12
- package/ios/Flir/src/FlirEventEmitter.m +33 -33
- package/ios/Flir/src/FlirModule.h +10 -10
- package/ios/Flir/src/FlirModule.m +381 -381
- package/ios/Flir/src/FlirPreviewView.h +13 -13
- package/ios/Flir/src/FlirPreviewView.m +24 -24
- package/ios/Flir/src/FlirState.h +20 -20
- package/ios/Flir/src/FlirState.m +79 -79
- package/ios/Flir/src/FlirViewManager.h +9 -9
- package/ios/Flir/src/FlirViewManager.m +16 -16
- package/package.json +61 -61
- package/react-native.config.js +14 -14
- package/scripts/copy_ios_libs.sh +32 -32
- package/scripts/create_stubs.py +174 -174
- package/scripts/download-sdk.js +62 -62
- package/scripts/prepare-binaries.sh +171 -171
- package/sdk-manifest.json +30 -30
- package/src/FlirDownload.ts +78 -78
- package/src/index.d.ts +17 -17
- package/src/index.js +7 -7
- package/src/index.ts +7 -7
|
@@ -1,196 +1,196 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRImageBase.h
|
|
3
|
-
//
|
|
4
|
-
// Copyright © 2019 Teledyne FLIR. All rights reserved.
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
#ifndef FLIRImageBase_h
|
|
8
|
-
#define FLIRImageBase_h
|
|
9
|
-
#endif
|
|
10
|
-
|
|
11
|
-
#import <Foundation/Foundation.h>
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Indicates the altitude used as the reference altitude in the GPS information/data.
|
|
15
|
-
*/
|
|
16
|
-
typedef NS_ENUM(NSUInteger, FLIRAltitudeReference) {
|
|
17
|
-
/// Indicates the altitude value is above sea level.
|
|
18
|
-
FLIRSeaLevel,
|
|
19
|
-
|
|
20
|
-
/// Indicates the altitude value is below sea level and the altitude is indicated as an absolute value in altitude.
|
|
21
|
-
FLIRBelowSeaLevel,
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* struct provides basic compass information.
|
|
26
|
-
*/
|
|
27
|
-
typedef struct CompassInfo
|
|
28
|
-
{
|
|
29
|
-
/** Compass direction in degrees, 1-360. */
|
|
30
|
-
int degrees;
|
|
31
|
-
/** The terminal's rotation in degrees around its own longitudinal axis, -180.0 - +180.0 . */
|
|
32
|
-
int roll;
|
|
33
|
-
/** Sensor pitch in degrees, -90 - +90. */
|
|
34
|
-
int pitch;
|
|
35
|
-
/** Compass tilt in degrees, 0-360. */
|
|
36
|
-
int tilt;
|
|
37
|
-
} /** struct provides basic compass information. */ CompassInformation_t;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Defines a GPS information like latitude, longitude, etc..
|
|
41
|
-
*/
|
|
42
|
-
typedef struct GpsInfo
|
|
43
|
-
{
|
|
44
|
-
/** A value indicating whether this gps information is valid */
|
|
45
|
-
bool isValid;
|
|
46
|
-
|
|
47
|
-
/** Gps DOP (data degree of precision) */
|
|
48
|
-
float dop;
|
|
49
|
-
|
|
50
|
-
/** The altitude.
|
|
51
|
-
*
|
|
52
|
-
* If the altitude reference is below sea level, the altitude is indicated as an absolute value in altitude.
|
|
53
|
-
* The unit is meters.
|
|
54
|
-
*/
|
|
55
|
-
float altitude;
|
|
56
|
-
|
|
57
|
-
/** Altitude reference indicates if the altitude value is below or above see level. */
|
|
58
|
-
FLIRAltitudeReference altitudeRef;
|
|
59
|
-
|
|
60
|
-
/** The latitude. */
|
|
61
|
-
double latitude;
|
|
62
|
-
|
|
63
|
-
/** Latitude reference
|
|
64
|
-
*
|
|
65
|
-
* Indicates whether the latitude is north or south latitude.
|
|
66
|
-
* The value 'N' indicates north latitude, and 'S' is south latitude.
|
|
67
|
-
*/
|
|
68
|
-
__unsafe_unretained NSString *latitudeRef;
|
|
69
|
-
|
|
70
|
-
/** The longitude */
|
|
71
|
-
double longitude;
|
|
72
|
-
|
|
73
|
-
/** Longitude reference.
|
|
74
|
-
*
|
|
75
|
-
* Indicates whether the longitude is east or west longitude.
|
|
76
|
-
* The value 'E' indicates east longitude, and 'W' is west longitude.
|
|
77
|
-
*/
|
|
78
|
-
__unsafe_unretained NSString *longitudeRef;
|
|
79
|
-
|
|
80
|
-
/** Map datum
|
|
81
|
-
*
|
|
82
|
-
* Indicates the geodetic survey data used by the GPS receiver.
|
|
83
|
-
*/
|
|
84
|
-
__unsafe_unretained NSString *mapDatum;
|
|
85
|
-
|
|
86
|
-
/** The satellites
|
|
87
|
-
*
|
|
88
|
-
* Indicates the GPS satellites used for measurements.
|
|
89
|
-
* This tag can be used to describe the number of satellites,
|
|
90
|
-
* their ID number, angle of elevation, azimuth, SNR and other information in ASCII notation.
|
|
91
|
-
*/
|
|
92
|
-
__unsafe_unretained NSString *satellites;
|
|
93
|
-
|
|
94
|
-
/** The time
|
|
95
|
-
*
|
|
96
|
-
* Indicates the time as UTC (Coordinated Universal Time).
|
|
97
|
-
*/
|
|
98
|
-
__unsafe_unretained NSDate *timeStamp;
|
|
99
|
-
} /** Defines a GPS information like latitude, longitude, etc.. */ GpsInformation_t;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Defines a clock-wise rotation angle which can be applied for a ThermalImage.
|
|
104
|
-
*/
|
|
105
|
-
typedef NS_ENUM(NSUInteger, RotationAngle)
|
|
106
|
-
{
|
|
107
|
-
/** Image should be rotated by 180 degrees. */
|
|
108
|
-
ROTATION_ANGLE_180_DEGREES,
|
|
109
|
-
|
|
110
|
-
/** Image should be rotated by 270 degrees. */
|
|
111
|
-
ROTATION_ANGLE_270_DEGREES,
|
|
112
|
-
|
|
113
|
-
/** Image should be rotated by 90 degrees. */
|
|
114
|
-
ROTATION_ANGLE_90_DEGREES
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* A base definition for all FLIR images.
|
|
120
|
-
* Provides basic, common interface to handle the images within FLIR Thermal SDK regardless of their source.
|
|
121
|
-
*/
|
|
122
|
-
@interface FLIRImageBase : NSObject
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Gets the width of the image in pixels.
|
|
127
|
-
* Corresponding image is a UIImage object from FLIRThermalImage#getImage(), which represents an image's colorized pixels data depending on selected FusionMode.
|
|
128
|
-
*
|
|
129
|
-
* @return The width of the image.
|
|
130
|
-
*/
|
|
131
|
-
-(int) getWidth;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Gets the height of the image in pixels.
|
|
135
|
-
* Corresponding image is a UIImage object from FLIRThermalImage#getImage(), which represents an image's colorized pixels data depending on selected FusionMode.
|
|
136
|
-
*
|
|
137
|
-
* @return The height of the image.
|
|
138
|
-
*/
|
|
139
|
-
-(int) getHeight;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Gets a CompassInformation object with compass details embedded in the image.
|
|
143
|
-
*
|
|
144
|
-
* @return a CompassInformation object with compass details embedded in the image.
|
|
145
|
-
*/
|
|
146
|
-
-(CompassInformation_t) getCompassInformation;
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Sets the compass details embedded in the image.
|
|
150
|
-
*
|
|
151
|
-
* @param compass a CompassInformation_t object with compass details.
|
|
152
|
-
*/
|
|
153
|
-
-(void) setCompassInformation:(CompassInformation_t) compass;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Gets a GpsInformation object with GPS details embedded in the image.
|
|
157
|
-
*
|
|
158
|
-
* @return a GpsInformation object with GPS details embedded in the image.
|
|
159
|
-
*/
|
|
160
|
-
-(GpsInformation_t) getGpsInformation;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Sets the GPS details embedded in the image.
|
|
164
|
-
*
|
|
165
|
-
* @param gps a GpsInformation_t object with GPS details.
|
|
166
|
-
*/
|
|
167
|
-
|
|
168
|
-
- (void) setGpsInformation:(GpsInformation_t) gps;
|
|
169
|
-
/**
|
|
170
|
-
* Rotates the image by certain angle. Only rotation by angle defined in RotationAngle is supported.
|
|
171
|
-
* This is relative rotation, meaning that rotating 0 degrees would be a no-op.
|
|
172
|
-
* @note The image pixels will be rotated instantly, so this function may incur heavy computation.
|
|
173
|
-
* @note This image rotation feature is intended to be used for still images (a file-based FLIRhermalImage). For live streaming stream rotation is currently undefined and may give unexpected results.
|
|
174
|
-
* Especially when used with enabled measurements or other FLIRThermalImage tools.
|
|
175
|
-
* If you want to rotate a live stream we recommend rotating the colorized pixels (UIImage), which were acquired i.e. by using FLIRThermalImage.getImage() function.
|
|
176
|
-
* @note Important: When rotating the colorized pixels any existing FLIRThermalImage tools (i.e. measurements) are not rotated.
|
|
177
|
-
* This means that when using measurements with rotated colorized pixels you are required to handle the difference in the displayed image and the actual FLIRThermalImage
|
|
178
|
-
* i.e. calculate the correct positions and redraw measurements when the image is rotated/flipped. This can became quite complicated and has to be addresses carefully.
|
|
179
|
-
*/
|
|
180
|
-
- (void) rotate:(RotationAngle) angle;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Gets a file description from EXIF data.
|
|
184
|
-
*
|
|
185
|
-
* @return description from EXIF data or null, if description could not be obtained.
|
|
186
|
-
*/
|
|
187
|
-
-(NSString *) getDescription;
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Sets file description in EXIF data
|
|
191
|
-
*
|
|
192
|
-
* @param description - the description to be set in the EXIF data.
|
|
193
|
-
*/
|
|
194
|
-
-(void) setDescription:(NSString *) description;
|
|
195
|
-
|
|
196
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// FLIRImageBase.h
|
|
3
|
+
//
|
|
4
|
+
// Copyright © 2019 Teledyne FLIR. All rights reserved.
|
|
5
|
+
//
|
|
6
|
+
|
|
7
|
+
#ifndef FLIRImageBase_h
|
|
8
|
+
#define FLIRImageBase_h
|
|
9
|
+
#endif
|
|
10
|
+
|
|
11
|
+
#import <Foundation/Foundation.h>
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Indicates the altitude used as the reference altitude in the GPS information/data.
|
|
15
|
+
*/
|
|
16
|
+
typedef NS_ENUM(NSUInteger, FLIRAltitudeReference) {
|
|
17
|
+
/// Indicates the altitude value is above sea level.
|
|
18
|
+
FLIRSeaLevel,
|
|
19
|
+
|
|
20
|
+
/// Indicates the altitude value is below sea level and the altitude is indicated as an absolute value in altitude.
|
|
21
|
+
FLIRBelowSeaLevel,
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* struct provides basic compass information.
|
|
26
|
+
*/
|
|
27
|
+
typedef struct CompassInfo
|
|
28
|
+
{
|
|
29
|
+
/** Compass direction in degrees, 1-360. */
|
|
30
|
+
int degrees;
|
|
31
|
+
/** The terminal's rotation in degrees around its own longitudinal axis, -180.0 - +180.0 . */
|
|
32
|
+
int roll;
|
|
33
|
+
/** Sensor pitch in degrees, -90 - +90. */
|
|
34
|
+
int pitch;
|
|
35
|
+
/** Compass tilt in degrees, 0-360. */
|
|
36
|
+
int tilt;
|
|
37
|
+
} /** struct provides basic compass information. */ CompassInformation_t;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Defines a GPS information like latitude, longitude, etc..
|
|
41
|
+
*/
|
|
42
|
+
typedef struct GpsInfo
|
|
43
|
+
{
|
|
44
|
+
/** A value indicating whether this gps information is valid */
|
|
45
|
+
bool isValid;
|
|
46
|
+
|
|
47
|
+
/** Gps DOP (data degree of precision) */
|
|
48
|
+
float dop;
|
|
49
|
+
|
|
50
|
+
/** The altitude.
|
|
51
|
+
*
|
|
52
|
+
* If the altitude reference is below sea level, the altitude is indicated as an absolute value in altitude.
|
|
53
|
+
* The unit is meters.
|
|
54
|
+
*/
|
|
55
|
+
float altitude;
|
|
56
|
+
|
|
57
|
+
/** Altitude reference indicates if the altitude value is below or above see level. */
|
|
58
|
+
FLIRAltitudeReference altitudeRef;
|
|
59
|
+
|
|
60
|
+
/** The latitude. */
|
|
61
|
+
double latitude;
|
|
62
|
+
|
|
63
|
+
/** Latitude reference
|
|
64
|
+
*
|
|
65
|
+
* Indicates whether the latitude is north or south latitude.
|
|
66
|
+
* The value 'N' indicates north latitude, and 'S' is south latitude.
|
|
67
|
+
*/
|
|
68
|
+
__unsafe_unretained NSString *latitudeRef;
|
|
69
|
+
|
|
70
|
+
/** The longitude */
|
|
71
|
+
double longitude;
|
|
72
|
+
|
|
73
|
+
/** Longitude reference.
|
|
74
|
+
*
|
|
75
|
+
* Indicates whether the longitude is east or west longitude.
|
|
76
|
+
* The value 'E' indicates east longitude, and 'W' is west longitude.
|
|
77
|
+
*/
|
|
78
|
+
__unsafe_unretained NSString *longitudeRef;
|
|
79
|
+
|
|
80
|
+
/** Map datum
|
|
81
|
+
*
|
|
82
|
+
* Indicates the geodetic survey data used by the GPS receiver.
|
|
83
|
+
*/
|
|
84
|
+
__unsafe_unretained NSString *mapDatum;
|
|
85
|
+
|
|
86
|
+
/** The satellites
|
|
87
|
+
*
|
|
88
|
+
* Indicates the GPS satellites used for measurements.
|
|
89
|
+
* This tag can be used to describe the number of satellites,
|
|
90
|
+
* their ID number, angle of elevation, azimuth, SNR and other information in ASCII notation.
|
|
91
|
+
*/
|
|
92
|
+
__unsafe_unretained NSString *satellites;
|
|
93
|
+
|
|
94
|
+
/** The time
|
|
95
|
+
*
|
|
96
|
+
* Indicates the time as UTC (Coordinated Universal Time).
|
|
97
|
+
*/
|
|
98
|
+
__unsafe_unretained NSDate *timeStamp;
|
|
99
|
+
} /** Defines a GPS information like latitude, longitude, etc.. */ GpsInformation_t;
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Defines a clock-wise rotation angle which can be applied for a ThermalImage.
|
|
104
|
+
*/
|
|
105
|
+
typedef NS_ENUM(NSUInteger, RotationAngle)
|
|
106
|
+
{
|
|
107
|
+
/** Image should be rotated by 180 degrees. */
|
|
108
|
+
ROTATION_ANGLE_180_DEGREES,
|
|
109
|
+
|
|
110
|
+
/** Image should be rotated by 270 degrees. */
|
|
111
|
+
ROTATION_ANGLE_270_DEGREES,
|
|
112
|
+
|
|
113
|
+
/** Image should be rotated by 90 degrees. */
|
|
114
|
+
ROTATION_ANGLE_90_DEGREES
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* A base definition for all FLIR images.
|
|
120
|
+
* Provides basic, common interface to handle the images within FLIR Thermal SDK regardless of their source.
|
|
121
|
+
*/
|
|
122
|
+
@interface FLIRImageBase : NSObject
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Gets the width of the image in pixels.
|
|
127
|
+
* Corresponding image is a UIImage object from FLIRThermalImage#getImage(), which represents an image's colorized pixels data depending on selected FusionMode.
|
|
128
|
+
*
|
|
129
|
+
* @return The width of the image.
|
|
130
|
+
*/
|
|
131
|
+
-(int) getWidth;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Gets the height of the image in pixels.
|
|
135
|
+
* Corresponding image is a UIImage object from FLIRThermalImage#getImage(), which represents an image's colorized pixels data depending on selected FusionMode.
|
|
136
|
+
*
|
|
137
|
+
* @return The height of the image.
|
|
138
|
+
*/
|
|
139
|
+
-(int) getHeight;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Gets a CompassInformation object with compass details embedded in the image.
|
|
143
|
+
*
|
|
144
|
+
* @return a CompassInformation object with compass details embedded in the image.
|
|
145
|
+
*/
|
|
146
|
+
-(CompassInformation_t) getCompassInformation;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Sets the compass details embedded in the image.
|
|
150
|
+
*
|
|
151
|
+
* @param compass a CompassInformation_t object with compass details.
|
|
152
|
+
*/
|
|
153
|
+
-(void) setCompassInformation:(CompassInformation_t) compass;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Gets a GpsInformation object with GPS details embedded in the image.
|
|
157
|
+
*
|
|
158
|
+
* @return a GpsInformation object with GPS details embedded in the image.
|
|
159
|
+
*/
|
|
160
|
+
-(GpsInformation_t) getGpsInformation;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Sets the GPS details embedded in the image.
|
|
164
|
+
*
|
|
165
|
+
* @param gps a GpsInformation_t object with GPS details.
|
|
166
|
+
*/
|
|
167
|
+
|
|
168
|
+
- (void) setGpsInformation:(GpsInformation_t) gps;
|
|
169
|
+
/**
|
|
170
|
+
* Rotates the image by certain angle. Only rotation by angle defined in RotationAngle is supported.
|
|
171
|
+
* This is relative rotation, meaning that rotating 0 degrees would be a no-op.
|
|
172
|
+
* @note The image pixels will be rotated instantly, so this function may incur heavy computation.
|
|
173
|
+
* @note This image rotation feature is intended to be used for still images (a file-based FLIRhermalImage). For live streaming stream rotation is currently undefined and may give unexpected results.
|
|
174
|
+
* Especially when used with enabled measurements or other FLIRThermalImage tools.
|
|
175
|
+
* If you want to rotate a live stream we recommend rotating the colorized pixels (UIImage), which were acquired i.e. by using FLIRThermalImage.getImage() function.
|
|
176
|
+
* @note Important: When rotating the colorized pixels any existing FLIRThermalImage tools (i.e. measurements) are not rotated.
|
|
177
|
+
* This means that when using measurements with rotated colorized pixels you are required to handle the difference in the displayed image and the actual FLIRThermalImage
|
|
178
|
+
* i.e. calculate the correct positions and redraw measurements when the image is rotated/flipped. This can became quite complicated and has to be addresses carefully.
|
|
179
|
+
*/
|
|
180
|
+
- (void) rotate:(RotationAngle) angle;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Gets a file description from EXIF data.
|
|
184
|
+
*
|
|
185
|
+
* @return description from EXIF data or null, if description could not be obtained.
|
|
186
|
+
*/
|
|
187
|
+
-(NSString *) getDescription;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Sets file description in EXIF data
|
|
191
|
+
*
|
|
192
|
+
* @param description - the description to be set in the EXIF data.
|
|
193
|
+
*/
|
|
194
|
+
-(void) setDescription:(NSString *) description;
|
|
195
|
+
|
|
196
|
+
@end
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRImageColorizer.h
|
|
3
|
-
// ThermalSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by FLIR on 2021-10-27.
|
|
6
|
-
// Copyright © 2021 Teledyne FLIR. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "FLIRThermalImage.h"
|
|
10
|
-
#import "FLIRColorizer.h"
|
|
11
|
-
#import "FLIRRendererImpl.h"
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Renders still thermal images.
|
|
15
|
-
*
|
|
16
|
-
* Implements the protocols FLIRColorizer and FLIRRenderer
|
|
17
|
-
*/
|
|
18
|
-
@interface FLIRImageColorizer : FLIRRendererImpl<FLIRColorizer>
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Create a colorizer for the given thermal image
|
|
22
|
-
*/
|
|
23
|
-
- (instancetype _Nullable)initWithImage:(FLIRThermalImage * _Nonnull)image;
|
|
24
|
-
- (BOOL)update:(out NSError * _Nullable * _Nullable)error;
|
|
25
|
-
|
|
26
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// FLIRImageColorizer.h
|
|
3
|
+
// ThermalSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by FLIR on 2021-10-27.
|
|
6
|
+
// Copyright © 2021 Teledyne FLIR. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "FLIRThermalImage.h"
|
|
10
|
+
#import "FLIRColorizer.h"
|
|
11
|
+
#import "FLIRRendererImpl.h"
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Renders still thermal images.
|
|
15
|
+
*
|
|
16
|
+
* Implements the protocols FLIRColorizer and FLIRRenderer
|
|
17
|
+
*/
|
|
18
|
+
@interface FLIRImageColorizer : FLIRRendererImpl<FLIRColorizer>
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Create a colorizer for the given thermal image
|
|
22
|
+
*/
|
|
23
|
+
- (instancetype _Nullable)initWithImage:(FLIRThermalImage * _Nonnull)image;
|
|
24
|
+
- (BOOL)update:(out NSError * _Nullable * _Nullable)error;
|
|
25
|
+
|
|
26
|
+
@end
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRImageStatistics.h
|
|
3
|
-
// Spartacus
|
|
4
|
-
//
|
|
5
|
-
// Copyright © 2019 Teledyne FLIR. All rights reserved.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
#import <CoreGraphics/CGGeometry.h>
|
|
10
|
-
#import "FLIRThermalValue.h"
|
|
11
|
-
#import "FLIRThermalDelta.h"
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Provides statistics for Thermal data for the ThermalImage.
|
|
15
|
-
* Defines such values as minimum, maximum and position, where they were measured, average and standard deviation.
|
|
16
|
-
*/
|
|
17
|
-
@interface FLIRImageStatistics : NSObject
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Gets calculated Minimum temperature value.
|
|
21
|
-
*
|
|
22
|
-
* @return The minimum value.
|
|
23
|
-
*/
|
|
24
|
-
- (FLIRThermalValue * _Nonnull)getMin;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Gets calculated Maximum temperature value.
|
|
28
|
-
*
|
|
29
|
-
* @return The maximum value.
|
|
30
|
-
*/
|
|
31
|
-
- (FLIRThermalValue * _Nonnull)getMax;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Gets calculated Average value of the temperature data associated with the ThermalImage.
|
|
35
|
-
*
|
|
36
|
-
* @return The average value.
|
|
37
|
-
*/
|
|
38
|
-
- (FLIRThermalValue * _Nonnull)getAverage;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Gets calculated Standard Deviation value of the temperature data associated with the ThermalImage.
|
|
42
|
-
*
|
|
43
|
-
* @return The standard deviation value.
|
|
44
|
-
*/
|
|
45
|
-
- (FLIRThermalDelta * _Nonnull)getStandardDeviation;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Get the position (x,y-coordinate) to the pixel with the highest temperature.
|
|
49
|
-
*
|
|
50
|
-
* @return A (x,y) point.
|
|
51
|
-
*/
|
|
52
|
-
- (CGPoint)getHotSpot;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Get the position (x,y-coordinate) to the pixel with the lowest temperature.
|
|
56
|
-
*
|
|
57
|
-
* @return A (x,y) point.
|
|
58
|
-
*/
|
|
59
|
-
- (CGPoint)getColdSpot;
|
|
60
|
-
|
|
61
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// FLIRImageStatistics.h
|
|
3
|
+
// Spartacus
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2019 Teledyne FLIR. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <CoreGraphics/CGGeometry.h>
|
|
10
|
+
#import "FLIRThermalValue.h"
|
|
11
|
+
#import "FLIRThermalDelta.h"
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Provides statistics for Thermal data for the ThermalImage.
|
|
15
|
+
* Defines such values as minimum, maximum and position, where they were measured, average and standard deviation.
|
|
16
|
+
*/
|
|
17
|
+
@interface FLIRImageStatistics : NSObject
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Gets calculated Minimum temperature value.
|
|
21
|
+
*
|
|
22
|
+
* @return The minimum value.
|
|
23
|
+
*/
|
|
24
|
+
- (FLIRThermalValue * _Nonnull)getMin;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Gets calculated Maximum temperature value.
|
|
28
|
+
*
|
|
29
|
+
* @return The maximum value.
|
|
30
|
+
*/
|
|
31
|
+
- (FLIRThermalValue * _Nonnull)getMax;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Gets calculated Average value of the temperature data associated with the ThermalImage.
|
|
35
|
+
*
|
|
36
|
+
* @return The average value.
|
|
37
|
+
*/
|
|
38
|
+
- (FLIRThermalValue * _Nonnull)getAverage;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Gets calculated Standard Deviation value of the temperature data associated with the ThermalImage.
|
|
42
|
+
*
|
|
43
|
+
* @return The standard deviation value.
|
|
44
|
+
*/
|
|
45
|
+
- (FLIRThermalDelta * _Nonnull)getStandardDeviation;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Get the position (x,y-coordinate) to the pixel with the highest temperature.
|
|
49
|
+
*
|
|
50
|
+
* @return A (x,y) point.
|
|
51
|
+
*/
|
|
52
|
+
- (CGPoint)getHotSpot;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Get the position (x,y-coordinate) to the pixel with the lowest temperature.
|
|
56
|
+
*
|
|
57
|
+
* @return A (x,y) point.
|
|
58
|
+
*/
|
|
59
|
+
- (CGPoint)getColdSpot;
|
|
60
|
+
|
|
61
|
+
@end
|