rm-gxf-computing-rusts 0.0.25 → 0.0.26
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.linux-x64-gnu.node +0 -0
- package/src/gfx.win32-x64-msvc.node +0 -0
- package/src/index.d.ts +74 -8
- package/src/index.js +1 -1
- package/src/main.js +3 -3
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/src/index.d.ts
CHANGED
|
@@ -38,6 +38,26 @@ export interface DepthFilter {
|
|
|
38
38
|
depthThreshold: number
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
export interface DepthFilter {
|
|
42
|
+
searchRadius: number
|
|
43
|
+
depthThreshold: number
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface DepthFilter {
|
|
47
|
+
searchRadius: number
|
|
48
|
+
depthThreshold: number
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface HasQquareBehindOptions {
|
|
52
|
+
view?: boolean
|
|
53
|
+
lines: Array<ParseLineResult>
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface HasQquareBehindOptions {
|
|
57
|
+
view?: boolean
|
|
58
|
+
lines: Array<ParseLineResult>
|
|
59
|
+
}
|
|
60
|
+
|
|
41
61
|
export interface Index {
|
|
42
62
|
index: number
|
|
43
63
|
}
|
|
@@ -150,6 +170,18 @@ export interface Results {
|
|
|
150
170
|
objIds: Array<Array<string>>
|
|
151
171
|
}
|
|
152
172
|
|
|
173
|
+
export interface Results {
|
|
174
|
+
results: Array<Array<Array<number>>>
|
|
175
|
+
positions: Array<Vector3F64>
|
|
176
|
+
objIds: Array<Array<string>>
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export interface Results {
|
|
180
|
+
results: Array<Array<Array<number>>>
|
|
181
|
+
positions: Array<Vector3F64>
|
|
182
|
+
objIds: Array<Array<string>>
|
|
183
|
+
}
|
|
184
|
+
|
|
153
185
|
export declare function samplePointsByImage(option: SamplePointsByImageOption): Results
|
|
154
186
|
|
|
155
187
|
export interface SamplePointsByImageOption {
|
|
@@ -196,20 +228,54 @@ export interface SamplePointsByImageOption {
|
|
|
196
228
|
excludeCategoryList?: Array<string>
|
|
197
229
|
}
|
|
198
230
|
|
|
199
|
-
export
|
|
200
|
-
|
|
201
|
-
export declare function squareBackfaceSquareTest(option: SquareBackfaceTestOptions): Array<number>
|
|
202
|
-
|
|
203
|
-
export interface SquareBackfaceTestOptions {
|
|
231
|
+
export interface SamplePointsByImageOption {
|
|
204
232
|
view?: boolean
|
|
205
|
-
|
|
233
|
+
/** pcd url,pcd_chunk为true时,该值为目录 */
|
|
234
|
+
pcdPath: string
|
|
235
|
+
/** 是否使用pcd片段 */
|
|
236
|
+
pcdChunk?: boolean
|
|
237
|
+
/** 图片url列表 */
|
|
238
|
+
imageUrls: Array<string>
|
|
239
|
+
/** 点云z轴小于该值的过滤掉 */
|
|
240
|
+
minZ?: number
|
|
241
|
+
/** 当前使用版本 */
|
|
242
|
+
version?: string
|
|
243
|
+
/** 点云蔟过滤 */
|
|
244
|
+
clusterFilter?: boolean
|
|
245
|
+
/** 点云蔟分类距离 */
|
|
246
|
+
distanceThreshold?: number
|
|
247
|
+
/** 深度过滤 */
|
|
248
|
+
depthFilter?: DepthFilter
|
|
249
|
+
/** 过滤类型列表 */
|
|
250
|
+
excludeCategoryList?: Array<string>
|
|
206
251
|
}
|
|
207
252
|
|
|
208
|
-
export interface
|
|
253
|
+
export interface SamplePointsByImageOption {
|
|
209
254
|
view?: boolean
|
|
210
|
-
|
|
255
|
+
/** pcd url,pcd_chunk为true时,该值为目录 */
|
|
256
|
+
pcdPath: string
|
|
257
|
+
/** 是否使用pcd片段 */
|
|
258
|
+
pcdChunk?: boolean
|
|
259
|
+
/** 图片url列表 */
|
|
260
|
+
imageUrls: Array<string>
|
|
261
|
+
/** 点云z轴小于该值的过滤掉 */
|
|
262
|
+
minZ?: number
|
|
263
|
+
/** 当前使用版本 */
|
|
264
|
+
version?: string
|
|
265
|
+
/** 点云蔟过滤 */
|
|
266
|
+
clusterFilter?: boolean
|
|
267
|
+
/** 点云蔟分类距离 */
|
|
268
|
+
distanceThreshold?: number
|
|
269
|
+
/** 深度过滤 */
|
|
270
|
+
depthFilter?: DepthFilter
|
|
271
|
+
/** 过滤类型列表 */
|
|
272
|
+
excludeCategoryList?: Array<string>
|
|
211
273
|
}
|
|
212
274
|
|
|
275
|
+
export declare function squareBackfacePointCloudTest(option: PcBackfaceTestOptions): Array<number>
|
|
276
|
+
|
|
277
|
+
export declare function squareHasSquareBehind(option: HasQquareBehindOptions): Array<number>
|
|
278
|
+
|
|
213
279
|
export interface Trajectory {
|
|
214
280
|
x: number
|
|
215
281
|
y: number
|
package/src/index.js
CHANGED
|
@@ -591,4 +591,4 @@ module.exports.checkLineSideVisibility = nativeBinding.checkLineSideVisibility
|
|
|
591
591
|
module.exports.pointCloudObjectEcognizer = nativeBinding.pointCloudObjectEcognizer
|
|
592
592
|
module.exports.samplePointsByImage = nativeBinding.samplePointsByImage
|
|
593
593
|
module.exports.squareBackfacePointCloudTest = nativeBinding.squareBackfacePointCloudTest
|
|
594
|
-
module.exports.
|
|
594
|
+
module.exports.squareHasSquareBehind = nativeBinding.squareHasSquareBehind
|
package/src/main.js
CHANGED
|
@@ -125,7 +125,7 @@ function squareBackfacePointCloudTest(params) {
|
|
|
125
125
|
* @param {import("./index").SquareBackfaceTestOptions} params
|
|
126
126
|
* @returns
|
|
127
127
|
*/
|
|
128
|
-
function
|
|
128
|
+
function squareHasSquareBehind(params) {
|
|
129
129
|
// params.lines 参数验证
|
|
130
130
|
if (!Array.isArray(params.lines)) {
|
|
131
131
|
throw new Error("params.lines must be an array");
|
|
@@ -157,7 +157,7 @@ function squareBackfaceSquareTest(params) {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
return gxf.
|
|
160
|
+
return gxf.squareHasSquareBehind(params)
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
/**
|
|
@@ -181,5 +181,5 @@ function samplePointsByImage(params) {
|
|
|
181
181
|
module.exports.checkLineSideVisibility = checkLineSideVisibility
|
|
182
182
|
module.exports.squareBackfacePointCloudTest = squareBackfacePointCloudTest
|
|
183
183
|
module.exports.pointCloudObjectEcognizer = pointCloudObjectEcognizer
|
|
184
|
-
module.exports.
|
|
184
|
+
module.exports.squareHasSquareBehind = squareHasSquareBehind
|
|
185
185
|
module.exports.samplePointsByImage = samplePointsByImage
|