Commit 278ede5
refactor: remove legacy KNN API and add comprehensive documentation
- Remove all legacy KNN classes and metric_type_t enum
- Convert legacy classes to type aliases for easier migration
- Update all features and descriptors to use generic KNN API
- Fix runtime metric usage with IMetric interface
- Add operator() overloads for CosineMetric and AngularMetric
- Update all tests and benchmarks to use new API
- Add comprehensive Doxygen documentation for:
- KNN algorithms (base_knn, bfknn, bfknn_parallel, kdtree)
- Normal extraction algorithms (base_norm, pca_norm)
- Descriptor extraction base classes
- All documentation includes Chinese/English bilingual comments
- Create unified export headers:
- knn/knn.hpp: Unified interface for all KNN algorithms
- norm/norm.hpp: Unified interface for normal extraction
- descriptors/descriptors.hpp: Unified interface for descriptor extraction
- Include usage examples and algorithm selection guides
This completes the migration to the new metrics infrastructure,
making the codebase more unified and flexible.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent e8b2483 commit 278ede5
File tree
42 files changed
+1277
-617
lines changed- benchmark/pcl
- src/include/cpp-toolbox
- metrics
- pcl
- descriptors
- impl
- features
- impl
- knn
- impl
- norm
- impl
- test/pcl
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
42 files changed
+1277
-617
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | 160 | | |
195 | 161 | | |
196 | 162 | | |
| |||
272 | 238 | | |
273 | 239 | | |
274 | 240 | | |
275 | | - | |
276 | | - | |
| 241 | + | |
| 242 | + | |
277 | 243 | | |
278 | 244 | | |
279 | 245 | | |
| |||
288 | 254 | | |
289 | 255 | | |
290 | 256 | | |
291 | | - | |
292 | | - | |
| 257 | + | |
| 258 | + | |
293 | 259 | | |
294 | 260 | | |
295 | 261 | | |
| |||
317 | 283 | | |
318 | 284 | | |
319 | 285 | | |
320 | | - | |
321 | | - | |
322 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
323 | 289 | | |
324 | 290 | | |
325 | 291 | | |
| |||
364 | 330 | | |
365 | 331 | | |
366 | 332 | | |
367 | | - | |
| 333 | + | |
368 | 334 | | |
369 | 335 | | |
370 | 336 | | |
| |||
401 | 367 | | |
402 | 368 | | |
403 | 369 | | |
404 | | - | |
| 370 | + | |
405 | 371 | | |
406 | 372 | | |
407 | 373 | | |
408 | | - | |
| 374 | + | |
409 | 375 | | |
410 | 376 | | |
411 | 377 | | |
| |||
414 | 380 | | |
415 | 381 | | |
416 | 382 | | |
417 | | - | |
| 383 | + | |
418 | 384 | | |
419 | | - | |
| 385 | + | |
| 386 | + | |
420 | 387 | | |
421 | 388 | | |
422 | 389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
54 | 64 | | |
55 | 65 | | |
56 | 66 | | |
| |||
94 | 104 | | |
95 | 105 | | |
96 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
97 | 117 | | |
98 | 118 | | |
99 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
Lines changed: 92 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
11 | 36 | | |
12 | 37 | | |
13 | 38 | | |
14 | 39 | | |
15 | 40 | | |
16 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
17 | 47 | | |
18 | 48 | | |
19 | 49 | | |
20 | 50 | | |
21 | 51 | | |
22 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
23 | 89 | | |
24 | 90 | | |
25 | 91 | | |
| |||
33 | 99 | | |
34 | 100 | | |
35 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
36 | 106 | | |
37 | 107 | | |
38 | 108 | | |
39 | 109 | | |
40 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
41 | 127 | | |
42 | 128 | | |
43 | 129 | | |
| |||
46 | 132 | | |
47 | 133 | | |
48 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
49 | 141 | | |
50 | 142 | | |
51 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
0 commit comments