rm-gxf-computing-rusts 0.0.20 → 0.0.22

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rm-gxf-computing-rusts",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "description": "",
5
5
  "author": "初秋",
6
6
  "type": "commonjs",
Binary file
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
  }
@@ -99,40 +109,62 @@ export interface PcObjectEcognizerOption {
99
109
  version?: string
100
110
  }
101
111
 
102
- export interface PcObjectEcognizerOption20 {
112
+ export declare function pointCloudObjectEcognizer(option: PcObjectEcognizerOption): Array<Array<Array<number>>>
113
+
114
+ export interface Quads {
115
+ originalVertices: Array<Array<Vector3F64>>
116
+ allCenterPoints: Array<Vector3F64>
117
+ }
118
+
119
+ export interface Quads {
120
+ originalVertices: Array<Array<Vector3F64>>
121
+ allCenterPoints: Array<Vector3F64>
122
+ }
123
+
124
+ export declare function samplePointsByImage(option: SamplePointsByImageOption): Array<Array<Array<number>>>
125
+
126
+ export interface SamplePointsByImageOption {
103
127
  view?: boolean
104
- pcdUrl: string
128
+ /** pcd url,pcd_chunk为true时,该值为目录 */
129
+ pcdPath: string
130
+ /** 是否使用pcd片段 */
105
131
  pcdChunk?: boolean
132
+ /** 图片url列表 */
106
133
  imageUrls: Array<string>
107
- groundZ: number
134
+ /** 点云z轴小于该值的过滤掉 */
135
+ minZ?: number
136
+ /** 当前使用版本 */
108
137
  version?: string
138
+ /** 点云蔟过滤 */
109
139
  clusterFilter?: boolean
140
+ /** 点云蔟分类距离 */
110
141
  distanceThreshold?: number
142
+ /** 深度过滤 */
143
+ depthFilter?: DepthFilter
144
+ /** 过滤类型列表 */
145
+ excludeCategoryList?: Array<string>
111
146
  }
112
147
 
113
- export interface PcObjectEcognizerOption20 {
148
+ export interface SamplePointsByImageOption {
114
149
  view?: boolean
115
- pcdUrl: string
150
+ /** pcd url,pcd_chunk为true时,该值为目录 */
151
+ pcdPath: string
152
+ /** 是否使用pcd片段 */
116
153
  pcdChunk?: boolean
154
+ /** 图片url列表 */
117
155
  imageUrls: Array<string>
118
- groundZ: number
156
+ /** 点云z轴小于该值的过滤掉 */
157
+ minZ?: number
158
+ /** 当前使用版本 */
119
159
  version?: string
160
+ /** 点云蔟过滤 */
120
161
  clusterFilter?: boolean
162
+ /** 点云蔟分类距离 */
121
163
  distanceThreshold?: number
122
- }
123
-
124
- export declare function pointCloudObjectEcognizer(option: PcObjectEcognizerOption): Array<Array<Array<number>>>
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>
164
+ /** 深度过滤 */
165
+ depthFilter?: DepthFilter
166
+ /** 过滤类型列表 */
167
+ excludeCategoryList?: Array<string>
136
168
  }
137
169
 
138
170
  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.pointCloudObjectEcognizer20 = nativeBinding.pointCloudObjectEcognizer20
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").PcObjectEcognizerOption20} params
174
+ * @param {import("./index").SamplePointsByImageOption} params
175
175
  * @returns
176
176
  */
177
- function pointCloudObjectEcognizer2_0(params) {
178
- return gxf.pointCloudObjectEcognizer20(params)
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.pointCloudObjectEcognizer2_0 = pointCloudObjectEcognizer2_0
185
+ module.exports.samplePointsByImage = samplePointsByImage