|
2 | 2 |
|
3 | 3 | namespace diffCheck::registration |
4 | 4 | { |
5 | | - open3d::pipelines::registration::RegistrationResult Registration::o3dFastGlobalRegistrationFeatureMatching(std::shared_ptr<geometry::DFPointCloud> source, std::shared_ptr<geometry::DFPointCloud> target) |
| 5 | + open3d::pipelines::registration::RegistrationResult Registration::O3DFastGlobalRegistrationFeatureMatching(std::shared_ptr<geometry::DFPointCloud> source, std::shared_ptr<geometry::DFPointCloud> target) |
6 | 6 | { |
7 | | - auto sourceO3d = source->Cvt2O3DPointCloud(); |
8 | | - auto targetO3d = target->Cvt2O3DPointCloud(); |
| 7 | + auto sourceO3D = source->Cvt2O3DPointCloud(); |
| 8 | + auto targetO3D = target->Cvt2O3DPointCloud(); |
9 | 9 |
|
10 | | - sourceO3d->RandomDownSample(0.1); |
11 | | - targetO3d->RandomDownSample(0.1); |
| 10 | + sourceO3D->RandomDownSample(0.1); |
| 11 | + targetO3D->RandomDownSample(0.1); |
12 | 12 |
|
13 | | - std::shared_ptr<open3d::pipelines::registration::Feature> sourceFPFHFeatures = open3d::pipelines::registration::ComputeFPFHFeature(*sourceO3d, |
| 13 | + std::shared_ptr<open3d::pipelines::registration::Feature> sourceFPFHFeatures = open3d::pipelines::registration::ComputeFPFHFeature(*sourceO3D, |
14 | 14 | open3d::geometry::KDTreeSearchParamHybrid(0.25, 30)); |
15 | | - std::shared_ptr<open3d::pipelines::registration::Feature> targetFPFHFeatures = open3d::pipelines::registration::ComputeFPFHFeature(*targetO3d, |
| 15 | + std::shared_ptr<open3d::pipelines::registration::Feature> targetFPFHFeatures = open3d::pipelines::registration::ComputeFPFHFeature(*targetO3D, |
16 | 16 | open3d::geometry::KDTreeSearchParamHybrid(0.25, 30)); |
17 | 17 | std::shared_ptr<open3d::pipelines::registration::FastGlobalRegistrationOption> option = std::make_shared<open3d::pipelines::registration::FastGlobalRegistrationOption>(); |
18 | 18 | option->maximum_correspondence_distance_ = 0.05; |
19 | 19 | option->iteration_number_ = 100; |
20 | 20 | option->maximum_tuple_count_ = 500; |
21 | 21 |
|
22 | | - auto result = open3d::pipelines::registration::FastGlobalRegistrationBasedOnFeatureMatching(*sourceO3d, |
23 | | - *targetO3d, |
| 22 | + auto result = open3d::pipelines::registration::FastGlobalRegistrationBasedOnFeatureMatching(*sourceO3D, |
| 23 | + *targetO3D, |
24 | 24 | *sourceFPFHFeatures, |
25 | 25 | *targetFPFHFeatures, |
26 | 26 | *option); |
|
0 commit comments