rm-gxf-computing-rusts 0.0.20 → 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 +44 -18
- package/src/index.js +1 -1
- 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
|
|
@@ -99,40 +115,50 @@ export interface PcObjectEcognizerOption {
|
|
|
99
115
|
version?: string
|
|
100
116
|
}
|
|
101
117
|
|
|
102
|
-
export
|
|
118
|
+
export declare function pointCloudObjectEcognizer(option: PcObjectEcognizerOption): Array<Array<Array<number>>>
|
|
119
|
+
|
|
120
|
+
export interface Quads {
|
|
121
|
+
originalVertices: Array<Array<Vector3F64>>
|
|
122
|
+
allCenterPoints: Array<Vector3F64>
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface Quads {
|
|
126
|
+
originalVertices: Array<Array<Vector3F64>>
|
|
127
|
+
allCenterPoints: Array<Vector3F64>
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export declare function samplePointsByImage(option: SamplePointsByImageOption): Array<Array<Array<number>>>
|
|
131
|
+
|
|
132
|
+
export interface SamplePointsByImageOption {
|
|
103
133
|
view?: boolean
|
|
104
|
-
|
|
134
|
+
pcdPath: string
|
|
105
135
|
pcdChunk?: boolean
|
|
106
136
|
imageUrls: Array<string>
|
|
107
137
|
groundZ: number
|
|
138
|
+
/** 当前使用版本 */
|
|
108
139
|
version?: string
|
|
140
|
+
/** 点云蔟过滤 */
|
|
109
141
|
clusterFilter?: boolean
|
|
110
142
|
distanceThreshold?: number
|
|
143
|
+
/** 深度过滤 */
|
|
144
|
+
depthFilter?: DepthFilter
|
|
145
|
+
excludeCategoryList?: Array<string>
|
|
111
146
|
}
|
|
112
147
|
|
|
113
|
-
export interface
|
|
148
|
+
export interface SamplePointsByImageOption {
|
|
114
149
|
view?: boolean
|
|
115
|
-
|
|
150
|
+
pcdPath: string
|
|
116
151
|
pcdChunk?: boolean
|
|
117
152
|
imageUrls: Array<string>
|
|
118
153
|
groundZ: number
|
|
154
|
+
/** 当前使用版本 */
|
|
119
155
|
version?: string
|
|
156
|
+
/** 点云蔟过滤 */
|
|
120
157
|
clusterFilter?: boolean
|
|
121
158
|
distanceThreshold?: number
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
export declare function pointCloudObjectEcognizer20(option: PcObjectEcognizerOption20): Array<Array<Array<number>>>
|
|
127
|
-
|
|
128
|
-
export interface Quads {
|
|
129
|
-
originalVertices: Array<Array<Vector3F64>>
|
|
130
|
-
allCenterPoints: Array<Vector3F64>
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export interface Quads {
|
|
134
|
-
originalVertices: Array<Array<Vector3F64>>
|
|
135
|
-
allCenterPoints: Array<Vector3F64>
|
|
159
|
+
/** 深度过滤 */
|
|
160
|
+
depthFilter?: DepthFilter
|
|
161
|
+
excludeCategoryList?: Array<string>
|
|
136
162
|
}
|
|
137
163
|
|
|
138
164
|
export declare function squareBackfacePointCloudTest(option: PcBackfaceTestOptions): Array<number>
|
package/src/index.js
CHANGED
|
@@ -589,6 +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.
|
|
592
|
+
module.exports.samplePointsByImage = nativeBinding.samplePointsByImage
|
|
593
593
|
module.exports.squareBackfacePointCloudTest = nativeBinding.squareBackfacePointCloudTest
|
|
594
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
|