rm-gxf-computing-rusts 0.0.19 → 0.0.21
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 +50 -0
- package/src/index.js +1 -0
- package/src/main.js +4 -4
package/package.json
CHANGED
|
Binary file
|
package/src/index.d.ts
CHANGED
|
@@ -22,6 +22,16 @@ export interface CheckResult {
|
|
|
22
22
|
offsets?: Array<number>
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
export interface DepthFilter {
|
|
26
|
+
searchRadius: number
|
|
27
|
+
depthThreshold: number
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface DepthFilter {
|
|
31
|
+
searchRadius: number
|
|
32
|
+
depthThreshold: number
|
|
33
|
+
}
|
|
34
|
+
|
|
25
35
|
export interface Index {
|
|
26
36
|
index: number
|
|
27
37
|
}
|
|
@@ -51,6 +61,12 @@ export interface LineData {
|
|
|
51
61
|
checkResults: Array<CheckResult>
|
|
52
62
|
}
|
|
53
63
|
|
|
64
|
+
export interface LineData {
|
|
65
|
+
start: Vector3F64
|
|
66
|
+
end: Vector3F64
|
|
67
|
+
checkResults: Array<CheckResult>
|
|
68
|
+
}
|
|
69
|
+
|
|
54
70
|
export interface ParseLineResult {
|
|
55
71
|
start?: Vector3F64
|
|
56
72
|
end?: Vector3F64
|
|
@@ -111,6 +127,40 @@ export interface Quads {
|
|
|
111
127
|
allCenterPoints: Array<Vector3F64>
|
|
112
128
|
}
|
|
113
129
|
|
|
130
|
+
export declare function samplePointsByImage(option: SamplePointsByImageOption): Array<Array<Array<number>>>
|
|
131
|
+
|
|
132
|
+
export interface SamplePointsByImageOption {
|
|
133
|
+
view?: boolean
|
|
134
|
+
pcdPath: string
|
|
135
|
+
pcdChunk?: boolean
|
|
136
|
+
imageUrls: Array<string>
|
|
137
|
+
groundZ: number
|
|
138
|
+
/** 当前使用版本 */
|
|
139
|
+
version?: string
|
|
140
|
+
/** 点云蔟过滤 */
|
|
141
|
+
clusterFilter?: boolean
|
|
142
|
+
distanceThreshold?: number
|
|
143
|
+
/** 深度过滤 */
|
|
144
|
+
depthFilter?: DepthFilter
|
|
145
|
+
excludeCategoryList?: Array<string>
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface SamplePointsByImageOption {
|
|
149
|
+
view?: boolean
|
|
150
|
+
pcdPath: string
|
|
151
|
+
pcdChunk?: boolean
|
|
152
|
+
imageUrls: Array<string>
|
|
153
|
+
groundZ: number
|
|
154
|
+
/** 当前使用版本 */
|
|
155
|
+
version?: string
|
|
156
|
+
/** 点云蔟过滤 */
|
|
157
|
+
clusterFilter?: boolean
|
|
158
|
+
distanceThreshold?: number
|
|
159
|
+
/** 深度过滤 */
|
|
160
|
+
depthFilter?: DepthFilter
|
|
161
|
+
excludeCategoryList?: Array<string>
|
|
162
|
+
}
|
|
163
|
+
|
|
114
164
|
export declare function squareBackfacePointCloudTest(option: PcBackfaceTestOptions): Array<number>
|
|
115
165
|
|
|
116
166
|
export declare function squareBackfaceSquareTest(option: SquareBackfaceTestOptions): Array<number>
|
package/src/index.js
CHANGED
|
@@ -589,5 +589,6 @@ if (!nativeBinding) {
|
|
|
589
589
|
module.exports = nativeBinding
|
|
590
590
|
module.exports.checkLineSideVisibility = nativeBinding.checkLineSideVisibility
|
|
591
591
|
module.exports.pointCloudObjectEcognizer = nativeBinding.pointCloudObjectEcognizer
|
|
592
|
+
module.exports.samplePointsByImage = nativeBinding.samplePointsByImage
|
|
592
593
|
module.exports.squareBackfacePointCloudTest = nativeBinding.squareBackfacePointCloudTest
|
|
593
594
|
module.exports.squareBackfaceSquareTest = nativeBinding.squareBackfaceSquareTest
|
package/src/main.js
CHANGED
|
@@ -171,15 +171,15 @@ function pointCloudObjectEcognizer(params) {
|
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
*
|
|
174
|
-
* @param {import("./index").
|
|
174
|
+
* @param {import("./index").SamplePointsByImageOption} params
|
|
175
175
|
* @returns
|
|
176
176
|
*/
|
|
177
|
-
function
|
|
178
|
-
return gxf.
|
|
177
|
+
function samplePointsByImage(params) {
|
|
178
|
+
return gxf.samplePointsByImage(params)
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
module.exports.checkLineSideVisibility = checkLineSideVisibility
|
|
182
182
|
module.exports.squareBackfacePointCloudTest = squareBackfacePointCloudTest
|
|
183
183
|
module.exports.pointCloudObjectEcognizer = pointCloudObjectEcognizer
|
|
184
184
|
module.exports.squareBackfaceSquareTest = squareBackfaceSquareTest
|
|
185
|
-
module.exports.
|
|
185
|
+
module.exports.samplePointsByImage = samplePointsByImage
|