@techstark/opencv-js 4.8.0-release.8 → 4.8.0-release.9
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessFlag, bool, double, InputArray, int, MatAllocator, MatCommaInitializer_, MatConstIterator_, MatExpr, MatIterator_, MatSize, MatStep, Matx, OutputArray, Point, Point3_, Point_, Rect, Scalar, Size, size_t, typename, uchar, UMat, UMatData, UMatUsageFlags, Vec } from "./_types";
|
|
1
|
+
import { AccessFlag, bool, double, EmscriptenEmbindInstance, InputArray, int, MatAllocator, MatCommaInitializer_, MatConstIterator_, MatExpr, MatIterator_, MatSize, MatStep, Matx, OutputArray, Point, Point3_, Point_, Rect, Scalar, Size, size_t, typename, uchar, UMat, UMatData, UMatUsageFlags, Vec } from "./_types";
|
|
2
2
|
/**
|
|
3
3
|
* <a name="d3/d63/classcv_1_1Mat_1CVMat_Details"></a> The class [Mat](#d3/d63/classcv_1_1Mat})
|
|
4
4
|
* represents an n-dimensional dense numerical single-channel or multi-channel array. It can be used to
|
|
@@ -218,7 +218,7 @@ import { AccessFlag, bool, double, InputArray, int, MatAllocator, MatCommaInitia
|
|
|
218
218
|
* [opencv2/core/mat.hpp](https://github.com/opencv/opencv/tree/master/modules/core/include/opencv2/core/mat.hpp#L2073).
|
|
219
219
|
*
|
|
220
220
|
*/
|
|
221
|
-
export declare class Mat {
|
|
221
|
+
export declare class Mat extends EmscriptenEmbindInstance {
|
|
222
222
|
allocator: MatAllocator;
|
|
223
223
|
cols: int;
|
|
224
224
|
data: Uint8Array;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mat.js","sourceRoot":"","sources":["../../../../src/types/opencv/Mat.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Mat.js","sourceRoot":"","sources":["../../../../src/types/opencv/Mat.ts"],"names":[],"mappings":";;AAAA,qCA6BkB"}
|
|
@@ -97,11 +97,11 @@ export declare function getLiveInheritedInstances(...a: any[]): any;
|
|
|
97
97
|
export declare function flushPendingDeletes(...a: any[]): any;
|
|
98
98
|
export declare function setDelayFunction(...a: any[]): any;
|
|
99
99
|
export declare class EmscriptenEmbindInstance {
|
|
100
|
-
isAliasOf(
|
|
101
|
-
clone(
|
|
102
|
-
delete(
|
|
103
|
-
isDeleted(
|
|
104
|
-
deleteLater(
|
|
100
|
+
isAliasOf(other: any): bool;
|
|
101
|
+
clone(): any;
|
|
102
|
+
delete(): any;
|
|
103
|
+
isDeleted(): boolean;
|
|
104
|
+
deleteLater(): any;
|
|
105
105
|
}
|
|
106
106
|
export declare class InternalError extends Error {
|
|
107
107
|
}
|
|
@@ -112,7 +112,6 @@ export declare class UnboundTypeError extends Error {
|
|
|
112
112
|
export declare class PureVirtualError extends Error {
|
|
113
113
|
}
|
|
114
114
|
export declare class Vector<T> extends EmscriptenEmbindInstance {
|
|
115
|
-
delete(): void;
|
|
116
115
|
get(i: number): T;
|
|
117
116
|
get(i: number, j: number, data: any): T;
|
|
118
117
|
set(i: number, t: T): void;
|
|
@@ -120,7 +119,6 @@ export declare class Vector<T> extends EmscriptenEmbindInstance {
|
|
|
120
119
|
size(): number;
|
|
121
120
|
push_back(n: T): any;
|
|
122
121
|
resize(count: number, value?: T): void;
|
|
123
|
-
delete(): void;
|
|
124
122
|
}
|
|
125
123
|
export declare class Vec3d extends Vector<any> {
|
|
126
124
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@techstark/opencv-js",
|
|
3
|
-
"version": "4.8.0-release.
|
|
3
|
+
"version": "4.8.0-release.9",
|
|
4
4
|
"description": "OpenCV JavaScript version for node.js or browser",
|
|
5
5
|
"main": "dist/opencv.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "tsc",
|
|
13
13
|
"prepack": "npm run build",
|
|
14
|
-
"format": "prettier --write \"src/**/*.ts\""
|
|
14
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
15
|
+
"test": "jest"
|
|
15
16
|
},
|
|
16
17
|
"repository": {
|
|
17
18
|
"type": "git",
|
|
@@ -29,7 +30,9 @@
|
|
|
29
30
|
},
|
|
30
31
|
"homepage": "https://github.com/TechStark/opencv-js#readme",
|
|
31
32
|
"devDependencies": {
|
|
33
|
+
"@types/jest": "^29.5.6",
|
|
34
|
+
"jest": "^29.7.0",
|
|
32
35
|
"prettier": "^3.0.3",
|
|
33
36
|
"typescript": "^5.1.6"
|
|
34
37
|
}
|
|
35
|
-
}
|
|
38
|
+
}
|
package/src/types/opencv/Mat.ts
CHANGED
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
AccessFlag,
|
|
3
3
|
bool,
|
|
4
4
|
double,
|
|
5
|
+
EmscriptenEmbindInstance,
|
|
5
6
|
InputArray,
|
|
6
7
|
int,
|
|
7
8
|
MatAllocator,
|
|
@@ -247,7 +248,7 @@ import {
|
|
|
247
248
|
* [opencv2/core/mat.hpp](https://github.com/opencv/opencv/tree/master/modules/core/include/opencv2/core/mat.hpp#L2073).
|
|
248
249
|
*
|
|
249
250
|
*/
|
|
250
|
-
export declare class Mat {
|
|
251
|
+
export declare class Mat extends EmscriptenEmbindInstance {
|
|
251
252
|
public allocator: MatAllocator;
|
|
252
253
|
|
|
253
254
|
public cols: int;
|
|
@@ -131,19 +131,21 @@ export declare function getInheritedInstanceCount(...a: any[]): any;
|
|
|
131
131
|
export declare function getLiveInheritedInstances(...a: any[]): any;
|
|
132
132
|
export declare function flushPendingDeletes(...a: any[]): any;
|
|
133
133
|
export declare function setDelayFunction(...a: any[]): any;
|
|
134
|
+
|
|
134
135
|
export declare class EmscriptenEmbindInstance {
|
|
135
|
-
isAliasOf(
|
|
136
|
-
clone(
|
|
137
|
-
delete(
|
|
138
|
-
isDeleted(
|
|
139
|
-
deleteLater(
|
|
136
|
+
isAliasOf(other: any): bool;
|
|
137
|
+
clone(): any;
|
|
138
|
+
delete(): any;
|
|
139
|
+
isDeleted(): boolean;
|
|
140
|
+
deleteLater(): any;
|
|
140
141
|
}
|
|
142
|
+
|
|
141
143
|
export declare class InternalError extends Error {}
|
|
142
144
|
export declare class BindingError extends Error {}
|
|
143
145
|
export declare class UnboundTypeError extends Error {}
|
|
144
146
|
export declare class PureVirtualError extends Error {}
|
|
147
|
+
|
|
145
148
|
export declare class Vector<T> extends EmscriptenEmbindInstance {
|
|
146
|
-
delete(): void;
|
|
147
149
|
get(i: number): T;
|
|
148
150
|
get(i: number, j: number, data: any): T;
|
|
149
151
|
set(i: number, t: T): void;
|
|
@@ -151,7 +153,6 @@ export declare class Vector<T> extends EmscriptenEmbindInstance {
|
|
|
151
153
|
size(): number;
|
|
152
154
|
push_back(n: T): any;
|
|
153
155
|
resize(count: number, value?: T): void;
|
|
154
|
-
delete(): void;
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
export declare class Vec3d extends Vector<any> {}
|