ilabs-flir 2.0.1 → 2.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.
Files changed (59) hide show
  1. package/app.plugin.js +1 -1
  2. package/ios/Flir/SDKLoader/FlirSDKLoader.swift +9 -9
  3. package/ios/Flir/src/FlirModule.m +12 -1
  4. package/package.json +1 -1
  5. package/ios/Flir/Framework/ThermalSDK/FLIRBattery.h +0 -76
  6. package/ios/Flir/Framework/ThermalSDK/FLIRCalibration.h +0 -108
  7. package/ios/Flir/Framework/ThermalSDK/FLIRCamera.h +0 -156
  8. package/ios/Flir/Framework/ThermalSDK/FLIRCameraDeviceInfo.h +0 -53
  9. package/ios/Flir/Framework/ThermalSDK/FLIRCameraEvent.h +0 -132
  10. package/ios/Flir/Framework/ThermalSDK/FLIRCameraImport.h +0 -204
  11. package/ios/Flir/Framework/ThermalSDK/FLIRColorDistributionSettings.h +0 -204
  12. package/ios/Flir/Framework/ThermalSDK/FLIRColorizer.h +0 -82
  13. package/ios/Flir/Framework/ThermalSDK/FLIRDiscoveredCamera.h +0 -44
  14. package/ios/Flir/Framework/ThermalSDK/FLIRDiscovery.h +0 -132
  15. package/ios/Flir/Framework/ThermalSDK/FLIRDisplaySettings.h +0 -29
  16. package/ios/Flir/Framework/ThermalSDK/FLIRFocus.h +0 -70
  17. package/ios/Flir/Framework/ThermalSDK/FLIRFusion.h +0 -192
  18. package/ios/Flir/Framework/ThermalSDK/FLIRFusionController.h +0 -136
  19. package/ios/Flir/Framework/ThermalSDK/FLIRFusionTransformation.h +0 -35
  20. package/ios/Flir/Framework/ThermalSDK/FLIRIdentity.h +0 -264
  21. package/ios/Flir/Framework/ThermalSDK/FLIRImageBase.h +0 -196
  22. package/ios/Flir/Framework/ThermalSDK/FLIRImageColorizer.h +0 -26
  23. package/ios/Flir/Framework/ThermalSDK/FLIRImageStatistics.h +0 -61
  24. package/ios/Flir/Framework/ThermalSDK/FLIRIsotherms.h +0 -208
  25. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementArea.h +0 -38
  26. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementCollection.h +0 -147
  27. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementDelta.h +0 -62
  28. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementDimensions.h +0 -33
  29. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementEllipse.h +0 -49
  30. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementLine.h +0 -66
  31. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementMarker.h +0 -69
  32. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementParameters.h +0 -41
  33. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementRectangle.h +0 -36
  34. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementReference.h +0 -27
  35. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementShape.h +0 -46
  36. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementSpot.h +0 -33
  37. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementsController.h +0 -160
  38. package/ios/Flir/Framework/ThermalSDK/FLIRMeterLinkSensorPoll.h +0 -247
  39. package/ios/Flir/Framework/ThermalSDK/FLIROverlayController.h +0 -27
  40. package/ios/Flir/Framework/ThermalSDK/FLIRPalette.h +0 -60
  41. package/ios/Flir/Framework/ThermalSDK/FLIRPaletteController.h +0 -36
  42. package/ios/Flir/Framework/ThermalSDK/FLIRPaletteManager.h +0 -97
  43. package/ios/Flir/Framework/ThermalSDK/FLIRQuantification.h +0 -55
  44. package/ios/Flir/Framework/ThermalSDK/FLIRRemoteControl.h +0 -393
  45. package/ios/Flir/Framework/ThermalSDK/FLIRRenderer.h +0 -35
  46. package/ios/Flir/Framework/ThermalSDK/FLIRRendererImpl.h +0 -17
  47. package/ios/Flir/Framework/ThermalSDK/FLIRScale.h +0 -99
  48. package/ios/Flir/Framework/ThermalSDK/FLIRScaleController.h +0 -44
  49. package/ios/Flir/Framework/ThermalSDK/FLIRStream.h +0 -109
  50. package/ios/Flir/Framework/ThermalSDK/FLIRStreamer.h +0 -124
  51. package/ios/Flir/Framework/ThermalSDK/FLIRSystem.h +0 -40
  52. package/ios/Flir/Framework/ThermalSDK/FLIRTemperatureRange.h +0 -43
  53. package/ios/Flir/Framework/ThermalSDK/FLIRThermalDelta.h +0 -77
  54. package/ios/Flir/Framework/ThermalSDK/FLIRThermalImage.h +0 -331
  55. package/ios/Flir/Framework/ThermalSDK/FLIRThermalImageFile.h +0 -56
  56. package/ios/Flir/Framework/ThermalSDK/FLIRThermalParameters.h +0 -31
  57. package/ios/Flir/Framework/ThermalSDK/FLIRThermalValue.h +0 -92
  58. package/ios/Flir/Framework/ThermalSDK/FLIRWirelessCameraDetails.h +0 -88
  59. package/ios/Flir/Framework/ThermalSDK/ThermalSDK.h +0 -73
@@ -1,196 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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,208 +0,0 @@
1
- //
2
- // FLIRIsotherms.h
3
- // ThermalSDK
4
- //
5
- // Created by FLIR on 2021-04-28.
6
- // Copyright © 2021 Teledyne FLIR. All rights reserved.
7
- //
8
-
9
- #pragma once
10
-
11
- #import <UIKit/UIKit.h>
12
-
13
- #import "FLIRThermalValue.h"
14
-
15
- /** Blending mode to for isotherm with single color */
16
- typedef NS_ENUM(NSInteger, FLIRIsothermBlendingMode) {
17
- /** Use a single color for the isotherm. */
18
- BM_solid,
19
-
20
- /** Use a transparent isotherm. */
21
- BM_transparent,
22
-
23
- /** Use the Y (in YCbCr) value from the palette underneath the isotherm. */
24
- BM_followY,
25
-
26
- /** Link several isotherms by their Y value (in YCbCr). */
27
- BM_linkedY,
28
-
29
- };
30
-
31
- @class FLIRIsotherm;
32
- @class FLIRAboveIsotherm;
33
- @class FLIRBelowIsotherm;
34
- @class FLIRIntervalIsotherm;
35
- @class FLIRHumidityIsotherm;
36
- @class FLIRInsulationIsotherm;
37
-
38
- /**
39
- * fillmode properties of an isotherm
40
- * @note to change an isotherm, @ref setFillmode must be called after changing properties here
41
- * */
42
- @interface FLIRIsothermFillmode : NSObject
43
-
44
- /** palette, a list of colors used for the isotherm, if this is nil, the preset color or color with blending mode is used instead */
45
- @property (nonatomic, retain, nullable) NSArray<UIColor*>* palette;
46
- /** color, not used if palette is set */
47
- @property (nonatomic, retain, nullable) UIColor* color;
48
- /** blending mode, note used if palette is set */
49
- @property (nonatomic, assign) FLIRIsothermBlendingMode blendingMode;
50
-
51
- @end
52
-
53
- /** an interface to the isotherms defined for the image */
54
- @interface FLIRIsotherms : NSObject
55
-
56
- /** add an isotherm with below cutoff */
57
- - (FLIRBelowIsotherm * _Nonnull)addBelowWithCutoff:(FLIRThermalValue * _Nonnull)cutoff
58
- fillMode:(FLIRIsothermFillmode * _Nonnull)fillMode;
59
- /** add an isotherm with above cutoff */
60
- - (FLIRAboveIsotherm * _Nonnull)addAboveWithCutoff:(FLIRThermalValue * _Nonnull)cutoff
61
- fillMode:(FLIRIsothermFillmode * _Nonnull)fillMode;
62
- /** add an isotherm with interval */
63
- - (FLIRIntervalIsotherm * _Nonnull)addIntervalWithMin:(FLIRThermalValue * _Nonnull)min
64
- max:(FLIRThermalValue * _Nonnull)max
65
- fillMode:(FLIRIsothermFillmode * _Nonnull)fillMode;
66
- /** add a humidity point isotherm
67
- */
68
- - (FLIRHumidityIsotherm * _Nonnull)addWithAirHumidity:(float)airHumidity
69
- airHumidityAlarmLevel:(float)airHumidityAlarmLevel
70
- atmosphericTemperature:(FLIRThermalValue * _Nonnull)atmosphericTemperature
71
- fillMode:(FLIRIsothermFillmode * _Nonnull)fillMode;
72
-
73
- /** add an insulation isotherm
74
- */
75
-
76
- - (FLIRInsulationIsotherm * _Nonnull)addInsulationWithIndoorAirTemperature:(FLIRThermalValue * _Nonnull)indoorAirTemperature
77
- outdoorAirTemperature:(FLIRThermalValue * _Nonnull)outdoorAirTemperature
78
- insulationFactor:(float)insulationFactor
79
- fillMode:(FLIRIsothermFillmode * _Nonnull)fillMode;
80
-
81
- /** remove an isotherm
82
- */
83
- - (void)remove:(FLIRIsotherm * _Nonnull)isotherm;
84
-
85
- /** remove all isotherms
86
- */
87
- - (void)removeAll;
88
-
89
- /** all isotherms for the image
90
- */
91
- - (NSArray<FLIRIsotherm *> * _Nonnull)getAll;
92
-
93
- /** number of isotherms
94
- */
95
- @property (nonatomic, readonly) NSUInteger count;
96
-
97
- @end
98
-
99
- /** an object with isotherm properties
100
- */
101
- @interface FLIRIsotherm : NSObject
102
-
103
- /** the fillmode of the isotherm
104
- */
105
- @property (nonatomic, nonnull) FLIRIsothermFillmode* fillMode;
106
-
107
- @end
108
-
109
- @interface FLIRCutoffIsotherm : FLIRIsotherm
110
-
111
- /** cutoff temperature
112
- */
113
- @property (nonatomic, nonnull) FLIRThermalValue* cutoff;
114
-
115
- @end
116
-
117
- /**
118
- * An isotherm that is covering an area starting at the cutoff and above that temperature.
119
- */
120
- @interface FLIRAboveIsotherm : FLIRCutoffIsotherm
121
- @end
122
-
123
- /**
124
- * An isotherm that is covering an area starting at the cutoff and below that temperature.
125
- */
126
- @interface FLIRBelowIsotherm : FLIRCutoffIsotherm
127
- @end
128
-
129
- /**
130
- * An isotherm that is covering an area between the defined min and max temperature.
131
- */
132
- @interface FLIRIntervalIsotherm : FLIRIsotherm
133
-
134
- /** min temperature
135
- */
136
- @property (nonatomic, retain, nonnull) FLIRThermalValue* min;
137
-
138
- /** max temperature
139
- */
140
- @property (nonatomic, retain, nonnull) FLIRThermalValue* max;
141
-
142
- @end
143
-
144
- /**
145
- * The humidity isotherm can detect areas where there is a risk of mold growing, or where there is a
146
- * risk of the humidity falling out as liquid water (i.e., the dew point).
147
- */
148
- @interface FLIRHumidityIsotherm : FLIRIsotherm
149
-
150
- /** air humidity in percent (0.0 - 100.0).
151
- */
152
- @property (nonatomic, assign) float airHumidity;
153
-
154
- /** air humidity alarm level in percent (0.0 - 100.0)
155
- */
156
- @property (nonatomic, assign) float airHumidityAlarmLevel;
157
-
158
- /** atmospheric temperature
159
- */
160
- @property (nonatomic, assign, nonnull) FLIRThermalValue *atmosphericTemperature;
161
-
162
-
163
- /** Get the calculated dew point temperature.
164
- */
165
- @property (nonatomic, readonly, nonnull) FLIRThermalValue *dewPointTemperature;
166
-
167
- /** Get the calculated dew point temperature threshold.
168
- */
169
- @property (nonatomic, readonly, nonnull) FLIRThermalValue *thresholdTemperature;
170
-
171
- @end
172
-
173
- /**
174
- * The insulation isotherm can detect areas where there may be an insulation deficiency in the building.
175
- * * It will trigger when the insulation level falls below a preset value of the energy leakage through the
176
- * * building structure - the so-called thermal index/insulation factor. Different building codes recommend different values
177
- * * for the thermal index/insulation factor, but typical values are 60 - 80% for new buildings.
178
- * * Refer to your national building code for recommendations.
179
- */
180
- @interface FLIRInsulationIsotherm : FLIRIsotherm
181
-
182
- /** indoor air temperature
183
- */
184
- @property (nonatomic, retain, nonnull) FLIRThermalValue *indoorAirTemperature;
185
- /** outdoor air temperature
186
- */
187
- @property (nonatomic, retain, nonnull) FLIRThermalValue *outdoorAirTemperature;
188
-
189
- /** insulation factor in percent (0.0 - 100.0).
190
- */
191
- @property (nonatomic, assign) float insulationFactor;
192
-
193
- /** Get the calculated insulation temperature.
194
- */
195
- @property (nonatomic, readonly, nonnull) FLIRThermalValue *insulationTemperature;
196
-
197
- /**
198
- * Calculate the insulation temperature.
199
- * @param indoorAirTemp Indoor air temperature in Kelvin.
200
- * @param outdoorAirTemp Outdoor air temperature in Kelvin.
201
- * @param insulationFactor Insulation factor (0.0 - 1.0).
202
- * @return Insulation temperature in Kelvin
203
- */
204
- + (float)calculateInsulationTempIndoorAirTemp:(float)indoorAirTemp
205
- outdoorAirTemp:(float)outdoorAirTemp
206
- insulationFactor:(float)insulationFactor;
207
-
208
- @end
@@ -1,38 +0,0 @@
1
- //
2
- // FLIRMeasurementArea.h
3
- // FLIR Thermal SDK
4
- //
5
- // Copyright © 2019 Teledyne FLIR. All rights reserved.
6
- //
7
-
8
- #import "FLIRMeasurementMarker.h"
9
-
10
- @class FLIRMeasurementDimensions;
11
-
12
- /**
13
- * Represents a measurement area object.
14
- */
15
- @interface FLIRMeasurementArea : FLIRMeasurementMarker
16
-
17
- /**
18
- * Gets the width of this measurement object.
19
- */
20
- @property (nonatomic, readonly) int width;
21
-
22
- /**
23
- * Gets the height of this measurement object.
24
- */
25
- @property (nonatomic, readonly) int height;
26
-
27
- /**
28
- * Gets the measurement area dimensions
29
- */
30
- - (FLIRMeasurementDimensions * _Nullable)getMeasurementDimensions;
31
-
32
- /**
33
- * Set or get the flag for area calculations
34
- */
35
-
36
- @property (nonatomic, assign) BOOL areaCalc;
37
-
38
- @end
@@ -1,147 +0,0 @@
1
- //
2
- // MeasurementCollection.h
3
- // FLIR Thermal SDK
4
- //
5
- // Copyright © 2019 Teledyne FLIR. All rights reserved.
6
- //
7
-
8
- #import "FLIRMeasurementSpot.h"
9
- #import "FLIRMeasurementRectangle.h"
10
- #import "FLIRMeasurementEllipse.h"
11
- #import "FLIRMeasurementLine.h"
12
- #import "FLIRMeasurementDelta.h"
13
- #import "FLIRMeasurementReference.h"
14
-
15
- /**
16
- * Container for a different type of MeasurementShapes.
17
- * It provides access to all measurements added to an image.
18
- * It also allows to add a new measurements to an existing image.
19
- * The collection is obtained FLIRThermalImage.Measurements.
20
- */
21
- @interface FLIRMeasurementCollection : NSObject
22
-
23
- /**
24
- * Gets all measurement ellipses
25
- */
26
- - (NSArray<FLIRMeasurementEllipse *> * _Nonnull)getAllEllipses;
27
-
28
- /**
29
- * Gets all measurement lines
30
- */
31
- - (NSArray<FLIRMeasurementLine *> * _Nonnull)getAllLines;
32
-
33
- /**
34
- * Gets all measurement rectangles
35
- */
36
- - (NSArray<FLIRMeasurementRectangle *> * _Nonnull)getAllRectangles;
37
-
38
- /**
39
- * Gets all measurement spots
40
- */
41
- - (NSArray<FLIRMeasurementSpot *> * _Nonnull)getAllSpots;
42
-
43
- /**
44
- * Gets all measurement deltas
45
- */
46
- - (NSArray<FLIRMeasurementDelta *> * _Nonnull)getAllDeltas;
47
-
48
- /**
49
- * Gets all measurement references
50
- */
51
- - (NSArray<FLIRMeasurementReference *> * _Nonnull)getAllReferences;
52
-
53
- /**
54
- * Adds a new MeasurementSpot to the collection.
55
- *
56
- * @param point The location of the spot.
57
- *
58
- * @return The MeasurementSpot object added to the collection.
59
- */
60
- - (FLIRMeasurementSpot * _Nullable)addSpot:(CGPoint)point
61
- error:(out NSError * _Nullable * _Nullable)error;
62
-
63
-
64
- /**
65
- * Adds a new MeasurementRectangle to the collection.
66
- *
67
- * @param rect The MeasurementRectangles position and size
68
- * @return FLIRMeasurementRectangle
69
- */
70
- - (FLIRMeasurementRectangle * _Nullable)addRectangle:(CGRect)rect
71
- error:(out NSError * _Nullable * _Nullable)error;
72
-
73
-
74
- /**
75
- * Adds a new MeasurementEllipse to the collection.
76
- *
77
- * @param position Center position of the ellipse
78
- * @param radiusX Horizontal radius of the ellipse
79
- * @param radiusY Vertical radius of the ellipse
80
- * @return FLIRMeasurementEllipse
81
- */
82
- - (FLIRMeasurementEllipse * _Nullable)addEllipse:(CGPoint)position
83
- radiusX:(int)radiusX
84
- radiusY:(int)radiusY
85
- error:(out NSError * _Nullable * _Nullable)error;
86
-
87
-
88
- /**
89
- * Adds a new MeasurementLine to the collection.
90
- *
91
- * @param y y position of the line
92
- * @return FLIRMeasurementLine
93
- */
94
- - (FLIRMeasurementLine * _Nullable)addHorizontalLine:(int)y
95
- error:(out NSError * _Nullable * _Nullable)error;
96
-
97
- /**
98
- * Adds a new MeasurementLine to the collection.
99
- *
100
- * @param x x position of the line
101
- * @return FLIRMeasurementLine
102
- */
103
- - (FLIRMeasurementLine * _Nullable)addVerticalLine:(int)x
104
- error:(out NSError * _Nullable * _Nullable)error;
105
-
106
- /**
107
- * Adds a new MeasurementLine to the collection.
108
- *
109
- * @param from starting point
110
- * @param to ending point
111
- * @return FLIRMeasurementLine
112
- */
113
- - (FLIRMeasurementLine * _Nullable)addLineFrom:(CGPoint)start
114
- to:(CGPoint)end
115
- error:(out NSError * _Nullable * _Nullable)error;
116
-
117
- /**
118
- * Adds a new MeasurementDelta to the collection
119
- * @param member1
120
- * @param member1DeltaValueType
121
- * @param member2
122
- * @param member2DeltaValueType
123
- * @return FLIRMeasurementDelta
124
- */
125
- - (FLIRMeasurementDelta * _Nullable)addMeasurementDeltaMember1:(FLIRMeasurementShape * _Nonnull)member1
126
- member1DeltaType:(DeltaMemberValueType)member1DeltaValueType
127
- member2:(FLIRMeasurementShape * _Nonnull)member2
128
- member2DeltaType:(DeltaMemberValueType)member2DeltaValueType
129
- error:(out NSError * _Nullable * _Nullable)error;
130
-
131
- /**
132
- * Adds a new MeasurementReference to the collection
133
- * @param value the thermal alue for the reference
134
- * @return FLIRMeasurementReference
135
- */
136
- - (FLIRMeasurementReference * _Nullable)addReference:(FLIRThermalValue * _Nonnull)value
137
- error:(out NSError * _Nullable * _Nullable)error;
138
-
139
- /**
140
- * Removes the specified measurement shape from the collection.
141
- *
142
- * @param shape The Measurement shape (line, spot, rectangle or ellipse)
143
- * @return true if shape removed (i.e. the shape was in the collection)
144
- */
145
- - (BOOL)remove:(FLIRMeasurementShape * _Nonnull)shape
146
- error:(out NSError * _Nullable * _Nullable)error;
147
- @end