@techstark/opencv-js 4.8.0-release.6 → 4.8.0-release.8
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/README.md +127 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +18 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/types/_cv.d.ts +7 -0
- package/dist/src/types/_cv.js +3 -0
- package/dist/src/types/_cv.js.map +1 -0
- package/dist/src/types/emscripten.d.ts +166 -0
- package/dist/src/types/emscripten.js +4 -0
- package/dist/src/types/emscripten.js.map +1 -0
- package/dist/src/types/opencv/Affine3.d.ts +183 -0
- package/dist/src/types/opencv/Affine3.js +3 -0
- package/dist/src/types/opencv/Affine3.js.map +1 -0
- package/dist/src/types/opencv/Algorithm.d.ts +105 -0
- package/dist/src/types/opencv/Algorithm.js +4 -0
- package/dist/src/types/opencv/Algorithm.js.map +1 -0
- package/dist/src/types/opencv/AutoBuffer.d.ts +41 -0
- package/dist/src/types/opencv/AutoBuffer.js +3 -0
- package/dist/src/types/opencv/AutoBuffer.js.map +1 -0
- package/dist/src/types/opencv/BFMatcher.d.ts +33 -0
- package/dist/src/types/opencv/BFMatcher.js +3 -0
- package/dist/src/types/opencv/BFMatcher.js.map +1 -0
- package/dist/src/types/opencv/BOWTrainer.d.ts +36 -0
- package/dist/src/types/opencv/BOWTrainer.js +3 -0
- package/dist/src/types/opencv/BOWTrainer.js.map +1 -0
- package/dist/src/types/opencv/CascadeClassifier.d.ts +100 -0
- package/dist/src/types/opencv/CascadeClassifier.js +4 -0
- package/dist/src/types/opencv/CascadeClassifier.js.map +1 -0
- package/dist/src/types/opencv/DescriptorMatcher.d.ts +172 -0
- package/dist/src/types/opencv/DescriptorMatcher.js +3 -0
- package/dist/src/types/opencv/DescriptorMatcher.js.map +1 -0
- package/dist/src/types/opencv/DynamicBitset.d.ts +57 -0
- package/dist/src/types/opencv/DynamicBitset.js +3 -0
- package/dist/src/types/opencv/DynamicBitset.js.map +1 -0
- package/dist/src/types/opencv/Exception.d.ts +38 -0
- package/dist/src/types/opencv/Exception.js +3 -0
- package/dist/src/types/opencv/Exception.js.map +1 -0
- package/dist/src/types/opencv/Feature2D.d.ts +14 -0
- package/dist/src/types/opencv/Feature2D.js +4 -0
- package/dist/src/types/opencv/Feature2D.js.map +1 -0
- package/dist/src/types/opencv/FlannBasedMatcher.d.ts +41 -0
- package/dist/src/types/opencv/FlannBasedMatcher.js +3 -0
- package/dist/src/types/opencv/FlannBasedMatcher.js.map +1 -0
- package/dist/src/types/opencv/HOGDescriptor.d.ts +265 -0
- package/dist/src/types/opencv/HOGDescriptor.js +3 -0
- package/dist/src/types/opencv/HOGDescriptor.js.map +1 -0
- package/dist/src/types/opencv/Logger.d.ts +27 -0
- package/dist/src/types/opencv/Logger.js +3 -0
- package/dist/src/types/opencv/Logger.js.map +1 -0
- package/dist/src/types/opencv/LshTable.d.ts +67 -0
- package/dist/src/types/opencv/LshTable.js +3 -0
- package/dist/src/types/opencv/LshTable.js.map +1 -0
- package/dist/src/types/opencv/Mat.d.ts +1589 -0
- package/dist/src/types/opencv/Mat.js +3 -0
- package/dist/src/types/opencv/Mat.js.map +1 -0
- package/dist/src/types/opencv/MatExpr.d.ts +78 -0
- package/dist/src/types/opencv/MatExpr.js +4 -0
- package/dist/src/types/opencv/MatExpr.js.map +1 -0
- package/dist/src/types/opencv/MatOp.d.ts +29 -0
- package/dist/src/types/opencv/MatOp.js +3 -0
- package/dist/src/types/opencv/MatOp.js.map +1 -0
- package/dist/src/types/opencv/Matx.d.ts +84 -0
- package/dist/src/types/opencv/Matx.js +3 -0
- package/dist/src/types/opencv/Matx.js.map +1 -0
- package/dist/src/types/opencv/Node.d.ts +25 -0
- package/dist/src/types/opencv/Node.js +3 -0
- package/dist/src/types/opencv/Node.js.map +1 -0
- package/dist/src/types/opencv/ORB.d.ts +11 -0
- package/dist/src/types/opencv/ORB.js +4 -0
- package/dist/src/types/opencv/ORB.js.map +1 -0
- package/dist/src/types/opencv/PCA.d.ts +170 -0
- package/dist/src/types/opencv/PCA.js +3 -0
- package/dist/src/types/opencv/PCA.js.map +1 -0
- package/dist/src/types/opencv/RotatedRect.d.ts +63 -0
- package/dist/src/types/opencv/RotatedRect.js +3 -0
- package/dist/src/types/opencv/RotatedRect.js.map +1 -0
- package/dist/src/types/opencv/_hacks.d.ts +267 -0
- package/dist/src/types/opencv/_hacks.js +15 -0
- package/dist/src/types/opencv/_hacks.js.map +1 -0
- package/dist/src/types/opencv/_types.d.ts +44 -0
- package/dist/src/types/opencv/_types.js +61 -0
- package/dist/src/types/opencv/_types.js.map +1 -0
- package/dist/src/types/opencv/calib3d.d.ts +2180 -0
- package/dist/src/types/opencv/calib3d.js +3 -0
- package/dist/src/types/opencv/calib3d.js.map +1 -0
- package/dist/src/types/opencv/core_array.d.ts +2513 -0
- package/dist/src/types/opencv/core_array.js +3 -0
- package/dist/src/types/opencv/core_array.js.map +1 -0
- package/dist/src/types/opencv/core_cluster.d.ts +54 -0
- package/dist/src/types/opencv/core_cluster.js +3 -0
- package/dist/src/types/opencv/core_cluster.js.map +1 -0
- package/dist/src/types/opencv/core_hal_interface.d.ts +92 -0
- package/dist/src/types/opencv/core_hal_interface.js +3 -0
- package/dist/src/types/opencv/core_hal_interface.js.map +1 -0
- package/dist/src/types/opencv/core_utils.d.ts +510 -0
- package/dist/src/types/opencv/core_utils.js +3 -0
- package/dist/src/types/opencv/core_utils.js.map +1 -0
- package/dist/src/types/opencv/dnn.d.ts +336 -0
- package/dist/src/types/opencv/dnn.js +3 -0
- package/dist/src/types/opencv/dnn.js.map +1 -0
- package/dist/src/types/opencv/features2d_draw.d.ts +75 -0
- package/dist/src/types/opencv/features2d_draw.js +3 -0
- package/dist/src/types/opencv/features2d_draw.js.map +1 -0
- package/dist/src/types/opencv/imgproc_color_conversions.d.ts +299 -0
- package/dist/src/types/opencv/imgproc_color_conversions.js +3 -0
- package/dist/src/types/opencv/imgproc_color_conversions.js.map +1 -0
- package/dist/src/types/opencv/imgproc_draw.d.ts +502 -0
- package/dist/src/types/opencv/imgproc_draw.js +3 -0
- package/dist/src/types/opencv/imgproc_draw.js.map +1 -0
- package/dist/src/types/opencv/imgproc_feature.d.ts +533 -0
- package/dist/src/types/opencv/imgproc_feature.js +3 -0
- package/dist/src/types/opencv/imgproc_feature.js.map +1 -0
- package/dist/src/types/opencv/imgproc_filter.d.ts +689 -0
- package/dist/src/types/opencv/imgproc_filter.js +3 -0
- package/dist/src/types/opencv/imgproc_filter.js.map +1 -0
- package/dist/src/types/opencv/imgproc_hist.d.ts +291 -0
- package/dist/src/types/opencv/imgproc_hist.js +3 -0
- package/dist/src/types/opencv/imgproc_hist.js.map +1 -0
- package/dist/src/types/opencv/imgproc_misc.d.ts +473 -0
- package/dist/src/types/opencv/imgproc_misc.js +3 -0
- package/dist/src/types/opencv/imgproc_misc.js.map +1 -0
- package/dist/src/types/opencv/imgproc_object.d.ts +41 -0
- package/dist/src/types/opencv/imgproc_object.js +3 -0
- package/dist/src/types/opencv/imgproc_object.js.map +1 -0
- package/dist/src/types/opencv/imgproc_shape.d.ts +570 -0
- package/dist/src/types/opencv/imgproc_shape.js +3 -0
- package/dist/src/types/opencv/imgproc_shape.js.map +1 -0
- package/dist/src/types/opencv/imgproc_transform.d.ts +430 -0
- package/dist/src/types/opencv/imgproc_transform.js +3 -0
- package/dist/src/types/opencv/imgproc_transform.js.map +1 -0
- package/dist/src/types/opencv/index.d.ts +4 -0
- package/dist/src/types/opencv/index.js +19 -0
- package/dist/src/types/opencv/index.js.map +1 -0
- package/dist/src/types/opencv/objdetect.d.ts +43 -0
- package/dist/src/types/opencv/objdetect.js +3 -0
- package/dist/src/types/opencv/objdetect.js.map +1 -0
- package/dist/src/types/opencv/photo_inpaint.d.ts +25 -0
- package/dist/src/types/opencv/photo_inpaint.js +3 -0
- package/dist/src/types/opencv/photo_inpaint.js.map +1 -0
- package/dist/src/types/opencv/softdouble.d.ts +38 -0
- package/dist/src/types/opencv/softdouble.js +3 -0
- package/dist/src/types/opencv/softdouble.js.map +1 -0
- package/dist/src/types/opencv/softfloat.d.ts +38 -0
- package/dist/src/types/opencv/softfloat.js +3 -0
- package/dist/src/types/opencv/softfloat.js.map +1 -0
- package/dist/src/types/opencv/video_track.d.ts +276 -0
- package/dist/src/types/opencv/video_track.js +3 -0
- package/dist/src/types/opencv/video_track.js.map +1 -0
- package/package.json +5 -3
- package/src/index.ts +1 -0
- package/src/types/_cv.ts +6 -0
- package/src/types/emscripten.ts +286 -0
- package/src/types/opencv/Affine3.ts +206 -0
- package/src/types/opencv/Algorithm.ts +126 -0
- package/src/types/opencv/AutoBuffer.ts +50 -0
- package/src/types/opencv/BFMatcher.ts +37 -0
- package/src/types/opencv/BOWTrainer.ts +43 -0
- package/src/types/opencv/CascadeClassifier.ts +153 -0
- package/src/types/opencv/DescriptorMatcher.ts +244 -0
- package/src/types/opencv/DynamicBitset.ts +68 -0
- package/src/types/opencv/Exception.ts +54 -0
- package/src/types/opencv/Feature2D.ts +20 -0
- package/src/types/opencv/FlannBasedMatcher.ts +50 -0
- package/src/types/opencv/HOGDescriptor.ts +401 -0
- package/src/types/opencv/Logger.ts +34 -0
- package/src/types/opencv/LshTable.ts +81 -0
- package/src/types/opencv/Mat.ts +1764 -0
- package/src/types/opencv/MatExpr.ts +107 -0
- package/src/types/opencv/MatOp.ts +70 -0
- package/src/types/opencv/Matx.ts +228 -0
- package/src/types/opencv/Node.ts +33 -0
- package/src/types/opencv/ORB.ts +22 -0
- package/src/types/opencv/PCA.ts +204 -0
- package/src/types/opencv/RotatedRect.ts +72 -0
- package/src/types/opencv/_hacks.ts +322 -0
- package/src/types/opencv/_types.ts +44 -0
- package/src/types/opencv/calib3d.ts +2937 -0
- package/src/types/opencv/core_array.ts +3102 -0
- package/src/types/opencv/core_cluster.ts +81 -0
- package/src/types/opencv/core_hal_interface.ts +159 -0
- package/src/types/opencv/core_utils.ts +748 -0
- package/src/types/opencv/dnn.ts +505 -0
- package/src/types/opencv/features2d_draw.ts +114 -0
- package/src/types/opencv/imgproc_color_conversions.ts +527 -0
- package/src/types/opencv/imgproc_draw.ts +733 -0
- package/src/types/opencv/imgproc_feature.ts +681 -0
- package/src/types/opencv/imgproc_filter.ts +918 -0
- package/src/types/opencv/imgproc_hist.ts +399 -0
- package/src/types/opencv/imgproc_misc.ts +616 -0
- package/src/types/opencv/imgproc_object.ts +58 -0
- package/src/types/opencv/imgproc_shape.ts +734 -0
- package/src/types/opencv/imgproc_transform.ts +574 -0
- package/src/types/opencv/index.ts +4 -0
- package/src/types/opencv/objdetect.ts +103 -0
- package/src/types/opencv/photo_inpaint.ts +37 -0
- package/src/types/opencv/softdouble.ts +64 -0
- package/src/types/opencv/softfloat.ts +64 -0
- package/src/types/opencv/video_track.ts +372 -0
package/README.md
CHANGED
|
@@ -137,6 +137,7 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
137
137
|
"stdout",
|
|
138
138
|
"stderr",
|
|
139
139
|
"IntVector",
|
|
140
|
+
"CharVector",
|
|
140
141
|
"FloatVector",
|
|
141
142
|
"DoubleVector",
|
|
142
143
|
"PointVector",
|
|
@@ -157,6 +158,7 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
157
158
|
"CV_MAT_DEPTH",
|
|
158
159
|
"CamShift",
|
|
159
160
|
"meanShift",
|
|
161
|
+
"Tracker",
|
|
160
162
|
"getBuildInformation",
|
|
161
163
|
"Canny",
|
|
162
164
|
"Canny1",
|
|
@@ -281,6 +283,7 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
281
283
|
"polarToCart",
|
|
282
284
|
"polylines",
|
|
283
285
|
"pow",
|
|
286
|
+
"projectPoints",
|
|
284
287
|
"putText",
|
|
285
288
|
"pyrDown",
|
|
286
289
|
"pyrUp",
|
|
@@ -316,6 +319,12 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
316
319
|
"warpPerspective",
|
|
317
320
|
"warpPolar",
|
|
318
321
|
"watershed",
|
|
322
|
+
"drawDetectedCornersCharuco",
|
|
323
|
+
"drawDetectedDiamonds",
|
|
324
|
+
"drawDetectedMarkers",
|
|
325
|
+
"extendDictionary",
|
|
326
|
+
"generateImageMarker",
|
|
327
|
+
"getPredefinedDictionary",
|
|
319
328
|
"blobFromImage",
|
|
320
329
|
"readNet",
|
|
321
330
|
"readNet1",
|
|
@@ -325,9 +334,13 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
325
334
|
"readNetFromDarknet1",
|
|
326
335
|
"readNetFromONNX",
|
|
327
336
|
"readNetFromONNX1",
|
|
337
|
+
"readNetFromTFLite",
|
|
338
|
+
"readNetFromTFLite1",
|
|
328
339
|
"readNetFromTensorflow",
|
|
329
340
|
"readNetFromTensorflow1",
|
|
330
341
|
"readNetFromTorch",
|
|
342
|
+
"fisheye_initUndistortRectifyMap",
|
|
343
|
+
"fisheye_projectPoints",
|
|
331
344
|
"AKAZE",
|
|
332
345
|
"AgastFeatureDetector",
|
|
333
346
|
"Algorithm",
|
|
@@ -345,6 +358,7 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
345
358
|
"FastFeatureDetector",
|
|
346
359
|
"Feature2D",
|
|
347
360
|
"GFTTDetector",
|
|
361
|
+
"GraphicalCodeDetector",
|
|
348
362
|
"HOGDescriptor",
|
|
349
363
|
"KAZE",
|
|
350
364
|
"MSER",
|
|
@@ -354,10 +368,24 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
354
368
|
"MergeRobertson",
|
|
355
369
|
"ORB",
|
|
356
370
|
"QRCodeDetector",
|
|
371
|
+
"QRCodeDetectorAruco",
|
|
372
|
+
"QRCodeDetectorAruco_Params",
|
|
357
373
|
"Tonemap",
|
|
358
374
|
"TonemapDrago",
|
|
359
375
|
"TonemapMantiuk",
|
|
360
376
|
"TonemapReinhard",
|
|
377
|
+
"TrackerMIL",
|
|
378
|
+
"TrackerMIL_Params",
|
|
379
|
+
"aruco_ArucoDetector",
|
|
380
|
+
"aruco_Board",
|
|
381
|
+
"aruco_CharucoBoard",
|
|
382
|
+
"aruco_CharucoDetector",
|
|
383
|
+
"aruco_CharucoParameters",
|
|
384
|
+
"aruco_DetectorParameters",
|
|
385
|
+
"aruco_Dictionary",
|
|
386
|
+
"aruco_GridBoard",
|
|
387
|
+
"aruco_RefineParameters",
|
|
388
|
+
"barcode_BarcodeDetector",
|
|
361
389
|
"dnn_Net",
|
|
362
390
|
"segmentation_IntelligentScissorsMB",
|
|
363
391
|
"CV_8UC1",
|
|
@@ -560,6 +588,15 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
560
588
|
"COLOR_BayerBG2RGBA",
|
|
561
589
|
"COLOR_BayerBG2RGB_EA",
|
|
562
590
|
"COLOR_BayerBG2RGB_VNG",
|
|
591
|
+
"COLOR_BayerBGGR2BGR",
|
|
592
|
+
"COLOR_BayerBGGR2BGRA",
|
|
593
|
+
"COLOR_BayerBGGR2BGR_EA",
|
|
594
|
+
"COLOR_BayerBGGR2BGR_VNG",
|
|
595
|
+
"COLOR_BayerBGGR2GRAY",
|
|
596
|
+
"COLOR_BayerBGGR2RGB",
|
|
597
|
+
"COLOR_BayerBGGR2RGBA",
|
|
598
|
+
"COLOR_BayerBGGR2RGB_EA",
|
|
599
|
+
"COLOR_BayerBGGR2RGB_VNG",
|
|
563
600
|
"COLOR_BayerGB2BGR",
|
|
564
601
|
"COLOR_BayerGB2BGRA",
|
|
565
602
|
"COLOR_BayerGB2BGR_EA",
|
|
@@ -569,6 +606,15 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
569
606
|
"COLOR_BayerGB2RGBA",
|
|
570
607
|
"COLOR_BayerGB2RGB_EA",
|
|
571
608
|
"COLOR_BayerGB2RGB_VNG",
|
|
609
|
+
"COLOR_BayerGBRG2BGR",
|
|
610
|
+
"COLOR_BayerGBRG2BGRA",
|
|
611
|
+
"COLOR_BayerGBRG2BGR_EA",
|
|
612
|
+
"COLOR_BayerGBRG2BGR_VNG",
|
|
613
|
+
"COLOR_BayerGBRG2GRAY",
|
|
614
|
+
"COLOR_BayerGBRG2RGB",
|
|
615
|
+
"COLOR_BayerGBRG2RGBA",
|
|
616
|
+
"COLOR_BayerGBRG2RGB_EA",
|
|
617
|
+
"COLOR_BayerGBRG2RGB_VNG",
|
|
572
618
|
"COLOR_BayerGR2BGR",
|
|
573
619
|
"COLOR_BayerGR2BGRA",
|
|
574
620
|
"COLOR_BayerGR2BGR_EA",
|
|
@@ -578,6 +624,15 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
578
624
|
"COLOR_BayerGR2RGBA",
|
|
579
625
|
"COLOR_BayerGR2RGB_EA",
|
|
580
626
|
"COLOR_BayerGR2RGB_VNG",
|
|
627
|
+
"COLOR_BayerGRBG2BGR",
|
|
628
|
+
"COLOR_BayerGRBG2BGRA",
|
|
629
|
+
"COLOR_BayerGRBG2BGR_EA",
|
|
630
|
+
"COLOR_BayerGRBG2BGR_VNG",
|
|
631
|
+
"COLOR_BayerGRBG2GRAY",
|
|
632
|
+
"COLOR_BayerGRBG2RGB",
|
|
633
|
+
"COLOR_BayerGRBG2RGBA",
|
|
634
|
+
"COLOR_BayerGRBG2RGB_EA",
|
|
635
|
+
"COLOR_BayerGRBG2RGB_VNG",
|
|
581
636
|
"COLOR_BayerRG2BGR",
|
|
582
637
|
"COLOR_BayerRG2BGRA",
|
|
583
638
|
"COLOR_BayerRG2BGR_EA",
|
|
@@ -587,6 +642,15 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
587
642
|
"COLOR_BayerRG2RGBA",
|
|
588
643
|
"COLOR_BayerRG2RGB_EA",
|
|
589
644
|
"COLOR_BayerRG2RGB_VNG",
|
|
645
|
+
"COLOR_BayerRGGB2BGR",
|
|
646
|
+
"COLOR_BayerRGGB2BGRA",
|
|
647
|
+
"COLOR_BayerRGGB2BGR_EA",
|
|
648
|
+
"COLOR_BayerRGGB2BGR_VNG",
|
|
649
|
+
"COLOR_BayerRGGB2GRAY",
|
|
650
|
+
"COLOR_BayerRGGB2RGB",
|
|
651
|
+
"COLOR_BayerRGGB2RGBA",
|
|
652
|
+
"COLOR_BayerRGGB2RGB_EA",
|
|
653
|
+
"COLOR_BayerRGGB2RGB_VNG",
|
|
590
654
|
"COLOR_COLORCVT_MAX",
|
|
591
655
|
"COLOR_GRAY2BGR",
|
|
592
656
|
"COLOR_GRAY2BGR555",
|
|
@@ -729,6 +793,7 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
729
793
|
"COVAR_SCALE",
|
|
730
794
|
"COVAR_SCRAMBLED",
|
|
731
795
|
"COVAR_USE_AVG",
|
|
796
|
+
"COV_POLISHER",
|
|
732
797
|
"CirclesGridFinderParameters_ASYMMETRIC_GRID",
|
|
733
798
|
"CirclesGridFinderParameters_SYMMETRIC_GRID",
|
|
734
799
|
"DCT_INVERSE",
|
|
@@ -788,6 +853,8 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
788
853
|
"FONT_HERSHEY_SIMPLEX",
|
|
789
854
|
"FONT_HERSHEY_TRIPLEX",
|
|
790
855
|
"FONT_ITALIC",
|
|
856
|
+
"FaceRecognizerSF_FR_COSINE",
|
|
857
|
+
"FaceRecognizerSF_FR_NORM_L2",
|
|
791
858
|
"FastFeatureDetector_FAST_N",
|
|
792
859
|
"FastFeatureDetector_NONMAX_SUPPRESSION",
|
|
793
860
|
"FastFeatureDetector_THRESHOLD",
|
|
@@ -892,6 +959,8 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
892
959
|
"LSD_REFINE_ADV",
|
|
893
960
|
"LSD_REFINE_NONE",
|
|
894
961
|
"LSD_REFINE_STD",
|
|
962
|
+
"LSQ_POLISHER",
|
|
963
|
+
"MAGSAC",
|
|
895
964
|
"MARKER_CROSS",
|
|
896
965
|
"MARKER_DIAMOND",
|
|
897
966
|
"MARKER_SQUARE",
|
|
@@ -926,6 +995,7 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
926
995
|
"NEIGH_FLANN_KNN",
|
|
927
996
|
"NEIGH_FLANN_RADIUS",
|
|
928
997
|
"NEIGH_GRID",
|
|
998
|
+
"NONE_POLISHER",
|
|
929
999
|
"NORMAL_CLONE",
|
|
930
1000
|
"NORMCONV_FILTER",
|
|
931
1001
|
"NORM_HAMMING",
|
|
@@ -959,6 +1029,18 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
959
1029
|
"Param_UCHAR",
|
|
960
1030
|
"Param_UINT64",
|
|
961
1031
|
"Param_UNSIGNED_INT",
|
|
1032
|
+
"QRCodeEncoder_CORRECT_LEVEL_H",
|
|
1033
|
+
"QRCodeEncoder_CORRECT_LEVEL_L",
|
|
1034
|
+
"QRCodeEncoder_CORRECT_LEVEL_M",
|
|
1035
|
+
"QRCodeEncoder_CORRECT_LEVEL_Q",
|
|
1036
|
+
"QRCodeEncoder_ECI_UTF8",
|
|
1037
|
+
"QRCodeEncoder_MODE_ALPHANUMERIC",
|
|
1038
|
+
"QRCodeEncoder_MODE_AUTO",
|
|
1039
|
+
"QRCodeEncoder_MODE_BYTE",
|
|
1040
|
+
"QRCodeEncoder_MODE_ECI",
|
|
1041
|
+
"QRCodeEncoder_MODE_KANJI",
|
|
1042
|
+
"QRCodeEncoder_MODE_NUMERIC",
|
|
1043
|
+
"QRCodeEncoder_MODE_STRUCTURED_APPEND",
|
|
962
1044
|
"QUAT_ASSUME_NOT_UNIT",
|
|
963
1045
|
"QUAT_ASSUME_UNIT",
|
|
964
1046
|
"QuatEnum_EULER_ANGLES_MAX_VALUE",
|
|
@@ -992,6 +1074,7 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
992
1074
|
"REDUCE_MAX",
|
|
993
1075
|
"REDUCE_MIN",
|
|
994
1076
|
"REDUCE_SUM",
|
|
1077
|
+
"REDUCE_SUM2",
|
|
995
1078
|
"RETR_CCOMP",
|
|
996
1079
|
"RETR_EXTERNAL",
|
|
997
1080
|
"RETR_FLOODFILL",
|
|
@@ -1011,6 +1094,7 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
1011
1094
|
"SCORE_METHOD_MAGSAC",
|
|
1012
1095
|
"SCORE_METHOD_MSAC",
|
|
1013
1096
|
"SCORE_METHOD_RANSAC",
|
|
1097
|
+
"SOLVELP_LOST",
|
|
1014
1098
|
"SOLVELP_MULTI",
|
|
1015
1099
|
"SOLVELP_SINGLE",
|
|
1016
1100
|
"SOLVELP_UNBOUNDED",
|
|
@@ -1192,6 +1276,32 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
1192
1276
|
"StsUnmatchedSizes",
|
|
1193
1277
|
"StsUnsupportedFormat",
|
|
1194
1278
|
"StsVecLengthErr",
|
|
1279
|
+
"CORNER_REFINE_APRILTAG",
|
|
1280
|
+
"CORNER_REFINE_CONTOUR",
|
|
1281
|
+
"CORNER_REFINE_NONE",
|
|
1282
|
+
"CORNER_REFINE_SUBPIX",
|
|
1283
|
+
"DICT_4X4_100",
|
|
1284
|
+
"DICT_4X4_1000",
|
|
1285
|
+
"DICT_4X4_250",
|
|
1286
|
+
"DICT_4X4_50",
|
|
1287
|
+
"DICT_5X5_100",
|
|
1288
|
+
"DICT_5X5_1000",
|
|
1289
|
+
"DICT_5X5_250",
|
|
1290
|
+
"DICT_5X5_50",
|
|
1291
|
+
"DICT_6X6_100",
|
|
1292
|
+
"DICT_6X6_1000",
|
|
1293
|
+
"DICT_6X6_250",
|
|
1294
|
+
"DICT_6X6_50",
|
|
1295
|
+
"DICT_7X7_100",
|
|
1296
|
+
"DICT_7X7_1000",
|
|
1297
|
+
"DICT_7X7_250",
|
|
1298
|
+
"DICT_7X7_50",
|
|
1299
|
+
"DICT_APRILTAG_16h5",
|
|
1300
|
+
"DICT_APRILTAG_25h9",
|
|
1301
|
+
"DICT_APRILTAG_36h10",
|
|
1302
|
+
"DICT_APRILTAG_36h11",
|
|
1303
|
+
"DICT_ARUCO_MIP_36h12",
|
|
1304
|
+
"DICT_ARUCO_ORIGINAL",
|
|
1195
1305
|
"TEST_CUSTOM",
|
|
1196
1306
|
"TEST_EQ",
|
|
1197
1307
|
"TEST_GE",
|
|
@@ -1204,21 +1314,38 @@ Object.keys(cv).filter((key) => !key.includes("dynCall"));
|
|
|
1204
1314
|
"TrackerSamplerCSC_MODE_INIT_POS",
|
|
1205
1315
|
"TrackerSamplerCSC_MODE_TRACK_NEG",
|
|
1206
1316
|
"TrackerSamplerCSC_MODE_TRACK_POS",
|
|
1317
|
+
"DNN_BACKEND_CANN",
|
|
1207
1318
|
"DNN_BACKEND_CUDA",
|
|
1208
1319
|
"DNN_BACKEND_DEFAULT",
|
|
1209
1320
|
"DNN_BACKEND_HALIDE",
|
|
1210
1321
|
"DNN_BACKEND_INFERENCE_ENGINE",
|
|
1211
1322
|
"DNN_BACKEND_OPENCV",
|
|
1323
|
+
"DNN_BACKEND_TIMVX",
|
|
1212
1324
|
"DNN_BACKEND_VKCOM",
|
|
1325
|
+
"DNN_BACKEND_WEBNN",
|
|
1326
|
+
"DNN_LAYOUT_NCDHW",
|
|
1327
|
+
"DNN_LAYOUT_NCHW",
|
|
1328
|
+
"DNN_LAYOUT_ND",
|
|
1329
|
+
"DNN_LAYOUT_NDHWC",
|
|
1330
|
+
"DNN_LAYOUT_NHWC",
|
|
1331
|
+
"DNN_LAYOUT_PLANAR",
|
|
1332
|
+
"DNN_LAYOUT_UNKNOWN",
|
|
1333
|
+
"DNN_PMODE_CROP_CENTER",
|
|
1334
|
+
"DNN_PMODE_LETTERBOX",
|
|
1335
|
+
"DNN_PMODE_NULL",
|
|
1213
1336
|
"DNN_TARGET_CPU",
|
|
1337
|
+
"DNN_TARGET_CPU_FP16",
|
|
1214
1338
|
"DNN_TARGET_CUDA",
|
|
1215
1339
|
"DNN_TARGET_CUDA_FP16",
|
|
1216
1340
|
"DNN_TARGET_FPGA",
|
|
1217
1341
|
"DNN_TARGET_HDDL",
|
|
1218
1342
|
"DNN_TARGET_MYRIAD",
|
|
1343
|
+
"DNN_TARGET_NPU",
|
|
1219
1344
|
"DNN_TARGET_OPENCL",
|
|
1220
1345
|
"DNN_TARGET_OPENCL_FP16",
|
|
1221
1346
|
"DNN_TARGET_VULKAN",
|
|
1347
|
+
"SoftNMSMethod_SOFTNMS_GAUSSIAN",
|
|
1348
|
+
"SoftNMSMethod_SOFTNMS_LINEAR",
|
|
1222
1349
|
"CALIB_CHECK_COND",
|
|
1223
1350
|
"CALIB_FIX_SKEW",
|
|
1224
1351
|
"CALIB_RECOMPUTE_EXTRINSIC",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types/opencv";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types/opencv"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_cv.js","sourceRoot":"","sources":["../../../src/types/_cv.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
interface Lookup {
|
|
2
|
+
path: string;
|
|
3
|
+
node: FSNode;
|
|
4
|
+
}
|
|
5
|
+
interface FSStream {
|
|
6
|
+
}
|
|
7
|
+
interface FSNode {
|
|
8
|
+
}
|
|
9
|
+
export interface FS {
|
|
10
|
+
lookupPath(path: string, opts: any): Lookup;
|
|
11
|
+
getPath(node: FSNode): string;
|
|
12
|
+
isFile(mode: number): boolean;
|
|
13
|
+
isDir(mode: number): boolean;
|
|
14
|
+
isLink(mode: number): boolean;
|
|
15
|
+
isChrdev(mode: number): boolean;
|
|
16
|
+
isBlkdev(mode: number): boolean;
|
|
17
|
+
isFIFO(mode: number): boolean;
|
|
18
|
+
isSocket(mode: number): boolean;
|
|
19
|
+
major(dev: number): number;
|
|
20
|
+
minor(dev: number): number;
|
|
21
|
+
makedev(ma: number, mi: number): number;
|
|
22
|
+
registerDevice(dev: number, ops: any): void;
|
|
23
|
+
syncfs(populate: boolean, callback: (e: any) => any): void;
|
|
24
|
+
syncfs(callback: (e: any) => any, populate?: boolean): void;
|
|
25
|
+
mount(type: any, opts: any, mountpoint: string): any;
|
|
26
|
+
unmount(mountpoint: string): void;
|
|
27
|
+
mkdir(path: string, mode?: number): any;
|
|
28
|
+
mkdev(path: string, mode?: number, dev?: number): any;
|
|
29
|
+
symlink(oldpath: string, newpath: string): any;
|
|
30
|
+
rename(old_path: string, new_path: string): void;
|
|
31
|
+
rmdir(path: string): void;
|
|
32
|
+
readdir(path: string): string[];
|
|
33
|
+
unlink(path: string): void;
|
|
34
|
+
readlink(path: string): string;
|
|
35
|
+
stat(path: string, dontFollow?: boolean): any;
|
|
36
|
+
lstat(path: string): any;
|
|
37
|
+
chmod(path: string, mode: number, dontFollow?: boolean): void;
|
|
38
|
+
lchmod(path: string, mode: number): void;
|
|
39
|
+
fchmod(fd: number, mode: number): void;
|
|
40
|
+
chown(path: string, uid: number, gid: number, dontFollow?: boolean): void;
|
|
41
|
+
lchown(path: string, uid: number, gid: number): void;
|
|
42
|
+
fchown(fd: number, uid: number, gid: number): void;
|
|
43
|
+
truncate(path: string, len: number): void;
|
|
44
|
+
ftruncate(fd: number, len: number): void;
|
|
45
|
+
utime(path: string, atime: number, mtime: number): void;
|
|
46
|
+
open(path: string, flags: string, mode?: number, fd_start?: number, fd_end?: number): FSStream;
|
|
47
|
+
close(stream: FSStream): void;
|
|
48
|
+
llseek(stream: FSStream, offset: number, whence: number): any;
|
|
49
|
+
read(stream: FSStream, buffer: ArrayBufferView, offset: number, length: number, position?: number): number;
|
|
50
|
+
write(stream: FSStream, buffer: ArrayBufferView, offset: number, length: number, position?: number, canOwn?: boolean): number;
|
|
51
|
+
allocate(stream: FSStream, offset: number, length: number): void;
|
|
52
|
+
mmap(stream: FSStream, buffer: ArrayBufferView, offset: number, length: number, position: number, prot: number, flags: number): any;
|
|
53
|
+
ioctl(stream: FSStream, cmd: any, arg: any): any;
|
|
54
|
+
readFile(path: string, opts?: {
|
|
55
|
+
encoding: string;
|
|
56
|
+
flags: string;
|
|
57
|
+
}): ArrayBufferView;
|
|
58
|
+
writeFile(path: string, data: ArrayBufferView, opts?: {
|
|
59
|
+
encoding: string;
|
|
60
|
+
flags: string;
|
|
61
|
+
}): void;
|
|
62
|
+
writeFile(path: string, data: string, opts?: {
|
|
63
|
+
encoding: string;
|
|
64
|
+
flags: string;
|
|
65
|
+
}): void;
|
|
66
|
+
analyzePath(p: string): any;
|
|
67
|
+
cwd(): string;
|
|
68
|
+
chdir(path: string): void;
|
|
69
|
+
init(input: () => number, output: (c: number) => any, error: (c: number) => any): void;
|
|
70
|
+
createLazyFile(parent: string, name: string, url: string, canRead: boolean, canWrite: boolean): FSNode;
|
|
71
|
+
createLazyFile(parent: FSNode, name: string, url: string, canRead: boolean, canWrite: boolean): FSNode;
|
|
72
|
+
createPreloadedFile(parent: string, name: string, url: string, canRead: boolean, canWrite: boolean, onload?: () => void, onerror?: () => void, dontCreateFile?: boolean, canOwn?: boolean): void;
|
|
73
|
+
createPreloadedFile(parent: FSNode, name: string, url: string, canRead: boolean, canWrite: boolean, onload?: () => void, onerror?: () => void, dontCreateFile?: boolean, canOwn?: boolean): void;
|
|
74
|
+
createDataFile(parent: string, name: string, data: ArrayBufferView, canRead: boolean, canWrite: boolean, canOwn: boolean): void;
|
|
75
|
+
}
|
|
76
|
+
export interface EmscriptenModule {
|
|
77
|
+
print(str: string): void;
|
|
78
|
+
printErr(str: string): void;
|
|
79
|
+
arguments: string[];
|
|
80
|
+
environment: EnvironmentType;
|
|
81
|
+
preInit: Array<{
|
|
82
|
+
(): void;
|
|
83
|
+
}>;
|
|
84
|
+
preRun: Array<{
|
|
85
|
+
(): void;
|
|
86
|
+
}>;
|
|
87
|
+
postRun: Array<{
|
|
88
|
+
(): void;
|
|
89
|
+
}>;
|
|
90
|
+
onAbort: {
|
|
91
|
+
(what: any): void;
|
|
92
|
+
};
|
|
93
|
+
onRuntimeInitialized: {
|
|
94
|
+
(): void;
|
|
95
|
+
};
|
|
96
|
+
preinitializedWebGLContext: WebGLRenderingContext;
|
|
97
|
+
noInitialRun: boolean;
|
|
98
|
+
noExitRuntime: boolean;
|
|
99
|
+
logReadFiles: boolean;
|
|
100
|
+
filePackagePrefixURL: string;
|
|
101
|
+
wasmBinary: ArrayBuffer;
|
|
102
|
+
destroy(object: object): void;
|
|
103
|
+
getPreloadedPackage(remotePackageName: string, remotePackageSize: number): ArrayBuffer;
|
|
104
|
+
instantiateWasm(imports: WebAssemblyImports, successCallback: (module: WebAssemblyModule) => void): WebAssemblyExports;
|
|
105
|
+
locateFile(url: string): string;
|
|
106
|
+
onCustomMessage(event: MessageEvent): void;
|
|
107
|
+
Runtime: any;
|
|
108
|
+
ccall(ident: string, returnType: ValueType | null, argTypes: ValueType[], args: TypeCompatibleWithC[], opts?: CCallOpts): any;
|
|
109
|
+
cwrap(ident: string, returnType: ValueType | null, argTypes: ValueType[], opts?: CCallOpts): (...args: any[]) => any;
|
|
110
|
+
setValue(ptr: number, value: any, type: string, noSafe?: boolean): void;
|
|
111
|
+
getValue(ptr: number, type: string, noSafe?: boolean): number;
|
|
112
|
+
ALLOC_NORMAL: number;
|
|
113
|
+
ALLOC_STACK: number;
|
|
114
|
+
ALLOC_STATIC: number;
|
|
115
|
+
ALLOC_DYNAMIC: number;
|
|
116
|
+
ALLOC_NONE: number;
|
|
117
|
+
allocate(slab: any, types: string | string[], allocator: number, ptr: number): number;
|
|
118
|
+
HEAP: Int32Array;
|
|
119
|
+
IHEAP: Int32Array;
|
|
120
|
+
FHEAP: Float64Array;
|
|
121
|
+
HEAP8: Int8Array;
|
|
122
|
+
HEAP16: Int16Array;
|
|
123
|
+
HEAP32: Int32Array;
|
|
124
|
+
HEAPU8: Uint8Array;
|
|
125
|
+
HEAPU16: Uint16Array;
|
|
126
|
+
HEAPU32: Uint32Array;
|
|
127
|
+
HEAPF32: Float32Array;
|
|
128
|
+
HEAPF64: Float64Array;
|
|
129
|
+
TOTAL_STACK: number;
|
|
130
|
+
TOTAL_MEMORY: number;
|
|
131
|
+
FAST_MEMORY: number;
|
|
132
|
+
addOnPreRun(cb: () => any): void;
|
|
133
|
+
addOnInit(cb: () => any): void;
|
|
134
|
+
addOnPreMain(cb: () => any): void;
|
|
135
|
+
addOnExit(cb: () => any): void;
|
|
136
|
+
addOnPostRun(cb: () => any): void;
|
|
137
|
+
intArrayFromString(stringy: string, dontAddNull?: boolean, length?: number): number[];
|
|
138
|
+
intArrayToString(array: number[]): string;
|
|
139
|
+
writeStringToMemory(str: string, buffer: number, dontAddNull: boolean): void;
|
|
140
|
+
writeArrayToMemory(array: number[], buffer: number): void;
|
|
141
|
+
writeAsciiToMemory(str: string, buffer: number, dontAddNull: boolean): void;
|
|
142
|
+
addRunDependency(id: any): void;
|
|
143
|
+
removeRunDependency(id: any): void;
|
|
144
|
+
preloadedImages: any;
|
|
145
|
+
preloadedAudios: any;
|
|
146
|
+
_malloc(size: number): number;
|
|
147
|
+
_free(ptr: number): void;
|
|
148
|
+
}
|
|
149
|
+
type EnvironmentType = "WEB" | "NODE" | "SHELL" | "WORKER";
|
|
150
|
+
type ValueType = "number" | "string" | "array" | "boolean";
|
|
151
|
+
type TypeCompatibleWithC = number | string | any[] | boolean;
|
|
152
|
+
type WebAssemblyImports = Array<{
|
|
153
|
+
name: string;
|
|
154
|
+
kind: string;
|
|
155
|
+
}>;
|
|
156
|
+
type WebAssemblyExports = Array<{
|
|
157
|
+
module: string;
|
|
158
|
+
name: string;
|
|
159
|
+
kind: string;
|
|
160
|
+
}>;
|
|
161
|
+
interface CCallOpts {
|
|
162
|
+
async?: boolean;
|
|
163
|
+
}
|
|
164
|
+
interface WebAssemblyModule {
|
|
165
|
+
}
|
|
166
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emscripten.js","sourceRoot":"","sources":["../../../src/types/emscripten.ts"],"names":[],"mappings":";;AA6RA,IAAI"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { float_type, int, Mat, Mat3, Mat4, Vec3 } from "./_types";
|
|
2
|
+
/**
|
|
3
|
+
* It represents a 4x4 homogeneous transformation matrix `$T$`
|
|
4
|
+
*
|
|
5
|
+
* `\\[T = \\begin{bmatrix} R & t\\\\ 0 & 1\\\\ \\end{bmatrix} \\]`
|
|
6
|
+
*
|
|
7
|
+
* where `$R$` is a 3x3 rotation matrix and `$t$` is a 3x1 translation vector.
|
|
8
|
+
*
|
|
9
|
+
* You can specify `$R$` either by a 3x3 rotation matrix or by a 3x1 rotation vector, which is
|
|
10
|
+
* converted to a 3x3 rotation matrix by the Rodrigues formula.
|
|
11
|
+
*
|
|
12
|
+
* To construct a matrix `$T$` representing first rotation around the axis `$r$` with rotation angle
|
|
13
|
+
* `$|r|$` in radian (right hand rule) and then translation by the vector `$t$`, you can use
|
|
14
|
+
*
|
|
15
|
+
* ```cpp
|
|
16
|
+
* cv::Vec3f r, t;
|
|
17
|
+
* cv::Affine3f T(r, t);
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* If you already have the rotation matrix `$R$`, then you can use
|
|
21
|
+
*
|
|
22
|
+
* ```cpp
|
|
23
|
+
* cv::Matx33f R;
|
|
24
|
+
* cv::Affine3f T(R, t);
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* To extract the rotation matrix `$R$` from `$T$`, use
|
|
28
|
+
*
|
|
29
|
+
* ```cpp
|
|
30
|
+
* cv::Matx33f R = T.rotation();
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* To extract the translation vector `$t$` from `$T$`, use
|
|
34
|
+
*
|
|
35
|
+
* ```cpp
|
|
36
|
+
* cv::Vec3f t = T.translation();
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* To extract the rotation vector `$r$` from `$T$`, use
|
|
40
|
+
*
|
|
41
|
+
* ```cpp
|
|
42
|
+
* cv::Vec3f r = T.rvec();
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* Note that since the mapping from rotation vectors to rotation matrices is many to one. The returned
|
|
46
|
+
* rotation vector is not necessarily the one you used before to set the matrix.
|
|
47
|
+
*
|
|
48
|
+
* If you have two transformations `$T = T_1 * T_2$`, use
|
|
49
|
+
*
|
|
50
|
+
* ```cpp
|
|
51
|
+
* cv::Affine3f T, T1, T2;
|
|
52
|
+
* T = T2.concatenate(T1);
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* To get the inverse transform of `$T$`, use
|
|
56
|
+
*
|
|
57
|
+
* ```cpp
|
|
58
|
+
* cv::Affine3f T, T_inv;
|
|
59
|
+
* T_inv = T.inv();
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* Source:
|
|
63
|
+
* [opencv2/core/affine.hpp](https://github.com/opencv/opencv/tree/master/modules/core/include/opencv2/core/affine.hpp#L129).
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
export declare class Affine3 {
|
|
67
|
+
matrix: Mat4;
|
|
68
|
+
constructor();
|
|
69
|
+
constructor(affine: Mat4);
|
|
70
|
+
/**
|
|
71
|
+
* The resulting 4x4 matrix is
|
|
72
|
+
*
|
|
73
|
+
* `\\[ \\begin{bmatrix} R & t\\\\ 0 & 1\\\\ \\end{bmatrix} \\]`
|
|
74
|
+
*
|
|
75
|
+
* @param R 3x3 rotation matrix.
|
|
76
|
+
*
|
|
77
|
+
* @param t 3x1 translation vector.
|
|
78
|
+
*/
|
|
79
|
+
constructor(R: Mat3, t?: Vec3);
|
|
80
|
+
/**
|
|
81
|
+
* Rodrigues vector.
|
|
82
|
+
*
|
|
83
|
+
* The last row of the current matrix is set to [0,0,0,1].
|
|
84
|
+
*
|
|
85
|
+
* @param rvec 3x1 rotation vector. Its direction indicates the rotation axis and its length
|
|
86
|
+
* indicates the rotation angle in radian (using right hand rule).
|
|
87
|
+
*
|
|
88
|
+
* @param t 3x1 translation vector.
|
|
89
|
+
*/
|
|
90
|
+
constructor(rvec: Vec3, t?: Vec3);
|
|
91
|
+
/**
|
|
92
|
+
* Combines all constructors above. Supports 4x4, 3x4, 3x3, 1x3, 3x1 sizes of data matrix.
|
|
93
|
+
*
|
|
94
|
+
* The last row of the current matrix is set to [0,0,0,1] when data is not 4x4.
|
|
95
|
+
*
|
|
96
|
+
* @param data 1-channel matrix. when it is 4x4, it is copied to the current matrix and t is not
|
|
97
|
+
* used. When it is 3x4, it is copied to the upper part 3x4 of the current matrix and t is not used.
|
|
98
|
+
* When it is 3x3, it is copied to the upper left 3x3 part of the current matrix. When it is 3x1 or
|
|
99
|
+
* 1x3, it is treated as a rotation vector and the Rodrigues formula is used to compute a 3x3 rotation
|
|
100
|
+
* matrix.
|
|
101
|
+
*
|
|
102
|
+
* @param t 3x1 translation vector. It is used only when data is neither 4x4 nor 3x4.
|
|
103
|
+
*/
|
|
104
|
+
constructor(data: Mat, t?: Vec3);
|
|
105
|
+
constructor(vals: float_type);
|
|
106
|
+
cast(arg401: any): Affine3;
|
|
107
|
+
concatenate(affine: Affine3): Affine3;
|
|
108
|
+
/**
|
|
109
|
+
* the inverse of the current matrix.
|
|
110
|
+
*/
|
|
111
|
+
inv(method?: int): Affine3;
|
|
112
|
+
/**
|
|
113
|
+
* Copy the 3x3 matrix L to the upper left part of the current matrix
|
|
114
|
+
*
|
|
115
|
+
* It sets the upper left 3x3 part of the matrix. The remaining part is unaffected.
|
|
116
|
+
*
|
|
117
|
+
* @param L 3x3 matrix.
|
|
118
|
+
*/
|
|
119
|
+
linear(L: Mat3): Mat3;
|
|
120
|
+
/**
|
|
121
|
+
* the upper left 3x3 part
|
|
122
|
+
*/
|
|
123
|
+
linear(): Mat3;
|
|
124
|
+
rotate(R: Mat3): Affine3;
|
|
125
|
+
rotate(rvec: Vec3): Affine3;
|
|
126
|
+
/**
|
|
127
|
+
* Rotation matrix.
|
|
128
|
+
*
|
|
129
|
+
* Copy the rotation matrix to the upper left 3x3 part of the current matrix. The remaining elements
|
|
130
|
+
* of the current matrix are not changed.
|
|
131
|
+
*
|
|
132
|
+
* @param R 3x3 rotation matrix.
|
|
133
|
+
*/
|
|
134
|
+
rotation(R: Mat3): Mat3;
|
|
135
|
+
/**
|
|
136
|
+
* Rodrigues vector.
|
|
137
|
+
*
|
|
138
|
+
* It sets the upper left 3x3 part of the matrix. The remaining part is unaffected.
|
|
139
|
+
*
|
|
140
|
+
* @param rvec 3x1 rotation vector. The direction indicates the rotation axis and its length
|
|
141
|
+
* indicates the rotation angle in radian (using the right thumb convention).
|
|
142
|
+
*/
|
|
143
|
+
rotation(rvec: Vec3): Vec3;
|
|
144
|
+
/**
|
|
145
|
+
* Combines rotation methods above. Supports 3x3, 1x3, 3x1 sizes of data matrix.
|
|
146
|
+
*
|
|
147
|
+
* It sets the upper left 3x3 part of the matrix. The remaining part is unaffected.
|
|
148
|
+
*
|
|
149
|
+
* @param data 1-channel matrix. When it is a 3x3 matrix, it sets the upper left 3x3 part of the
|
|
150
|
+
* current matrix. When it is a 1x3 or 3x1 matrix, it is used as a rotation vector. The Rodrigues
|
|
151
|
+
* formula is used to compute the rotation matrix and sets the upper left 3x3 part of the current
|
|
152
|
+
* matrix.
|
|
153
|
+
*/
|
|
154
|
+
rotation(data: Mat): Mat;
|
|
155
|
+
/**
|
|
156
|
+
* the upper left 3x3 part
|
|
157
|
+
*/
|
|
158
|
+
rotation(): Mat3;
|
|
159
|
+
/**
|
|
160
|
+
* Rodrigues vector.
|
|
161
|
+
*
|
|
162
|
+
* a vector representing the upper left 3x3 rotation matrix of the current matrix.
|
|
163
|
+
*
|
|
164
|
+
* Since the mapping between rotation vectors and rotation matrices is many to one, this function
|
|
165
|
+
* returns only one rotation vector that represents the current rotation matrix, which is not
|
|
166
|
+
* necessarily the same one set by `[rotation(const Vec3& rvec)]`.
|
|
167
|
+
*/
|
|
168
|
+
rvec(): Vec3;
|
|
169
|
+
translate(t: Vec3): Affine3;
|
|
170
|
+
/**
|
|
171
|
+
* Copy t to the first three elements of the last column of the current matrix
|
|
172
|
+
*
|
|
173
|
+
* It sets the upper right 3x1 part of the matrix. The remaining part is unaffected.
|
|
174
|
+
*
|
|
175
|
+
* @param t 3x1 translation vector.
|
|
176
|
+
*/
|
|
177
|
+
translation(t: Vec3): Vec3;
|
|
178
|
+
/**
|
|
179
|
+
* the upper right 3x1 part
|
|
180
|
+
*/
|
|
181
|
+
translation(): Vec3;
|
|
182
|
+
static Identity(): Affine3;
|
|
183
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Affine3.js","sourceRoot":"","sources":["../../../../src/types/opencv/Affine3.ts"],"names":[],"mappings":""}
|