rm-gxf-computing-rusts 0.0.26 → 0.0.27
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/package.json +1 -1
- package/src/gfx.win32-x64-msvc.node +0 -0
- package/src/index.d.ts +8 -65
- package/src/index.js +0 -1
- package/src/main.js +0 -10
package/package.json
CHANGED
|
Binary file
|
package/src/index.d.ts
CHANGED
|
@@ -22,12 +22,6 @@ export interface CheckResult {
|
|
|
22
22
|
offsets?: Array<number>
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export interface CheckResult {
|
|
26
|
-
originalVertices: Array<Square>
|
|
27
|
-
allCenterPoints: Array<Point>
|
|
28
|
-
offsets?: Array<number>
|
|
29
|
-
}
|
|
30
|
-
|
|
31
25
|
export interface DepthFilter {
|
|
32
26
|
searchRadius: number
|
|
33
27
|
depthThreshold: number
|
|
@@ -76,22 +70,6 @@ export interface Line {
|
|
|
76
70
|
end: Vector3F64
|
|
77
71
|
}
|
|
78
72
|
|
|
79
|
-
export interface Line {
|
|
80
|
-
start: Vector3F64
|
|
81
|
-
end: Vector3F64
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export interface Line {
|
|
85
|
-
start: Vector3F64
|
|
86
|
-
end: Vector3F64
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface LineData {
|
|
90
|
-
start: Vector3F64
|
|
91
|
-
end: Vector3F64
|
|
92
|
-
checkResults: Array<CheckResult>
|
|
93
|
-
}
|
|
94
|
-
|
|
95
73
|
export interface LineData {
|
|
96
74
|
start: Vector3F64
|
|
97
75
|
end: Vector3F64
|
|
@@ -122,32 +100,6 @@ export interface PcBackfaceTestOptions {
|
|
|
122
100
|
distProjection: boolean
|
|
123
101
|
}
|
|
124
102
|
|
|
125
|
-
export interface PcBackfaceTestOptions {
|
|
126
|
-
view?: boolean
|
|
127
|
-
pcdDir: string
|
|
128
|
-
lines: LineDataList
|
|
129
|
-
trajectorys: Record<string, Trajectory>
|
|
130
|
-
distProjection: boolean
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export interface PcObjectEcognizerOption {
|
|
134
|
-
view?: boolean
|
|
135
|
-
pcdUrl: string
|
|
136
|
-
imageUrls: Array<string>
|
|
137
|
-
groundZ: number
|
|
138
|
-
version?: string
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
export interface PcObjectEcognizerOption {
|
|
142
|
-
view?: boolean
|
|
143
|
-
pcdUrl: string
|
|
144
|
-
imageUrls: Array<string>
|
|
145
|
-
groundZ: number
|
|
146
|
-
version?: string
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export declare function pointCloudObjectEcognizer(option: PcObjectEcognizerOption): Array<Array<Array<number>>>
|
|
150
|
-
|
|
151
103
|
export interface Quads {
|
|
152
104
|
originalVertices: Array<Array<Vector3F64>>
|
|
153
105
|
allCenterPoints: Array<Vector3F64>
|
|
@@ -226,6 +178,10 @@ export interface SamplePointsByImageOption {
|
|
|
226
178
|
depthFilter?: DepthFilter
|
|
227
179
|
/** 过滤类型列表 */
|
|
228
180
|
excludeCategoryList?: Array<string>
|
|
181
|
+
/** 形状使用轮廓 */
|
|
182
|
+
contourMode?: boolean
|
|
183
|
+
/** 边缘腐蚀大小 */
|
|
184
|
+
edgeCorrosionSize?: number
|
|
229
185
|
}
|
|
230
186
|
|
|
231
187
|
export interface SamplePointsByImageOption {
|
|
@@ -270,6 +226,10 @@ export interface SamplePointsByImageOption {
|
|
|
270
226
|
depthFilter?: DepthFilter
|
|
271
227
|
/** 过滤类型列表 */
|
|
272
228
|
excludeCategoryList?: Array<string>
|
|
229
|
+
/** 形状使用轮廓 */
|
|
230
|
+
contourMode?: boolean
|
|
231
|
+
/** 边缘腐蚀大小 */
|
|
232
|
+
edgeCorrosionSize?: number
|
|
273
233
|
}
|
|
274
234
|
|
|
275
235
|
export declare function squareBackfacePointCloudTest(option: PcBackfaceTestOptions): Array<number>
|
|
@@ -286,23 +246,6 @@ export interface Trajectory {
|
|
|
286
246
|
qw: number
|
|
287
247
|
}
|
|
288
248
|
|
|
289
|
-
export interface Trajectory {
|
|
290
|
-
x: number
|
|
291
|
-
y: number
|
|
292
|
-
z: number
|
|
293
|
-
qx: number
|
|
294
|
-
qy: number
|
|
295
|
-
qz: number
|
|
296
|
-
qw: number
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
/** 三维向量,包含 x、y、z 分量 */
|
|
300
|
-
export interface Vector3F64 {
|
|
301
|
-
x: number
|
|
302
|
-
y: number
|
|
303
|
-
z: number
|
|
304
|
-
}
|
|
305
|
-
|
|
306
249
|
/** 三维向量,包含 x、y、z 分量 */
|
|
307
250
|
export interface Vector3F64 {
|
|
308
251
|
x: number
|
package/src/index.js
CHANGED
|
@@ -588,7 +588,6 @@ if (!nativeBinding) {
|
|
|
588
588
|
|
|
589
589
|
module.exports = nativeBinding
|
|
590
590
|
module.exports.checkLineSideVisibility = nativeBinding.checkLineSideVisibility
|
|
591
|
-
module.exports.pointCloudObjectEcognizer = nativeBinding.pointCloudObjectEcognizer
|
|
592
591
|
module.exports.samplePointsByImage = nativeBinding.samplePointsByImage
|
|
593
592
|
module.exports.squareBackfacePointCloudTest = nativeBinding.squareBackfacePointCloudTest
|
|
594
593
|
module.exports.squareHasSquareBehind = nativeBinding.squareHasSquareBehind
|
package/src/main.js
CHANGED
|
@@ -160,15 +160,6 @@ function squareHasSquareBehind(params) {
|
|
|
160
160
|
return gxf.squareHasSquareBehind(params)
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
/**
|
|
164
|
-
*
|
|
165
|
-
* @param {import("./index").PcObjectEcognizerOption} params
|
|
166
|
-
* @returns
|
|
167
|
-
*/
|
|
168
|
-
function pointCloudObjectEcognizer(params) {
|
|
169
|
-
return gxf.pointCloudObjectEcognizer(params)
|
|
170
|
-
}
|
|
171
|
-
|
|
172
163
|
/**
|
|
173
164
|
*
|
|
174
165
|
* @param {import("./index").SamplePointsByImageOption} params
|
|
@@ -180,6 +171,5 @@ function samplePointsByImage(params) {
|
|
|
180
171
|
|
|
181
172
|
module.exports.checkLineSideVisibility = checkLineSideVisibility
|
|
182
173
|
module.exports.squareBackfacePointCloudTest = squareBackfacePointCloudTest
|
|
183
|
-
module.exports.pointCloudObjectEcognizer = pointCloudObjectEcognizer
|
|
184
174
|
module.exports.squareHasSquareBehind = squareHasSquareBehind
|
|
185
175
|
module.exports.samplePointsByImage = samplePointsByImage
|