ilabs-flir 1.0.2 → 1.0.4

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 (126) hide show
  1. package/Flir.podspec +31 -31
  2. package/README.md +1271 -1271
  3. package/android/Flir/build.gradle.kts +85 -80
  4. package/android/Flir/libs/flir-stubs.jar +0 -0
  5. package/android/Flir/src/main/AndroidManifest.xml +31 -31
  6. package/android/Flir/src/main/java/com/flir/thermalsdk/ErrorCode.java +13 -0
  7. package/android/Flir/src/main/java/com/flir/thermalsdk/ErrorCodeException.java +14 -0
  8. package/android/Flir/src/main/java/com/flir/thermalsdk/ThermalSdkAndroid.java +16 -0
  9. package/android/Flir/src/main/java/com/flir/thermalsdk/androidsdk/image/BitmapAndroid.java +20 -0
  10. package/android/Flir/src/main/java/com/flir/thermalsdk/image/ImageBuffer.java +11 -0
  11. package/android/Flir/src/main/java/com/flir/thermalsdk/image/JavaImageBuffer.java +35 -0
  12. package/android/Flir/src/main/java/com/flir/thermalsdk/image/Palette.java +15 -0
  13. package/android/Flir/src/main/java/com/flir/thermalsdk/image/PaletteManager.java +16 -0
  14. package/android/Flir/src/main/java/com/flir/thermalsdk/image/Point.java +11 -0
  15. package/android/Flir/src/main/java/com/flir/thermalsdk/image/ThermalImage.java +23 -0
  16. package/android/Flir/src/main/java/com/flir/thermalsdk/image/ThermalValue.java +9 -0
  17. package/android/Flir/src/main/java/com/flir/thermalsdk/live/Camera.java +26 -0
  18. package/android/Flir/src/main/java/com/flir/thermalsdk/live/CameraType.java +8 -0
  19. package/android/Flir/src/main/java/com/flir/thermalsdk/live/CommunicationInterface.java +16 -0
  20. package/android/Flir/src/main/java/com/flir/thermalsdk/live/ConnectParameters.java +16 -0
  21. package/android/Flir/src/main/java/com/flir/thermalsdk/live/Identity.java +23 -0
  22. package/android/Flir/src/main/java/com/flir/thermalsdk/live/IpSettings.java +9 -0
  23. package/android/Flir/src/main/java/com/flir/thermalsdk/live/RemoteControl.java +16 -0
  24. package/android/Flir/src/main/java/com/flir/thermalsdk/live/connectivity/ConnectionStatusListener.java +7 -0
  25. package/android/Flir/src/main/java/com/flir/thermalsdk/live/discovery/DiscoveryEventListener.java +14 -0
  26. package/android/Flir/src/main/java/com/flir/thermalsdk/live/discovery/DiscoveryFactory.java +33 -0
  27. package/android/Flir/src/main/java/com/flir/thermalsdk/live/remote/OnReceived.java +5 -0
  28. package/android/Flir/src/main/java/com/flir/thermalsdk/live/remote/OnRemoteError.java +7 -0
  29. package/android/Flir/src/main/java/com/flir/thermalsdk/live/streaming/Stream.java +8 -0
  30. package/android/Flir/src/main/java/com/flir/thermalsdk/live/streaming/ThermalStreamer.java +28 -0
  31. package/android/Flir/src/main/java/com/flir/thermalsdk/live/streaming/VisualStreamer.java +18 -0
  32. package/android/Flir/src/main/java/flir/android/FlirCommands.java +136 -0
  33. package/android/Flir/src/main/java/flir/android/FlirDownloadManager.kt +76 -75
  34. package/android/Flir/src/main/java/flir/android/FlirDownloadPackage.kt +16 -16
  35. package/android/Flir/src/main/java/flir/android/FlirFrameCache.kt +6 -6
  36. package/android/Flir/src/main/java/flir/android/FlirManager.kt +477 -248
  37. package/android/Flir/src/main/java/flir/android/FlirModule.kt +74 -74
  38. package/android/Flir/src/main/java/flir/android/FlirPackage.kt +19 -19
  39. package/android/Flir/src/main/java/flir/android/FlirSDKLoader.kt +165 -117
  40. package/android/Flir/src/main/java/flir/android/FlirSdkManager.java +1511 -0
  41. package/android/Flir/src/main/java/flir/android/FlirStatus.kt +12 -12
  42. package/android/Flir/src/main/java/flir/android/FlirView.kt +48 -48
  43. package/android/Flir/src/main/java/flir/android/FlirViewManager.kt +13 -13
  44. package/app.plugin.js +264 -264
  45. package/expo-module.config.json +5 -5
  46. package/ios/Flir/Framework/ThermalSDK/FLIRBattery.h +76 -76
  47. package/ios/Flir/Framework/ThermalSDK/FLIRCalibration.h +108 -108
  48. package/ios/Flir/Framework/ThermalSDK/FLIRCamera.h +156 -156
  49. package/ios/Flir/Framework/ThermalSDK/FLIRCameraDeviceInfo.h +53 -53
  50. package/ios/Flir/Framework/ThermalSDK/FLIRCameraEvent.h +132 -132
  51. package/ios/Flir/Framework/ThermalSDK/FLIRCameraImport.h +204 -204
  52. package/ios/Flir/Framework/ThermalSDK/FLIRColorDistributionSettings.h +204 -204
  53. package/ios/Flir/Framework/ThermalSDK/FLIRColorizer.h +82 -82
  54. package/ios/Flir/Framework/ThermalSDK/FLIRDiscoveredCamera.h +44 -44
  55. package/ios/Flir/Framework/ThermalSDK/FLIRDiscovery.h +132 -132
  56. package/ios/Flir/Framework/ThermalSDK/FLIRDisplaySettings.h +29 -29
  57. package/ios/Flir/Framework/ThermalSDK/FLIRFocus.h +70 -70
  58. package/ios/Flir/Framework/ThermalSDK/FLIRFusion.h +192 -192
  59. package/ios/Flir/Framework/ThermalSDK/FLIRFusionController.h +136 -136
  60. package/ios/Flir/Framework/ThermalSDK/FLIRFusionTransformation.h +35 -35
  61. package/ios/Flir/Framework/ThermalSDK/FLIRIdentity.h +264 -264
  62. package/ios/Flir/Framework/ThermalSDK/FLIRImageBase.h +196 -196
  63. package/ios/Flir/Framework/ThermalSDK/FLIRImageColorizer.h +26 -26
  64. package/ios/Flir/Framework/ThermalSDK/FLIRImageStatistics.h +61 -61
  65. package/ios/Flir/Framework/ThermalSDK/FLIRIsotherms.h +208 -208
  66. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementArea.h +38 -38
  67. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementCollection.h +147 -147
  68. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementDelta.h +62 -62
  69. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementDimensions.h +33 -33
  70. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementEllipse.h +49 -49
  71. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementLine.h +66 -66
  72. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementMarker.h +69 -69
  73. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementParameters.h +41 -41
  74. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementRectangle.h +36 -36
  75. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementReference.h +27 -27
  76. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementShape.h +46 -46
  77. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementSpot.h +33 -33
  78. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementsController.h +160 -160
  79. package/ios/Flir/Framework/ThermalSDK/FLIRMeterLinkSensorPoll.h +247 -247
  80. package/ios/Flir/Framework/ThermalSDK/FLIROverlayController.h +27 -27
  81. package/ios/Flir/Framework/ThermalSDK/FLIRPalette.h +60 -60
  82. package/ios/Flir/Framework/ThermalSDK/FLIRPaletteController.h +36 -36
  83. package/ios/Flir/Framework/ThermalSDK/FLIRPaletteManager.h +97 -97
  84. package/ios/Flir/Framework/ThermalSDK/FLIRQuantification.h +55 -55
  85. package/ios/Flir/Framework/ThermalSDK/FLIRRemoteControl.h +393 -393
  86. package/ios/Flir/Framework/ThermalSDK/FLIRRenderer.h +35 -35
  87. package/ios/Flir/Framework/ThermalSDK/FLIRRendererImpl.h +17 -17
  88. package/ios/Flir/Framework/ThermalSDK/FLIRScale.h +99 -99
  89. package/ios/Flir/Framework/ThermalSDK/FLIRScaleController.h +44 -44
  90. package/ios/Flir/Framework/ThermalSDK/FLIRStream.h +109 -109
  91. package/ios/Flir/Framework/ThermalSDK/FLIRStreamer.h +124 -124
  92. package/ios/Flir/Framework/ThermalSDK/FLIRSystem.h +40 -40
  93. package/ios/Flir/Framework/ThermalSDK/FLIRTemperatureRange.h +43 -43
  94. package/ios/Flir/Framework/ThermalSDK/FLIRThermalDelta.h +77 -77
  95. package/ios/Flir/Framework/ThermalSDK/FLIRThermalImage.h +331 -331
  96. package/ios/Flir/Framework/ThermalSDK/FLIRThermalImageFile.h +56 -56
  97. package/ios/Flir/Framework/ThermalSDK/FLIRThermalParameters.h +31 -31
  98. package/ios/Flir/Framework/ThermalSDK/FLIRThermalValue.h +92 -92
  99. package/ios/Flir/Framework/ThermalSDK/FLIRWirelessCameraDetails.h +88 -88
  100. package/ios/Flir/Framework/ThermalSDK/ThermalSDK.h +73 -73
  101. package/ios/Flir/SDKLoader/FlirSDKLoader.m +13 -13
  102. package/ios/Flir/SDKLoader/FlirSDKLoader.swift +175 -175
  103. package/ios/Flir/src/FlirEventEmitter.h +12 -12
  104. package/ios/Flir/src/FlirEventEmitter.m +33 -33
  105. package/ios/Flir/src/FlirModule.h +10 -10
  106. package/ios/Flir/src/FlirModule.m +381 -381
  107. package/ios/Flir/src/FlirPreviewView.h +13 -13
  108. package/ios/Flir/src/FlirPreviewView.m +24 -24
  109. package/ios/Flir/src/FlirState.h +20 -20
  110. package/ios/Flir/src/FlirState.m +79 -79
  111. package/ios/Flir/src/FlirViewManager.h +9 -9
  112. package/ios/Flir/src/FlirViewManager.m +16 -16
  113. package/package.json +60 -60
  114. package/react-native.config.js +14 -14
  115. package/scripts/copy_ios_libs.sh +32 -32
  116. package/scripts/create_stubs.py +174 -174
  117. package/scripts/download-sdk.js +62 -62
  118. package/scripts/prepare-binaries.sh +171 -171
  119. package/sdk-manifest.json +37 -30
  120. package/src/FlirDownload.ts +78 -78
  121. package/src/index.d.ts +17 -17
  122. package/src/index.js +7 -7
  123. package/src/index.ts +7 -7
  124. package/android/Flir/src/main/java/flir/android/CameraHandler.java +0 -194
  125. package/android/Flir/src/main/java/flir/android/FlirController.kt +0 -11
  126. package/android/Flir/src/main/java/flir/android/FrameDataHolder.java +0 -14
@@ -1,192 +1,192 @@
1
- //
2
- // FLIRFusion.h
3
- //
4
- // Copyright © 2019 Teledyne FLIR. All rights reserved.
5
- //
6
-
7
- #ifndef FLIRFusion_h
8
- #define FLIRFusion_h
9
- #endif
10
-
11
- #import "FLIRFusion.h"
12
- #import "FLIRThermalValue.h"
13
- #import "FLIRFusionTransformation.h"
14
-
15
- /**
16
- * Specifies the fusion modes of the thermal image.
17
- */
18
- typedef enum FUSION_MODE
19
- {
20
- /** Ordinary IR image. */
21
- IR_MODE,
22
-
23
- /**
24
- * Visual image is zoomed and fused with IR image.
25
- * Note: for not aligned DC image use FLIRThermalImage#getPhoto().
26
- */
27
- VISUAL_MODE,
28
-
29
- /** Picture in picture fusion, where a defined box/rectangle shape with IR image pixels is placed on top of the visual image. */
30
- FUSION_PIP_MODE,
31
-
32
- /** IR image is blended with visual image based on the specified {@link com.flir.thermalsdk.image.ThermalValue} threshold. */
33
- FUSION_THERMAL_MODE,
34
-
35
- /** Thermal MSX (Multi Spectral Dynamic Imaging) mode displays an infrared image where the edges of the objects are enhanced with information from the visual image. */
36
- FUSION_MSX_MODE,
37
-
38
- /** IR image is blended with visual image based on the specified blending factor value. Use Blending mode to display a blended image that uses a mix of infrared pixels and digital photo pixels. */
39
- FUSION_BLENDING_MODE,
40
- } /** Specifies the fusion modes of the thermal image. */ FusionMode;
41
-
42
- /**
43
- * Enumeration of the different fusion color modes.
44
- */
45
- typedef enum ColorMode
46
- {
47
- /// <summary>
48
- /// Fusion image has visual image in color.
49
- /// </summary>
50
- Color = 0,
51
-
52
- /// <summary>
53
- /// Fusion image has visual image in b/w.
54
- /// </summary>
55
- BlackAndWhite = 1
56
- } /** Enumeration of the different fusion color modes. */ VisualColorMode;
57
-
58
- /**
59
- * This class provides functionality for image fusion.
60
- *
61
- * @note Image fusion is a function that will merge the Thermal image with a photo depending on
62
- * the selected fusion mode.
63
- */
64
- @interface FLIRFusion : NSObject
65
-
66
- /**
67
- * Set the fusion mode
68
- *
69
- * @param mode The fusion mode.
70
- */
71
- -(void) setFusionMode: (FusionMode) mode;
72
-
73
- /**
74
- * Get the fusion mode.
75
- *
76
- * @return The fusion mode.
77
- */
78
- -(FusionMode) getFusionMode;
79
-
80
- /**
81
- * Defines multi-spectral fusion image mode.
82
- * Thermal MSX (Multi Spectral Dynamic Imaging) mode displays an infrared image where the edges of the objects are enhanced with information from the visual image.
83
- * The higher the alpha level, the more edges will be detected.
84
- * Thermal image may appear a bit differently for the same MSX alpha value depending on the camera's resolution.
85
- * Thus the value should be based on the expected results and visible effect, but typical and suggested values are:
86
- * - FLIR ONE gen 2: 2.0 or 3.0
87
- * - FLIR ONE gen 3: 8.0 or higher
88
- *
89
- * @note Does no longer change the fusion mode.
90
- * @param alpha The intensity of the MSX, indicate how much the visual image is blended with IR (valid value range: [0.0, 100.0]).
91
- */
92
- -(void) setMSX: (double) alpha;
93
-
94
- /**
95
- * Get thermal image MSX settings.
96
- */
97
- -(double) getMSX;
98
-
99
- /**
100
- * Defines the fusion image mode, where Thermal image is displayed in defined area on top of the Visual image.
101
- *
102
- * @note Does no longer change the fusion mode.
103
- * @param rect The rectangle where the Thermal image will be placed inside the photo.
104
- */
105
- -(void) setPictureInPicture: (CGRect) rect;
106
-
107
- /**
108
- * Get the picture in picture rectangle.
109
- *
110
- * @return Rectangle that defines the PiP position and size.
111
- */
112
- - (CGRect) getPictureInPictureRect;
113
-
114
- /**
115
- * Defines the fusion image mode, where only the visual image is displayed. Settings for FusionMode Visual.
116
- * This mode hides the Thermal Image, only the digital photo is displayed.
117
- * Note: visual image is zoomed and fused with IR image. For not aligned DC image use FLIRThermalImage#getPhoto().
118
- *
119
- * @note Does no longer change the fusion mode.
120
- * @param mode Currently used color scheme the visual image is displayed in.
121
- */
122
- -(void) setVisualOnly:(VisualColorMode) mode;
123
-
124
- /**
125
- * Get thermal image visual only settings.
126
- */
127
- -(VisualColorMode) getVisualOnly;
128
-
129
- /**
130
- * Defines the image fusion mode, where thermal and visual image is combined for an output image.
131
- *
132
- * @note Does no longer change the fusion mode.
133
- * @param min The minimum blending level between thermal and visual image.
134
- * @param max The maximum blending level between thermal and visual image.
135
- */
136
- - (void)setThermalFusionWithMin:(FLIRThermalValue * _Nonnull)min andMax:(FLIRThermalValue * _Nonnull) max;
137
-
138
- /**
139
- * Defines the image fusion mode, where thermal and visual image is combined for an output image.
140
- *
141
- * @note Does no longer change the fusion mode.
142
- * @param min The minimum blending level between thermal and visual image.
143
- */
144
- - (void)setThermalFusionWithMin:(FLIRThermalValue * _Nonnull)min;
145
-
146
- /**
147
- * Defines the image fusion mode, where thermal and visual image is combined for an output image.
148
- *
149
- * @note Does no longer change the fusion mode.
150
- * @param max The maximum blending level between thermal and visual image.
151
- */
152
- - (void)setThermalFusionWithMax:(FLIRThermalValue * _Nonnull)max;
153
-
154
- /**
155
- * Get thermal image thermal fusion min level.
156
- */
157
- - (FLIRThermalValue * _Nonnull)getThermalFusionMin;
158
-
159
- /**
160
- * Get thermal image thermal fusion max level.
161
- */
162
- - (FLIRThermalValue * _Nonnull)getThermalFusionMax;
163
-
164
-
165
- /**
166
- * Defines the fusion image mode, where Thermal image blends with the Visual image.
167
- * Use Blending mode to display a blended image that uses a mix of infrared pixels and digital photo pixels.
168
- * The blending level between both images can be adjusted based on the temperatures stored for the Thermal image.
169
- *
170
- * @note Does no longer change the fusion mode.
171
- * @param level The blending level between thermal and visual image. (1.0 = only IR, 0.0 = only visual).
172
- * @param colorMode The color scheme the visual image is displayed in.
173
- */
174
- - (void)setBlending:(double)level ColorMode:(VisualColorMode)colorMode;
175
-
176
- /**
177
- * Get thermal image thermal blending level.
178
- */
179
- - (double)getBlendingLevel;
180
-
181
- /**
182
- * Get thermal image thermal blending colormode.
183
- */
184
- - (VisualColorMode)getBlendingColorMode;
185
-
186
- /** Set fusion transformation. */
187
- - (void)setTransformation:(FLIRFusionTransformation * _Nonnull)transformation;
188
-
189
- /** Get fusion transformation. */
190
- - (FLIRFusionTransformation * _Nonnull)getTransformation;
191
-
192
- @end
1
+ //
2
+ // FLIRFusion.h
3
+ //
4
+ // Copyright © 2019 Teledyne FLIR. All rights reserved.
5
+ //
6
+
7
+ #ifndef FLIRFusion_h
8
+ #define FLIRFusion_h
9
+ #endif
10
+
11
+ #import "FLIRFusion.h"
12
+ #import "FLIRThermalValue.h"
13
+ #import "FLIRFusionTransformation.h"
14
+
15
+ /**
16
+ * Specifies the fusion modes of the thermal image.
17
+ */
18
+ typedef enum FUSION_MODE
19
+ {
20
+ /** Ordinary IR image. */
21
+ IR_MODE,
22
+
23
+ /**
24
+ * Visual image is zoomed and fused with IR image.
25
+ * Note: for not aligned DC image use FLIRThermalImage#getPhoto().
26
+ */
27
+ VISUAL_MODE,
28
+
29
+ /** Picture in picture fusion, where a defined box/rectangle shape with IR image pixels is placed on top of the visual image. */
30
+ FUSION_PIP_MODE,
31
+
32
+ /** IR image is blended with visual image based on the specified {@link com.flir.thermalsdk.image.ThermalValue} threshold. */
33
+ FUSION_THERMAL_MODE,
34
+
35
+ /** Thermal MSX (Multi Spectral Dynamic Imaging) mode displays an infrared image where the edges of the objects are enhanced with information from the visual image. */
36
+ FUSION_MSX_MODE,
37
+
38
+ /** IR image is blended with visual image based on the specified blending factor value. Use Blending mode to display a blended image that uses a mix of infrared pixels and digital photo pixels. */
39
+ FUSION_BLENDING_MODE,
40
+ } /** Specifies the fusion modes of the thermal image. */ FusionMode;
41
+
42
+ /**
43
+ * Enumeration of the different fusion color modes.
44
+ */
45
+ typedef enum ColorMode
46
+ {
47
+ /// <summary>
48
+ /// Fusion image has visual image in color.
49
+ /// </summary>
50
+ Color = 0,
51
+
52
+ /// <summary>
53
+ /// Fusion image has visual image in b/w.
54
+ /// </summary>
55
+ BlackAndWhite = 1
56
+ } /** Enumeration of the different fusion color modes. */ VisualColorMode;
57
+
58
+ /**
59
+ * This class provides functionality for image fusion.
60
+ *
61
+ * @note Image fusion is a function that will merge the Thermal image with a photo depending on
62
+ * the selected fusion mode.
63
+ */
64
+ @interface FLIRFusion : NSObject
65
+
66
+ /**
67
+ * Set the fusion mode
68
+ *
69
+ * @param mode The fusion mode.
70
+ */
71
+ -(void) setFusionMode: (FusionMode) mode;
72
+
73
+ /**
74
+ * Get the fusion mode.
75
+ *
76
+ * @return The fusion mode.
77
+ */
78
+ -(FusionMode) getFusionMode;
79
+
80
+ /**
81
+ * Defines multi-spectral fusion image mode.
82
+ * Thermal MSX (Multi Spectral Dynamic Imaging) mode displays an infrared image where the edges of the objects are enhanced with information from the visual image.
83
+ * The higher the alpha level, the more edges will be detected.
84
+ * Thermal image may appear a bit differently for the same MSX alpha value depending on the camera's resolution.
85
+ * Thus the value should be based on the expected results and visible effect, but typical and suggested values are:
86
+ * - FLIR ONE gen 2: 2.0 or 3.0
87
+ * - FLIR ONE gen 3: 8.0 or higher
88
+ *
89
+ * @note Does no longer change the fusion mode.
90
+ * @param alpha The intensity of the MSX, indicate how much the visual image is blended with IR (valid value range: [0.0, 100.0]).
91
+ */
92
+ -(void) setMSX: (double) alpha;
93
+
94
+ /**
95
+ * Get thermal image MSX settings.
96
+ */
97
+ -(double) getMSX;
98
+
99
+ /**
100
+ * Defines the fusion image mode, where Thermal image is displayed in defined area on top of the Visual image.
101
+ *
102
+ * @note Does no longer change the fusion mode.
103
+ * @param rect The rectangle where the Thermal image will be placed inside the photo.
104
+ */
105
+ -(void) setPictureInPicture: (CGRect) rect;
106
+
107
+ /**
108
+ * Get the picture in picture rectangle.
109
+ *
110
+ * @return Rectangle that defines the PiP position and size.
111
+ */
112
+ - (CGRect) getPictureInPictureRect;
113
+
114
+ /**
115
+ * Defines the fusion image mode, where only the visual image is displayed. Settings for FusionMode Visual.
116
+ * This mode hides the Thermal Image, only the digital photo is displayed.
117
+ * Note: visual image is zoomed and fused with IR image. For not aligned DC image use FLIRThermalImage#getPhoto().
118
+ *
119
+ * @note Does no longer change the fusion mode.
120
+ * @param mode Currently used color scheme the visual image is displayed in.
121
+ */
122
+ -(void) setVisualOnly:(VisualColorMode) mode;
123
+
124
+ /**
125
+ * Get thermal image visual only settings.
126
+ */
127
+ -(VisualColorMode) getVisualOnly;
128
+
129
+ /**
130
+ * Defines the image fusion mode, where thermal and visual image is combined for an output image.
131
+ *
132
+ * @note Does no longer change the fusion mode.
133
+ * @param min The minimum blending level between thermal and visual image.
134
+ * @param max The maximum blending level between thermal and visual image.
135
+ */
136
+ - (void)setThermalFusionWithMin:(FLIRThermalValue * _Nonnull)min andMax:(FLIRThermalValue * _Nonnull) max;
137
+
138
+ /**
139
+ * Defines the image fusion mode, where thermal and visual image is combined for an output image.
140
+ *
141
+ * @note Does no longer change the fusion mode.
142
+ * @param min The minimum blending level between thermal and visual image.
143
+ */
144
+ - (void)setThermalFusionWithMin:(FLIRThermalValue * _Nonnull)min;
145
+
146
+ /**
147
+ * Defines the image fusion mode, where thermal and visual image is combined for an output image.
148
+ *
149
+ * @note Does no longer change the fusion mode.
150
+ * @param max The maximum blending level between thermal and visual image.
151
+ */
152
+ - (void)setThermalFusionWithMax:(FLIRThermalValue * _Nonnull)max;
153
+
154
+ /**
155
+ * Get thermal image thermal fusion min level.
156
+ */
157
+ - (FLIRThermalValue * _Nonnull)getThermalFusionMin;
158
+
159
+ /**
160
+ * Get thermal image thermal fusion max level.
161
+ */
162
+ - (FLIRThermalValue * _Nonnull)getThermalFusionMax;
163
+
164
+
165
+ /**
166
+ * Defines the fusion image mode, where Thermal image blends with the Visual image.
167
+ * Use Blending mode to display a blended image that uses a mix of infrared pixels and digital photo pixels.
168
+ * The blending level between both images can be adjusted based on the temperatures stored for the Thermal image.
169
+ *
170
+ * @note Does no longer change the fusion mode.
171
+ * @param level The blending level between thermal and visual image. (1.0 = only IR, 0.0 = only visual).
172
+ * @param colorMode The color scheme the visual image is displayed in.
173
+ */
174
+ - (void)setBlending:(double)level ColorMode:(VisualColorMode)colorMode;
175
+
176
+ /**
177
+ * Get thermal image thermal blending level.
178
+ */
179
+ - (double)getBlendingLevel;
180
+
181
+ /**
182
+ * Get thermal image thermal blending colormode.
183
+ */
184
+ - (VisualColorMode)getBlendingColorMode;
185
+
186
+ /** Set fusion transformation. */
187
+ - (void)setTransformation:(FLIRFusionTransformation * _Nonnull)transformation;
188
+
189
+ /** Get fusion transformation. */
190
+ - (FLIRFusionTransformation * _Nonnull)getTransformation;
191
+
192
+ @end
@@ -1,136 +1,136 @@
1
- //
2
- // FLIRFusionController.h
3
- // ThermalSDK
4
- //
5
- // Created by FLIR on 2020-07-02.
6
- // Copyright © 2020 Teledyne FLIR. All rights reserved.
7
- //
8
-
9
- #import <Foundation/Foundation.h>
10
- #import <CoreGraphics/CoreGraphics.h>
11
-
12
- NS_ASSUME_NONNULL_BEGIN
13
-
14
- /**
15
- * Defines how fusion span level is displayed.
16
- */
17
- typedef NS_ENUM(NSUInteger, FLIRFusionSpanLevel) {
18
- DC = 0,
19
- IR = 1,
20
- THERMAL_FUSION = 7
21
- };
22
-
23
- /**
24
- * Channel mode/type used to display live view on the camera.
25
- */
26
- typedef NS_ENUM(NSUInteger, FLIRChannelType) {
27
- IR_TYPE,
28
- VISUAL,
29
- FUSION
30
- };
31
-
32
- /**
33
- * Definition of image's display mode. Depending on selected mode thermal or visual data is used to
34
- * render the image. Provides detailed information for fusion.
35
- */
36
- typedef NS_ENUM(NSUInteger, FLIRDisplayMode) {
37
- /**
38
- * The camera sends video in basic mode: {@link ChannelType#IR} or {@link ChannelType#VISUAL}
39
- */
40
- NONE,
41
- /**
42
- * The camera video in fusion blending mode.
43
- */
44
- FUSION_MODE,
45
- /**
46
- * The camera video in picture in picture mode.
47
- */
48
- PIP,
49
- /**
50
- * The camera video in multi-spectral image mode.
51
- */
52
- MSX,
53
- /**
54
- * Image displayed a digital.
55
- */
56
- DIGITAL,
57
- /**
58
- * Image displayed as difference.
59
- */
60
- DIFF,
61
- /**
62
- * Image displayed as blending between thermal and digital images.
63
- */
64
- BLENDING
65
- };
66
-
67
- /** a wrapper for the display mode */
68
- @interface FLIRMode : NSObject
69
- /** display mode */
70
- @property (nonatomic, assign) FLIRDisplayMode mode;
71
- @end
72
-
73
- /** fusion options for the camera */
74
- @interface FLIRFusionController : NSObject
75
-
76
- /**
77
- * Defines the active channel on displaying image on live view on the camera.
78
- * This property may change dynamically after displayMode property is changed. Emulated cameras are NOT affected.
79
- */
80
- - (FLIRChannelType)getActiveChannel;
81
- /**
82
- * Defines the active channel on displaying image on live view on the camera.
83
- * This property may change dynamically after displayMode property is changed. Emulated cameras are NOT affected.
84
- * Writing this value should be done with caution, because in order to camera physically change the mode it is also required to apply proper values to displayMode and fusionSpanLevel.
85
- * This is highly recommended to use displayMode only, which automatically makes sure both fusionSpanLevel and this property are set accordingly.
86
- * Avoid setting this property while streaming.
87
- */
88
- - (BOOL)setActiveChannel: (FLIRChannelType)activeChannel error: (out NSError * _Nullable *_Nullable)error;
89
- /** subscribe to changes of the active channel (delegate method will be called when channel changes) */
90
- - (BOOL)subscribeActiveChannel: (out NSError * _Nullable *_Nullable)error;
91
- /** unsubscribe to changes of the active channel */
92
- - (void)unsubscribeActiveChannel;
93
-
94
- /** list valid display modes for the camera */
95
- - (NSArray<FLIRMode*>* _Nullable)getValidModes;
96
- /** get true if msx is supported */
97
- - (BOOL)getMsxSupported;
98
- /** get a rectangle for picture in picture display */
99
- - (CGRect)getPIPWindow;
100
- /** set a rectangle for picture in picture display */
101
- - (BOOL)setPIPWindow: (CGRect)pipWindow error: (out NSError * _Nullable *_Nullable)error;
102
- /** get true if fusion is always on */
103
- - (BOOL)getFusionAlwaysOn;
104
- /** get or set the display mode used */
105
- - (FLIRDisplayMode)getDisplayMode;
106
- /** get or set the display mode used */
107
- - (BOOL)setDisplayMode: (FLIRDisplayMode)displayMode error: (out NSError * _Nullable *_Nullable)error;
108
- /**
109
- * Defines how fusion span level is displayed.
110
- * This property may change dynamically after displayMode property is changed. Emulated cameras are NOT affected.
111
- */
112
- - (FLIRFusionSpanLevel)getFusionSpanLevel;
113
- /**
114
- * Defines how fusion span level is displayed.
115
- * This property may change dynamically after displayMode property is changed. Emulated cameras are NOT affected.
116
- * Writing this value should be done with caution, because in order to camera physically change the mode it is also required to apply proper values to displayMode and activeChannel.
117
- * This is highly recommended to use displayMode only, which automatically makes sure both activeChannel and this property are set accordingly.
118
- */
119
- - (BOOL)setFusionSpanLevel: (FLIRFusionSpanLevel)fusionSpanLevel error: (out NSError * _Nullable *_Nullable)error;
120
-
121
- /**
122
- * Set the fusion distance in meters.
123
- * This is only to be used to modify the fusion distance on a live stream.
124
- * @param distance distance to the object in meters. Range 0.1 to 10.0
125
- * @param error reason for error
126
- */
127
- -(BOOL) setFusionDistance:(double) distance error:(out NSError * _Nullable * _Nullable)error;
128
-
129
- /**
130
- * Gets the fusion distance in meters.
131
- */
132
- -(double) getFusionDistance;
133
-
134
- @end
135
-
136
- NS_ASSUME_NONNULL_END
1
+ //
2
+ // FLIRFusionController.h
3
+ // ThermalSDK
4
+ //
5
+ // Created by FLIR on 2020-07-02.
6
+ // Copyright © 2020 Teledyne FLIR. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import <CoreGraphics/CoreGraphics.h>
11
+
12
+ NS_ASSUME_NONNULL_BEGIN
13
+
14
+ /**
15
+ * Defines how fusion span level is displayed.
16
+ */
17
+ typedef NS_ENUM(NSUInteger, FLIRFusionSpanLevel) {
18
+ DC = 0,
19
+ IR = 1,
20
+ THERMAL_FUSION = 7
21
+ };
22
+
23
+ /**
24
+ * Channel mode/type used to display live view on the camera.
25
+ */
26
+ typedef NS_ENUM(NSUInteger, FLIRChannelType) {
27
+ IR_TYPE,
28
+ VISUAL,
29
+ FUSION
30
+ };
31
+
32
+ /**
33
+ * Definition of image's display mode. Depending on selected mode thermal or visual data is used to
34
+ * render the image. Provides detailed information for fusion.
35
+ */
36
+ typedef NS_ENUM(NSUInteger, FLIRDisplayMode) {
37
+ /**
38
+ * The camera sends video in basic mode: {@link ChannelType#IR} or {@link ChannelType#VISUAL}
39
+ */
40
+ NONE,
41
+ /**
42
+ * The camera video in fusion blending mode.
43
+ */
44
+ FUSION_MODE,
45
+ /**
46
+ * The camera video in picture in picture mode.
47
+ */
48
+ PIP,
49
+ /**
50
+ * The camera video in multi-spectral image mode.
51
+ */
52
+ MSX,
53
+ /**
54
+ * Image displayed a digital.
55
+ */
56
+ DIGITAL,
57
+ /**
58
+ * Image displayed as difference.
59
+ */
60
+ DIFF,
61
+ /**
62
+ * Image displayed as blending between thermal and digital images.
63
+ */
64
+ BLENDING
65
+ };
66
+
67
+ /** a wrapper for the display mode */
68
+ @interface FLIRMode : NSObject
69
+ /** display mode */
70
+ @property (nonatomic, assign) FLIRDisplayMode mode;
71
+ @end
72
+
73
+ /** fusion options for the camera */
74
+ @interface FLIRFusionController : NSObject
75
+
76
+ /**
77
+ * Defines the active channel on displaying image on live view on the camera.
78
+ * This property may change dynamically after displayMode property is changed. Emulated cameras are NOT affected.
79
+ */
80
+ - (FLIRChannelType)getActiveChannel;
81
+ /**
82
+ * Defines the active channel on displaying image on live view on the camera.
83
+ * This property may change dynamically after displayMode property is changed. Emulated cameras are NOT affected.
84
+ * Writing this value should be done with caution, because in order to camera physically change the mode it is also required to apply proper values to displayMode and fusionSpanLevel.
85
+ * This is highly recommended to use displayMode only, which automatically makes sure both fusionSpanLevel and this property are set accordingly.
86
+ * Avoid setting this property while streaming.
87
+ */
88
+ - (BOOL)setActiveChannel: (FLIRChannelType)activeChannel error: (out NSError * _Nullable *_Nullable)error;
89
+ /** subscribe to changes of the active channel (delegate method will be called when channel changes) */
90
+ - (BOOL)subscribeActiveChannel: (out NSError * _Nullable *_Nullable)error;
91
+ /** unsubscribe to changes of the active channel */
92
+ - (void)unsubscribeActiveChannel;
93
+
94
+ /** list valid display modes for the camera */
95
+ - (NSArray<FLIRMode*>* _Nullable)getValidModes;
96
+ /** get true if msx is supported */
97
+ - (BOOL)getMsxSupported;
98
+ /** get a rectangle for picture in picture display */
99
+ - (CGRect)getPIPWindow;
100
+ /** set a rectangle for picture in picture display */
101
+ - (BOOL)setPIPWindow: (CGRect)pipWindow error: (out NSError * _Nullable *_Nullable)error;
102
+ /** get true if fusion is always on */
103
+ - (BOOL)getFusionAlwaysOn;
104
+ /** get or set the display mode used */
105
+ - (FLIRDisplayMode)getDisplayMode;
106
+ /** get or set the display mode used */
107
+ - (BOOL)setDisplayMode: (FLIRDisplayMode)displayMode error: (out NSError * _Nullable *_Nullable)error;
108
+ /**
109
+ * Defines how fusion span level is displayed.
110
+ * This property may change dynamically after displayMode property is changed. Emulated cameras are NOT affected.
111
+ */
112
+ - (FLIRFusionSpanLevel)getFusionSpanLevel;
113
+ /**
114
+ * Defines how fusion span level is displayed.
115
+ * This property may change dynamically after displayMode property is changed. Emulated cameras are NOT affected.
116
+ * Writing this value should be done with caution, because in order to camera physically change the mode it is also required to apply proper values to displayMode and activeChannel.
117
+ * This is highly recommended to use displayMode only, which automatically makes sure both activeChannel and this property are set accordingly.
118
+ */
119
+ - (BOOL)setFusionSpanLevel: (FLIRFusionSpanLevel)fusionSpanLevel error: (out NSError * _Nullable *_Nullable)error;
120
+
121
+ /**
122
+ * Set the fusion distance in meters.
123
+ * This is only to be used to modify the fusion distance on a live stream.
124
+ * @param distance distance to the object in meters. Range 0.1 to 10.0
125
+ * @param error reason for error
126
+ */
127
+ -(BOOL) setFusionDistance:(double) distance error:(out NSError * _Nullable * _Nullable)error;
128
+
129
+ /**
130
+ * Gets the fusion distance in meters.
131
+ */
132
+ -(double) getFusionDistance;
133
+
134
+ @end
135
+
136
+ NS_ASSUME_NONNULL_END