@techstark/opencv-js 4.9.0-release.1 → 4.9.0-release.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/types/opencv/_hacks.d.ts +5 -0
- package/dist/src/types/opencv/_hacks.js.map +1 -1
- package/dist/src/types/opencv/_types.d.ts +1 -0
- package/dist/src/types/opencv/_types.js +1 -0
- package/dist/src/types/opencv/_types.js.map +1 -1
- package/dist/src/types/opencv/fisheye.d.ts +16 -0
- package/dist/src/types/opencv/fisheye.js +3 -0
- package/dist/src/types/opencv/fisheye.js.map +1 -0
- package/dist/src/types/opencv/imgproc_shape.d.ts +2 -6
- package/package.json +1 -1
- package/src/types/opencv/_hacks.ts +6 -0
- package/src/types/opencv/_types.ts +1 -0
- package/src/types/opencv/fisheye.ts +26 -0
- package/src/types/opencv/imgproc_shape.ts +3 -7
|
@@ -26,6 +26,11 @@ export declare class Point {
|
|
|
26
26
|
x: number;
|
|
27
27
|
y: number;
|
|
28
28
|
}
|
|
29
|
+
export declare class Circle {
|
|
30
|
+
constructor(center: Point, radius: number);
|
|
31
|
+
center: Point;
|
|
32
|
+
radius: number;
|
|
33
|
+
}
|
|
29
34
|
export declare class Size {
|
|
30
35
|
constructor(width: number, height: number);
|
|
31
36
|
width: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_hacks.js","sourceRoot":"","sources":["../../../../src/types/opencv/_hacks.ts"],"names":[],"mappings":";AAAA,uGAAuG;;;
|
|
1
|
+
{"version":3,"file":"_hacks.js","sourceRoot":"","sources":["../../../../src/types/opencv/_hacks.ts"],"names":[],"mappings":";AAAA,uGAAuG;;;AA8FvG,wBAAsE;AAlFtD,2FAkFe,MAAG,OAlFR;AACV,iGAiFe,MAAG,OAjFF;AAChB,4FAgFe,MAAG,OAhFP;AAiF3B,kBAAgB"}
|
|
@@ -15,6 +15,7 @@ export * from "./DynamicBitset";
|
|
|
15
15
|
export * from "./Exception";
|
|
16
16
|
export * from "./Feature2D";
|
|
17
17
|
export * from "./features2d_draw";
|
|
18
|
+
export * from "./fisheye";
|
|
18
19
|
export * from "./FlannBasedMatcher";
|
|
19
20
|
export * from "./HOGDescriptor";
|
|
20
21
|
export * from "./imgproc_color_conversions";
|
|
@@ -31,6 +31,7 @@ __exportStar(require("./DynamicBitset"), exports);
|
|
|
31
31
|
__exportStar(require("./Exception"), exports);
|
|
32
32
|
__exportStar(require("./Feature2D"), exports);
|
|
33
33
|
__exportStar(require("./features2d_draw"), exports);
|
|
34
|
+
__exportStar(require("./fisheye"), exports);
|
|
34
35
|
__exportStar(require("./FlannBasedMatcher"), exports);
|
|
35
36
|
__exportStar(require("./HOGDescriptor"), exports);
|
|
36
37
|
__exportStar(require("./imgproc_color_conversions"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../../src/types/opencv/_types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,8CAA4B;AAC5B,+CAA6B;AAC7B,8CAA4B;AAC5B,+CAA6B;AAC7B,4CAA0B;AAC1B,sDAAoC;AACpC,+CAA6B;AAC7B,iDAA+B;AAC/B,uDAAqC;AACrC,+CAA6B;AAC7B,sDAAoC;AACpC,wCAAsB;AACtB,kDAAgC;AAChC,8CAA4B;AAC5B,8CAA4B;AAC5B,oDAAkC;AAClC,sDAAoC;AACpC,kDAAgC;AAChC,8DAA4C;AAC5C,iDAA+B;AAC/B,oDAAkC;AAClC,mDAAiC;AACjC,iDAA+B;AAC/B,iDAA+B;AAC/B,mDAAiC;AACjC,kDAAgC;AAChC,sDAAoC;AACpC,2CAAyB;AACzB,6CAA2B;AAC3B,wCAAsB;AACtB,4CAA0B;AAC1B,0CAAwB;AACxB,yCAAuB;AACvB,yCAAuB;AACvB,8CAA4B;AAC5B,wCAAsB;AACtB,wCAAsB;AACtB,kDAAgC;AAChC,gDAA8B;AAC9B,+CAA6B;AAC7B,8CAA4B;AAC5B,gDAA8B;AAC9B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"_types.js","sourceRoot":"","sources":["../../../../src/types/opencv/_types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,8CAA4B;AAC5B,+CAA6B;AAC7B,8CAA4B;AAC5B,+CAA6B;AAC7B,4CAA0B;AAC1B,sDAAoC;AACpC,+CAA6B;AAC7B,iDAA+B;AAC/B,uDAAqC;AACrC,+CAA6B;AAC7B,sDAAoC;AACpC,wCAAsB;AACtB,kDAAgC;AAChC,8CAA4B;AAC5B,8CAA4B;AAC5B,oDAAkC;AAClC,4CAA0B;AAC1B,sDAAoC;AACpC,kDAAgC;AAChC,8DAA4C;AAC5C,iDAA+B;AAC/B,oDAAkC;AAClC,mDAAiC;AACjC,iDAA+B;AAC/B,iDAA+B;AAC/B,mDAAiC;AACjC,kDAAgC;AAChC,sDAAoC;AACpC,2CAAyB;AACzB,6CAA2B;AAC3B,wCAAsB;AACtB,4CAA0B;AAC1B,0CAAwB;AACxB,yCAAuB;AACvB,yCAAuB;AACvB,8CAA4B;AAC5B,wCAAsB;AACtB,wCAAsB;AACtB,kDAAgC;AAChC,gDAA8B;AAC9B,+CAA6B;AAC7B,8CAA4B;AAC5B,gDAA8B;AAC9B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { InputArray, OutputArray, int, Size } from "./_types";
|
|
2
|
+
/**
|
|
3
|
+
* Computes the undistortion and rectification maps for the image transform using remap.
|
|
4
|
+
* If D is empty, zero distortion is used. If R or P is empty, identity matrices are used.
|
|
5
|
+
*
|
|
6
|
+
* @param {InputArray} K - Camera intrinsic matrix.
|
|
7
|
+
* @param {InputArray} D - Input vector of distortion coefficients (k1, k2, k3, k4).
|
|
8
|
+
* @param {InputArray} R - Rectification transformation in the object space: 3x3 1-channel, or vector: 3x1/1x3 1-channel or 1x1 3-channel.
|
|
9
|
+
* @param {InputArray} P - New camera intrinsic matrix (3x3) or new projection matrix (3x4).
|
|
10
|
+
* @param {Size} size - Undistorted image size.
|
|
11
|
+
* @param {int} m1type - Type of the first output map that can be CV_32FC1 or CV_16SC2. See convertMaps for details.
|
|
12
|
+
* @param {OutputArray} map1 - The first output map.
|
|
13
|
+
* @param {OutputArray} map2 - The second output map.
|
|
14
|
+
* @return {void}
|
|
15
|
+
*/
|
|
16
|
+
export declare function fisheye_initUndistortRectifyMap(K: InputArray, D: InputArray, R: InputArray, P: InputArray, size: Size, m1type: int, map1: OutputArray, map2: OutputArray): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fisheye.js","sourceRoot":"","sources":["../../../../src/types/opencv/fisheye.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bool, double, float, InputArray, int, Moments, OutputArray, OutputArrayOfArrays, Point, Point2f, Rect, RotatedRect } from "./_types";
|
|
1
|
+
import { bool, Circle, double, float, InputArray, int, Moments, OutputArray, OutputArrayOfArrays, Point, Point2f, Rect, RotatedRect } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* The function [cv::approxPolyDP] approximates a curve or a polygon with another curve/polygon with
|
|
4
4
|
* less vertices so that the distance between them is less or equal to the specified precision. It uses
|
|
@@ -415,12 +415,8 @@ export declare function minAreaRect(points: InputArray): RotatedRect;
|
|
|
415
415
|
* The function finds the minimal enclosing circle of a 2D point set using an iterative algorithm.
|
|
416
416
|
*
|
|
417
417
|
* @param points Input vector of 2D points, stored in std::vector<> or Mat
|
|
418
|
-
*
|
|
419
|
-
* @param center Output center of the circle.
|
|
420
|
-
*
|
|
421
|
-
* @param radius Output radius of the circle.
|
|
422
418
|
*/
|
|
423
|
-
export declare function minEnclosingCircle(points: InputArray
|
|
419
|
+
export declare function minEnclosingCircle(points: InputArray): Circle;
|
|
424
420
|
/**
|
|
425
421
|
* The function finds a triangle of minimum area enclosing the given set of 2D points and returns its
|
|
426
422
|
* area. The output for a given 2D point set is shown in the image below. 2D points are depicted in
|
package/package.json
CHANGED
|
@@ -32,6 +32,12 @@ export declare class Point {
|
|
|
32
32
|
public y: number;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
export declare class Circle {
|
|
36
|
+
public constructor(center: Point, radius: number);
|
|
37
|
+
public center: Point;
|
|
38
|
+
public radius: number;
|
|
39
|
+
}
|
|
40
|
+
|
|
35
41
|
export declare class Size {
|
|
36
42
|
public constructor(width: number, height: number);
|
|
37
43
|
public width: number;
|
|
@@ -15,6 +15,7 @@ export * from "./DynamicBitset";
|
|
|
15
15
|
export * from "./Exception";
|
|
16
16
|
export * from "./Feature2D";
|
|
17
17
|
export * from "./features2d_draw";
|
|
18
|
+
export * from "./fisheye";
|
|
18
19
|
export * from "./FlannBasedMatcher";
|
|
19
20
|
export * from "./HOGDescriptor";
|
|
20
21
|
export * from "./imgproc_color_conversions";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { InputArray, OutputArray, int, Size } from "./_types";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Computes the undistortion and rectification maps for the image transform using remap.
|
|
5
|
+
* If D is empty, zero distortion is used. If R or P is empty, identity matrices are used.
|
|
6
|
+
*
|
|
7
|
+
* @param {InputArray} K - Camera intrinsic matrix.
|
|
8
|
+
* @param {InputArray} D - Input vector of distortion coefficients (k1, k2, k3, k4).
|
|
9
|
+
* @param {InputArray} R - Rectification transformation in the object space: 3x3 1-channel, or vector: 3x1/1x3 1-channel or 1x1 3-channel.
|
|
10
|
+
* @param {InputArray} P - New camera intrinsic matrix (3x3) or new projection matrix (3x4).
|
|
11
|
+
* @param {Size} size - Undistorted image size.
|
|
12
|
+
* @param {int} m1type - Type of the first output map that can be CV_32FC1 or CV_16SC2. See convertMaps for details.
|
|
13
|
+
* @param {OutputArray} map1 - The first output map.
|
|
14
|
+
* @param {OutputArray} map2 - The second output map.
|
|
15
|
+
* @return {void}
|
|
16
|
+
*/
|
|
17
|
+
export declare function fisheye_initUndistortRectifyMap(
|
|
18
|
+
K: InputArray,
|
|
19
|
+
D: InputArray,
|
|
20
|
+
R: InputArray,
|
|
21
|
+
P: InputArray,
|
|
22
|
+
size: Size,
|
|
23
|
+
m1type: int,
|
|
24
|
+
map1: OutputArray,
|
|
25
|
+
map2: OutputArray,
|
|
26
|
+
): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bool,
|
|
3
|
+
Circle,
|
|
3
4
|
double,
|
|
4
5
|
float,
|
|
5
6
|
InputArray,
|
|
@@ -12,6 +13,7 @@ import {
|
|
|
12
13
|
Rect,
|
|
13
14
|
RotatedRect,
|
|
14
15
|
} from "./_types";
|
|
16
|
+
|
|
15
17
|
/*
|
|
16
18
|
* # Structural Analysis and Shape Descriptors
|
|
17
19
|
*
|
|
@@ -530,16 +532,10 @@ export declare function minAreaRect(points: InputArray): RotatedRect;
|
|
|
530
532
|
* The function finds the minimal enclosing circle of a 2D point set using an iterative algorithm.
|
|
531
533
|
*
|
|
532
534
|
* @param points Input vector of 2D points, stored in std::vector<> or Mat
|
|
533
|
-
*
|
|
534
|
-
* @param center Output center of the circle.
|
|
535
|
-
*
|
|
536
|
-
* @param radius Output radius of the circle.
|
|
537
535
|
*/
|
|
538
536
|
export declare function minEnclosingCircle(
|
|
539
537
|
points: InputArray,
|
|
540
|
-
|
|
541
|
-
radius: any,
|
|
542
|
-
): void;
|
|
538
|
+
): Circle;
|
|
543
539
|
|
|
544
540
|
/**
|
|
545
541
|
* The function finds a triangle of minimum area enclosing the given set of 2D points and returns its
|