@opencvjs/types 4.10.0-release.1

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 (54) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +23 -0
  3. package/lib/index.d.ts +2 -0
  4. package/lib/opencv/Affine3.d.ts +206 -0
  5. package/lib/opencv/Algorithm.d.ts +126 -0
  6. package/lib/opencv/AutoBuffer.d.ts +50 -0
  7. package/lib/opencv/BFMatcher.d.ts +37 -0
  8. package/lib/opencv/BOWTrainer.d.ts +43 -0
  9. package/lib/opencv/CascadeClassifier.d.ts +153 -0
  10. package/lib/opencv/DescriptorMatcher.d.ts +236 -0
  11. package/lib/opencv/DynamicBitset.d.ts +68 -0
  12. package/lib/opencv/Exception.d.ts +54 -0
  13. package/lib/opencv/Feature2D.d.ts +20 -0
  14. package/lib/opencv/FlannBasedMatcher.d.ts +57 -0
  15. package/lib/opencv/HOGDescriptor.d.ts +401 -0
  16. package/lib/opencv/Logger.d.ts +34 -0
  17. package/lib/opencv/LshTable.d.ts +81 -0
  18. package/lib/opencv/Mat.d.ts +1793 -0
  19. package/lib/opencv/MatExpr.d.ts +107 -0
  20. package/lib/opencv/MatOp.d.ts +72 -0
  21. package/lib/opencv/Matx.d.ts +228 -0
  22. package/lib/opencv/Node.d.ts +33 -0
  23. package/lib/opencv/ORB.d.ts +23 -0
  24. package/lib/opencv/PCA.d.ts +198 -0
  25. package/lib/opencv/RotatedRect.d.ts +73 -0
  26. package/lib/opencv/Tracker.d.ts +1 -0
  27. package/lib/opencv/TrackerMIL.d.ts +3 -0
  28. package/lib/opencv/_types.d.ts +48 -0
  29. package/lib/opencv/calib3d.d.ts +2937 -0
  30. package/lib/opencv/core_array.d.ts +3102 -0
  31. package/lib/opencv/core_cluster.d.ts +80 -0
  32. package/lib/opencv/core_hal_interface.d.ts +159 -0
  33. package/lib/opencv/core_utils.d.ts +748 -0
  34. package/lib/opencv/dnn.d.ts +505 -0
  35. package/lib/opencv/features2d_draw.d.ts +114 -0
  36. package/lib/opencv/fisheye.d.ts +26 -0
  37. package/lib/opencv/helpers.d.ts +274 -0
  38. package/lib/opencv/imgproc_color_conversions.d.ts +527 -0
  39. package/lib/opencv/imgproc_draw.d.ts +732 -0
  40. package/lib/opencv/imgproc_feature.d.ts +681 -0
  41. package/lib/opencv/imgproc_filter.d.ts +918 -0
  42. package/lib/opencv/imgproc_hist.d.ts +399 -0
  43. package/lib/opencv/imgproc_misc.d.ts +616 -0
  44. package/lib/opencv/imgproc_object.d.ts +58 -0
  45. package/lib/opencv/imgproc_shape.d.ts +724 -0
  46. package/lib/opencv/imgproc_transform.d.ts +574 -0
  47. package/lib/opencv/missing.d.ts +58 -0
  48. package/lib/opencv/objdetect.d.ts +103 -0
  49. package/lib/opencv/photo_inpaint.d.ts +39 -0
  50. package/lib/opencv/softdouble.d.ts +71 -0
  51. package/lib/opencv/softfloat.d.ts +71 -0
  52. package/lib/opencv/video_track.d.ts +370 -0
  53. package/package.json +18 -0
  54. package/tsconfig.json +15 -0
@@ -0,0 +1,748 @@
1
+ import type {
2
+ AsyncArray,
3
+ bool,
4
+ double,
5
+ ErrorCallback,
6
+ float,
7
+ float16_t,
8
+ InputArray,
9
+ InputArrayOfArrays,
10
+ InputOutputArray,
11
+ InputOutputArrayOfArrays,
12
+ int,
13
+ int64,
14
+ schar,
15
+ short,
16
+ size_t,
17
+ uchar,
18
+ uint64,
19
+ unsigned,
20
+ ushort,
21
+ _Tp,
22
+ } from "./_types";
23
+ /*
24
+ * # Utility and system functions and macros
25
+ *
26
+ */
27
+ /**
28
+ * The function returns the aligned pointer of the same type as the input pointer:
29
+ * `\\[\\texttt{(_Tp*)(((size_t)ptr + n-1) & -n)}\\]`
30
+ *
31
+ * @param ptr Aligned pointer.
32
+ *
33
+ * @param n Alignment size that must be a power of two.
34
+ */
35
+ export declare function alignPtr(arg92: any, ptr: any, n?: int): any;
36
+
37
+ /**
38
+ * The function returns the minimum number that is greater than or equal to sz and is divisible by n :
39
+ * `\\[\\texttt{(sz + n-1) & -n}\\]`
40
+ *
41
+ * @param sz Buffer size to align.
42
+ *
43
+ * @param n Alignment size that must be a power of two.
44
+ */
45
+ export declare function alignSize(sz: size_t, n: int): size_t;
46
+
47
+ /**
48
+ * The function returns true if the host hardware supports the specified feature. When user calls
49
+ * setUseOptimized(false), the subsequent calls to [checkHardwareSupport()] will return false until
50
+ * setUseOptimized(true) is called. This way user can dynamically switch on and off the optimized code
51
+ * in OpenCV.
52
+ *
53
+ * @param feature The feature of interest, one of cv::CpuFeatures
54
+ */
55
+ export declare function checkHardwareSupport(feature: int): bool;
56
+
57
+ /**
58
+ * proxy for hal::Cholesky
59
+ */
60
+ export declare function Cholesky(
61
+ A: any,
62
+ astep: size_t,
63
+ m: int,
64
+ b: any,
65
+ bstep: size_t,
66
+ n: int,
67
+ ): bool;
68
+
69
+ /**
70
+ * proxy for hal::Cholesky
71
+ */
72
+ export declare function Cholesky(
73
+ A: any,
74
+ astep: size_t,
75
+ m: int,
76
+ b: any,
77
+ bstep: size_t,
78
+ n: int,
79
+ ): bool;
80
+
81
+ /**
82
+ * The function cubeRoot computes `$\\sqrt[3]{\\texttt{val}}$`. Negative arguments are handled
83
+ * correctly. NaN and Inf are not handled. The accuracy approaches the maximum possible accuracy for
84
+ * single-precision data.
85
+ *
86
+ * @param val A function argument.
87
+ */
88
+ export declare function cubeRoot(val: float): float;
89
+
90
+ export declare function cv_abs(arg93: any, x: _Tp): any;
91
+
92
+ export declare function cv_abs(x: uchar): uchar;
93
+
94
+ export declare function cv_abs(x: schar): schar;
95
+
96
+ export declare function cv_abs(x: ushort): ushort;
97
+
98
+ export declare function cv_abs(x: short): int;
99
+
100
+ export declare function CV_XADD(addr: any, delta: int): any;
101
+
102
+ /**
103
+ * The function computes an integer i such that: `\\[i \\le \\texttt{value} < i+1\\]`
104
+ *
105
+ * @param value floating-point number. If the value is outside of INT_MIN ... INT_MAX range, the result
106
+ * is not defined.
107
+ */
108
+ export declare function cvCeil(value: double): int;
109
+
110
+ /**
111
+ * This is an overloaded member function, provided for convenience. It differs from the above function
112
+ * only in what argument(s) it accepts.
113
+ */
114
+ export declare function cvCeil(value: float): int;
115
+
116
+ /**
117
+ * This is an overloaded member function, provided for convenience. It differs from the above function
118
+ * only in what argument(s) it accepts.
119
+ */
120
+ export declare function cvCeil(value: int): int;
121
+
122
+ /**
123
+ * The function computes an integer i such that: `\\[i \\le \\texttt{value} < i+1\\]`
124
+ *
125
+ * @param value floating-point number. If the value is outside of INT_MIN ... INT_MAX range, the result
126
+ * is not defined.
127
+ */
128
+ export declare function cvFloor(value: double): int;
129
+
130
+ /**
131
+ * This is an overloaded member function, provided for convenience. It differs from the above function
132
+ * only in what argument(s) it accepts.
133
+ */
134
+ export declare function cvFloor(value: float): int;
135
+
136
+ /**
137
+ * This is an overloaded member function, provided for convenience. It differs from the above function
138
+ * only in what argument(s) it accepts.
139
+ */
140
+ export declare function cvFloor(value: int): int;
141
+
142
+ /**
143
+ * The function returns 1 if the argument is a plus or minus infinity (as defined by IEEE754 standard)
144
+ * and 0 otherwise.
145
+ *
146
+ * @param value The input floating-point value
147
+ */
148
+ export declare function cvIsInf(value: double): int;
149
+
150
+ /**
151
+ * This is an overloaded member function, provided for convenience. It differs from the above function
152
+ * only in what argument(s) it accepts.
153
+ */
154
+ export declare function cvIsInf(value: float): int;
155
+
156
+ /**
157
+ * The function returns 1 if the argument is Not A Number (as defined by IEEE754 standard), 0
158
+ * otherwise.
159
+ *
160
+ * @param value The input floating-point value
161
+ */
162
+ export declare function cvIsNaN(value: double): int;
163
+
164
+ /**
165
+ * This is an overloaded member function, provided for convenience. It differs from the above function
166
+ * only in what argument(s) it accepts.
167
+ */
168
+ export declare function cvIsNaN(value: float): int;
169
+
170
+ /**
171
+ * @param value floating-point number. If the value is outside of INT_MIN ... INT_MAX range, the result
172
+ * is not defined.
173
+ */
174
+ export declare function cvRound(value: double): int;
175
+
176
+ /**
177
+ * This is an overloaded member function, provided for convenience. It differs from the above function
178
+ * only in what argument(s) it accepts.
179
+ */
180
+ export declare function cvRound(value: float): int;
181
+
182
+ /**
183
+ * This is an overloaded member function, provided for convenience. It differs from the above function
184
+ * only in what argument(s) it accepts.
185
+ */
186
+ export declare function cvRound(value: int): int;
187
+
188
+ /**
189
+ * Use this function instead of `ceil((float)a / b)` expressions.
190
+ *
191
+ * [alignSize]
192
+ */
193
+ export declare function divUp(a: int, b: any): int;
194
+
195
+ /**
196
+ * This is an overloaded member function, provided for convenience. It differs from the above function
197
+ * only in what argument(s) it accepts.
198
+ */
199
+ export declare function divUp(a: size_t, b: any): size_t;
200
+
201
+ export declare function dumpInputArray(argument: InputArray): String;
202
+
203
+ export declare function dumpInputArrayOfArrays(
204
+ argument: InputArrayOfArrays,
205
+ ): String;
206
+
207
+ export declare function dumpInputOutputArray(
208
+ argument: InputOutputArray,
209
+ ): String;
210
+
211
+ export declare function dumpInputOutputArrayOfArrays(
212
+ argument: InputOutputArrayOfArrays,
213
+ ): String;
214
+
215
+ /**
216
+ * By default the function prints information about the error to stderr, then it either stops if
217
+ * [cv::setBreakOnError()] had been called before or raises the exception. It is possible to alternate
218
+ * error processing by using [redirectError()].
219
+ *
220
+ * @param exc the exception raisen.
221
+ */
222
+ export declare function error(exc: any): void;
223
+
224
+ /**
225
+ * By default the function prints information about the error to stderr, then it either stops if
226
+ * [setBreakOnError()] had been called before or raises the exception. It is possible to alternate
227
+ * error processing by using [redirectError()].
228
+ *
229
+ * [CV_Error], [CV_Error_], [CV_Assert], [CV_DbgAssert]
230
+ *
231
+ * @param _code - error code (Error::Code)
232
+ *
233
+ * @param _err - error description
234
+ *
235
+ * @param _func - function name. Available only when the compiler supports getting it
236
+ *
237
+ * @param _file - source file name where the error has occurred
238
+ *
239
+ * @param _line - line number in the source file where the error has occurred
240
+ */
241
+ export declare function error(
242
+ _code: int,
243
+ _err: any,
244
+ _func: any,
245
+ _file: any,
246
+ _line: int,
247
+ ): void;
248
+
249
+ /**
250
+ * The function fastAtan2 calculates the full-range angle of an input 2D vector. The angle is measured
251
+ * in degrees and varies from 0 to 360 degrees. The accuracy is about 0.3 degrees.
252
+ *
253
+ * @param y y-coordinate of the vector.
254
+ *
255
+ * @param x x-coordinate of the vector.
256
+ */
257
+ export declare function fastAtan2(y: float, x: float): float;
258
+
259
+ /**
260
+ * The function deallocates the buffer allocated with fastMalloc . If NULL pointer is passed, the
261
+ * function does nothing. C version of the function clears the pointer *pptr* to avoid problems with
262
+ * double memory deallocation.
263
+ *
264
+ * @param ptr Pointer to the allocated buffer.
265
+ */
266
+ export declare function fastFree(ptr: any): void;
267
+
268
+ /**
269
+ * The function allocates the buffer of the specified size and returns it. When the buffer size is 16
270
+ * bytes or more, the returned buffer is aligned to 16 bytes.
271
+ *
272
+ * @param bufSize Allocated buffer size.
273
+ */
274
+ export declare function fastMalloc(bufSize: size_t): any;
275
+
276
+ export declare function forEach_impl(
277
+ arg94: any,
278
+ arg95: any,
279
+ operation: any,
280
+ ): any;
281
+
282
+ /**
283
+ * Returned value is raw cmake output including version control system revision, compiler version,
284
+ * compiler flags, enabled modules and third party libraries, etc. Output format depends on target
285
+ * architecture.
286
+ */
287
+ export declare function getBuildInformation(): any;
288
+
289
+ /**
290
+ * Returned value is a string containing space separated list of CPU features with following markers:
291
+ *
292
+ * no markers - baseline features
293
+ * prefix `*` - features enabled in dispatcher
294
+ * suffix `?` - features enabled but not available in HW
295
+ *
296
+ * Example: `SSE SSE2 SSE3 *SSE4.1 *SSE4.2 *FP16 *AVX *AVX2 *AVX512-SKX?`
297
+ */
298
+ export declare function getCPUFeaturesLine(): any;
299
+
300
+ /**
301
+ * The function returns the current number of CPU ticks on some architectures (such as x86, x64,
302
+ * PowerPC). On other platforms the function is equivalent to getTickCount. It can also be used for
303
+ * very accurate time measurements, as well as for [RNG] initialization. Note that in case of multi-CPU
304
+ * systems a thread, from which getCPUTickCount is called, can be suspended and resumed at another CPU
305
+ * with its own counter. So, theoretically (and practically) the subsequent calls to the function do
306
+ * not necessary return the monotonously increasing values. Also, since a modern CPU varies the CPU
307
+ * frequency depending on the load, the number of CPU clocks spent in some code cannot be directly
308
+ * converted to time units. Therefore, getTickCount is generally a preferable solution for measuring
309
+ * execution time.
310
+ */
311
+ export declare function getCPUTickCount(): int64;
312
+
313
+ export declare function getElemSize(type: int): size_t;
314
+
315
+ /**
316
+ * Returns empty string if feature is not defined
317
+ */
318
+ export declare function getHardwareFeatureName(feature: int): String;
319
+
320
+ export declare function getNumberOfCPUs(): int;
321
+
322
+ /**
323
+ * Always returns 1 if OpenCV is built without threading support.
324
+ *
325
+ * The exact meaning of return value depends on the threading framework used by OpenCV library:
326
+ *
327
+ * `TBB` - The number of threads, that OpenCV will try to use for parallel regions. If there is any
328
+ * tbb::thread_scheduler_init in user code conflicting with OpenCV, then function returns default
329
+ * number of threads used by TBB library.
330
+ * `OpenMP` - An upper bound on the number of threads that could be used to form a new team.
331
+ * `Concurrency` - The number of threads, that OpenCV will try to use for parallel regions.
332
+ * `GCD` - Unsupported; returns the GCD thread pool limit (512) for compatibility.
333
+ * `C=` - The number of threads, that OpenCV will try to use for parallel regions, if before called
334
+ * setNumThreads with threads > 0, otherwise returns the number of logical CPUs, available for the
335
+ * process.
336
+ *
337
+ * [setNumThreads], [getThreadNum]
338
+ */
339
+ export declare function getNumThreads(): int;
340
+
341
+ /**
342
+ * The exact meaning of the return value depends on the threading framework used by OpenCV library:
343
+ *
344
+ * `TBB` - Unsupported with current 4.1 TBB release. Maybe will be supported in future.
345
+ * `OpenMP` - The thread number, within the current team, of the calling thread.
346
+ * `Concurrency` - An ID for the virtual processor that the current context is executing on (0 for
347
+ * master thread and unique number for others, but not necessary 1,2,3,...).
348
+ * `GCD` - System calling thread's ID. Never returns 0 inside parallel region.
349
+ * `C=` - The index of the current parallel task.
350
+ *
351
+ * [setNumThreads], [getNumThreads]
352
+ */
353
+ export declare function getThreadNum(): int;
354
+
355
+ /**
356
+ * The function returns the number of ticks after the certain event (for example, when the machine was
357
+ * turned on). It can be used to initialize [RNG] or to measure a function execution time by reading
358
+ * the tick count before and after the function call.
359
+ *
360
+ * [getTickFrequency], [TickMeter]
361
+ */
362
+ export declare function getTickCount(): int64;
363
+
364
+ /**
365
+ * The function returns the number of ticks per second. That is, the following code computes the
366
+ * execution time in seconds:
367
+ *
368
+ * ```cpp
369
+ * double t = (double)getTickCount();
370
+ * // do something ...
371
+ * t = ((double)getTickCount() - t)/getTickFrequency();
372
+ * ```
373
+ *
374
+ * [getTickCount], [TickMeter]
375
+ */
376
+ export declare function getTickFrequency(): double;
377
+
378
+ export declare function getVersionMajor(): int;
379
+
380
+ export declare function getVersionMinor(): int;
381
+
382
+ export declare function getVersionRevision(): int;
383
+
384
+ /**
385
+ * For example "3.4.1-dev".
386
+ *
387
+ * getMajorVersion, getMinorVersion, getRevisionVersion
388
+ */
389
+ export declare function getVersionString(): String;
390
+
391
+ export declare function glob(
392
+ pattern: String,
393
+ result: any,
394
+ recursive?: bool,
395
+ ): void;
396
+
397
+ /**
398
+ * proxy for hal::LU
399
+ */
400
+ export declare function LU(
401
+ A: any,
402
+ astep: size_t,
403
+ m: int,
404
+ b: any,
405
+ bstep: size_t,
406
+ n: int,
407
+ ): int;
408
+
409
+ /**
410
+ * proxy for hal::LU
411
+ */
412
+ export declare function LU(
413
+ A: any,
414
+ astep: size_t,
415
+ m: int,
416
+ b: any,
417
+ bstep: size_t,
418
+ n: int,
419
+ ): int;
420
+
421
+ export declare function normInf(arg96: any, arg97: any, a: any, n: int): any;
422
+
423
+ export declare function normInf(
424
+ arg98: any,
425
+ arg99: any,
426
+ a: any,
427
+ b: any,
428
+ n: int,
429
+ ): any;
430
+
431
+ export declare function normL1(arg100: any, arg101: any, a: any, n: int): any;
432
+
433
+ export declare function normL1(
434
+ arg102: any,
435
+ arg103: any,
436
+ a: any,
437
+ b: any,
438
+ n: int,
439
+ ): any;
440
+
441
+ export declare function normL1(a: any, b: any, n: int): float;
442
+
443
+ export declare function normL1(a: uchar, b: uchar, n: int): uchar;
444
+
445
+ export declare function normL2Sqr(
446
+ arg104: any,
447
+ arg105: any,
448
+ a: any,
449
+ n: int,
450
+ ): any;
451
+
452
+ export declare function normL2Sqr(
453
+ arg106: any,
454
+ arg107: any,
455
+ a: any,
456
+ b: any,
457
+ n: int,
458
+ ): any;
459
+
460
+ export declare function normL2Sqr(a: any, b: any, n: int): float;
461
+
462
+ export declare function parallel_for_(
463
+ range: any,
464
+ body: any,
465
+ nstripes?: double,
466
+ ): void;
467
+
468
+ export declare function parallel_for_(
469
+ range: any,
470
+ functor: any,
471
+ nstripes?: double,
472
+ ): void;
473
+
474
+ /**
475
+ * The function sets the new error handler, called from [cv::error()].
476
+ *
477
+ * the previous error handler
478
+ *
479
+ * @param errCallback the new error handler. If NULL, the default error handler is used.
480
+ *
481
+ * @param userdata the optional user data pointer, passed to the callback.
482
+ *
483
+ * @param prevUserdata the optional output parameter where the previous user data pointer is stored
484
+ */
485
+ export declare function redirectError(
486
+ errCallback: ErrorCallback,
487
+ userdata?: any,
488
+ prevUserdata?: any,
489
+ ): ErrorCallback;
490
+
491
+ /**
492
+ * Use this function instead of `ceil((float)a / b) * b` expressions.
493
+ *
494
+ * [divUp]
495
+ */
496
+ export declare function roundUp(a: int, b: any): int;
497
+
498
+ /**
499
+ * This is an overloaded member function, provided for convenience. It differs from the above function
500
+ * only in what argument(s) it accepts.
501
+ */
502
+ export declare function roundUp(a: size_t, b: any): size_t;
503
+
504
+ /**
505
+ * The function saturate_cast resembles the standard C++ cast operations, such as static_cast<T>() and
506
+ * others. It perform an efficient and accurate conversion from one primitive type to another (see the
507
+ * introduction chapter). saturate in the name means that when the input value v is out of the range of
508
+ * the target type, the result is not formed just by taking low bits of the input, but instead the
509
+ * value is clipped. For example:
510
+ *
511
+ * ```cpp
512
+ * uchar a = saturate_cast<uchar>(-100); // a = 0 (UCHAR_MIN)
513
+ * short b = saturate_cast<short>(33333.33333); // b = 32767 (SHRT_MAX)
514
+ * ```
515
+ *
516
+ * Such clipping is done when the target type is unsigned char , signed char , unsigned short or
517
+ * signed short . For 32-bit integers, no clipping is done.
518
+ *
519
+ * When the parameter is a floating-point value and the target type is an integer (8-, 16- or 32-bit),
520
+ * the floating-point value is first rounded to the nearest integer and then clipped if needed (when
521
+ * the target type is 8- or 16-bit).
522
+ *
523
+ * This operation is used in the simplest or most complex image processing functions in OpenCV.
524
+ *
525
+ * [add], [subtract], [multiply], [divide], [Mat::convertTo]
526
+ *
527
+ * @param v Function parameter.
528
+ */
529
+ export declare function saturate_cast(arg108: any, v: uchar): uchar;
530
+
531
+ /**
532
+ * This is an overloaded member function, provided for convenience. It differs from the above function
533
+ * only in what argument(s) it accepts.
534
+ */
535
+ export declare function saturate_cast(arg109: any, v: schar): schar;
536
+
537
+ /**
538
+ * This is an overloaded member function, provided for convenience. It differs from the above function
539
+ * only in what argument(s) it accepts.
540
+ */
541
+ export declare function saturate_cast(arg110: any, v: ushort): ushort;
542
+
543
+ /**
544
+ * This is an overloaded member function, provided for convenience. It differs from the above function
545
+ * only in what argument(s) it accepts.
546
+ */
547
+ export declare function saturate_cast(arg111: any, v: short): any;
548
+
549
+ /**
550
+ * This is an overloaded member function, provided for convenience. It differs from the above function
551
+ * only in what argument(s) it accepts.
552
+ */
553
+ export declare function saturate_cast(arg112: any, v: unsigned): any;
554
+
555
+ /**
556
+ * This is an overloaded member function, provided for convenience. It differs from the above function
557
+ * only in what argument(s) it accepts.
558
+ */
559
+ export declare function saturate_cast(arg113: any, v: int): any;
560
+
561
+ /**
562
+ * This is an overloaded member function, provided for convenience. It differs from the above function
563
+ * only in what argument(s) it accepts.
564
+ */
565
+ export declare function saturate_cast(arg114: any, v: float): any;
566
+
567
+ /**
568
+ * This is an overloaded member function, provided for convenience. It differs from the above function
569
+ * only in what argument(s) it accepts.
570
+ */
571
+ export declare function saturate_cast(arg115: any, v: double): any;
572
+
573
+ /**
574
+ * This is an overloaded member function, provided for convenience. It differs from the above function
575
+ * only in what argument(s) it accepts.
576
+ */
577
+ export declare function saturate_cast(arg116: any, v: int64): int64;
578
+
579
+ /**
580
+ * This is an overloaded member function, provided for convenience. It differs from the above function
581
+ * only in what argument(s) it accepts.
582
+ */
583
+ export declare function saturate_cast(arg117: any, v: uint64): uint64;
584
+
585
+ /**
586
+ * This is an overloaded member function, provided for convenience. It differs from the above function
587
+ * only in what argument(s) it accepts.
588
+ */
589
+ export declare function saturate_cast(arg118: any, v: float16_t): any;
590
+
591
+ /**
592
+ * When the break-on-error mode is set, the default error handler issues a hardware exception, which
593
+ * can make debugging more convenient.
594
+ *
595
+ * the previous state
596
+ */
597
+ export declare function setBreakOnError(flag: bool): bool;
598
+
599
+ /**
600
+ * If threads == 0, OpenCV will disable threading optimizations and run all it's functions
601
+ * sequentially. Passing threads < 0 will reset threads number to system default. This function must be
602
+ * called outside of parallel region.
603
+ *
604
+ * OpenCV will try to run its functions with specified threads number, but some behaviour differs from
605
+ * framework:
606
+ *
607
+ * `TBB` - User-defined parallel constructions will run with the same threads number, if another is not
608
+ * specified. If later on user creates his own scheduler, OpenCV will use it.
609
+ * `OpenMP` - No special defined behaviour.
610
+ * `Concurrency` - If threads == 1, OpenCV will disable threading optimizations and run its functions
611
+ * sequentially.
612
+ * `GCD` - Supports only values <= 0.
613
+ * `C=` - No special defined behaviour.
614
+ *
615
+ * [getNumThreads], [getThreadNum]
616
+ *
617
+ * @param nthreads Number of threads used by OpenCV.
618
+ */
619
+ export declare function setNumThreads(nthreads: int): void;
620
+
621
+ /**
622
+ * The function can be used to dynamically turn on and off optimized dispatched code (code that uses
623
+ * SSE4.2, AVX/AVX2, and other instructions on the platforms that support it). It sets a global flag
624
+ * that is further checked by OpenCV functions. Since the flag is not checked in the inner OpenCV
625
+ * loops, it is only safe to call the function on the very top level in your application where you can
626
+ * be sure that no other OpenCV function is currently executed.
627
+ *
628
+ * By default, the optimized code is enabled unless you disable it in CMake. The current status can be
629
+ * retrieved using useOptimized.
630
+ *
631
+ * @param onoff The boolean flag specifying whether the optimized code should be used (onoff=true) or
632
+ * not (onoff=false).
633
+ */
634
+ export declare function setUseOptimized(onoff: bool): void;
635
+
636
+ export declare function tempfile(suffix?: any): String;
637
+
638
+ export declare function testAsyncArray(argument: InputArray): AsyncArray;
639
+
640
+ export declare function testAsyncException(): AsyncArray;
641
+
642
+ /**
643
+ * The function returns true if the optimized code is enabled. Otherwise, it returns false.
644
+ */
645
+ export declare function useOptimized(): bool;
646
+
647
+ export declare const CPU_MMX: CpuFeatures; // initializer: = 1
648
+
649
+ export declare const CPU_SSE: CpuFeatures; // initializer: = 2
650
+
651
+ export declare const CPU_SSE2: CpuFeatures; // initializer: = 3
652
+
653
+ export declare const CPU_SSE3: CpuFeatures; // initializer: = 4
654
+
655
+ export declare const CPU_SSSE3: CpuFeatures; // initializer: = 5
656
+
657
+ export declare const CPU_SSE4_1: CpuFeatures; // initializer: = 6
658
+
659
+ export declare const CPU_SSE4_2: CpuFeatures; // initializer: = 7
660
+
661
+ export declare const CPU_POPCNT: CpuFeatures; // initializer: = 8
662
+
663
+ export declare const CPU_FP16: CpuFeatures; // initializer: = 9
664
+
665
+ export declare const CPU_AVX: CpuFeatures; // initializer: = 10
666
+
667
+ export declare const CPU_AVX2: CpuFeatures; // initializer: = 11
668
+
669
+ export declare const CPU_FMA3: CpuFeatures; // initializer: = 12
670
+
671
+ export declare const CPU_AVX_512F: CpuFeatures; // initializer: = 13
672
+
673
+ export declare const CPU_AVX_512BW: CpuFeatures; // initializer: = 14
674
+
675
+ export declare const CPU_AVX_512CD: CpuFeatures; // initializer: = 15
676
+
677
+ export declare const CPU_AVX_512DQ: CpuFeatures; // initializer: = 16
678
+
679
+ export declare const CPU_AVX_512ER: CpuFeatures; // initializer: = 17
680
+
681
+ export declare const CPU_AVX_512IFMA512: CpuFeatures; // initializer: = 18
682
+
683
+ export declare const CPU_AVX_512IFMA: CpuFeatures; // initializer: = 18
684
+
685
+ export declare const CPU_AVX_512PF: CpuFeatures; // initializer: = 19
686
+
687
+ export declare const CPU_AVX_512VBMI: CpuFeatures; // initializer: = 20
688
+
689
+ export declare const CPU_AVX_512VL: CpuFeatures; // initializer: = 21
690
+
691
+ export declare const CPU_AVX_512VBMI2: CpuFeatures; // initializer: = 22
692
+
693
+ export declare const CPU_AVX_512VNNI: CpuFeatures; // initializer: = 23
694
+
695
+ export declare const CPU_AVX_512BITALG: CpuFeatures; // initializer: = 24
696
+
697
+ export declare const CPU_AVX_512VPOPCNTDQ: CpuFeatures; // initializer: = 25
698
+
699
+ export declare const CPU_AVX_5124VNNIW: CpuFeatures; // initializer: = 26
700
+
701
+ export declare const CPU_AVX_5124FMAPS: CpuFeatures; // initializer: = 27
702
+
703
+ export declare const CPU_NEON: CpuFeatures; // initializer: = 100
704
+
705
+ export declare const CPU_VSX: CpuFeatures; // initializer: = 200
706
+
707
+ export declare const CPU_VSX3: CpuFeatures; // initializer: = 201
708
+
709
+ export declare const CPU_AVX512_SKX: CpuFeatures; // initializer: = 256
710
+
711
+ export declare const CPU_AVX512_COMMON: CpuFeatures; // initializer: = 257
712
+
713
+ export declare const CPU_AVX512_KNL: CpuFeatures; // initializer: = 258
714
+
715
+ export declare const CPU_AVX512_KNM: CpuFeatures; // initializer: = 259
716
+
717
+ export declare const CPU_AVX512_CNL: CpuFeatures; // initializer: = 260
718
+
719
+ export declare const CPU_AVX512_CEL: CpuFeatures; // initializer: = 261
720
+
721
+ export declare const CPU_AVX512_ICL: CpuFeatures; // initializer: = 262
722
+
723
+ export declare const CPU_MAX_FEATURE: CpuFeatures; // initializer: = 512
724
+
725
+ export declare const SORT_EVERY_ROW: SortFlags; // initializer: = 0
726
+
727
+ /**
728
+ * each matrix column is sorted independently; this flag and the previous one are mutually exclusive.
729
+ *
730
+ */
731
+ export declare const SORT_EVERY_COLUMN: SortFlags; // initializer: = 1
732
+
733
+ /**
734
+ * each matrix row is sorted in the ascending order.
735
+ *
736
+ */
737
+ export declare const SORT_ASCENDING: SortFlags; // initializer: = 0
738
+
739
+ /**
740
+ * each matrix row is sorted in the descending order; this flag and the previous one are also mutually
741
+ * exclusive.
742
+ *
743
+ */
744
+ export declare const SORT_DESCENDING: SortFlags; // initializer: = 16
745
+
746
+ export type CpuFeatures = any;
747
+
748
+ export type SortFlags = any;