Skip to content

Commit

Permalink
Fix benchmark param for ICP
Browse files Browse the repository at this point in the history
  • Loading branch information
reyanshsolis authored Jun 21, 2022
1 parent c43eabe commit 22ba96f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions cpp/benchmarks/pipelines/registration/Registration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ namespace registration {
// ICP ConvergenceCriteria.
static const double relative_fitness = 1e-6;
static const double relative_rmse = 1e-6;
static const int max_iterations = 30;
static const int max_iterations = 10;

static const double voxel_downsampling_factor = 0.02;

// NNS parameter.
static const double max_correspondence_distance = 0.05;
Expand Down Expand Up @@ -77,9 +79,9 @@ static void BenchmarkICPLegacy(benchmark::State& state,
const TransformationEstimationType& type) {
data::DemoICPPointClouds demo_icp_pointclouds;
geometry::PointCloud source, target;
std::tie(source, target) = LoadPointCloud(
demo_icp_pointclouds.GetPaths(0), demo_icp_pointclouds.GetPaths(1),
/*voxel_downsampling_factor =*/0.02);
std::tie(source, target) = LoadPointCloud(demo_icp_pointclouds.GetPaths(0),
demo_icp_pointclouds.GetPaths(1),
voxel_downsampling_factor);

std::shared_ptr<TransformationEstimation> estimation;
if (type == TransformationEstimationType::PointToPlane) {
Expand Down
4 changes: 3 additions & 1 deletion cpp/benchmarks/t/pipelines/registration/Registration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ static const double relative_fitness = 1e-6;
static const double relative_rmse = 1e-6;
static const int max_iterations = 10;

static const double voxel_downsampling_factor = 0.02;

// NNS parameter.
static const double max_correspondence_distance = 0.05;

Expand Down Expand Up @@ -103,7 +105,7 @@ static void BenchmarkICP(benchmark::State& state,
geometry::PointCloud source, target;
std::tie(source, target) = LoadTensorPointCloudFromFile(
demo_icp_pointclouds.GetPaths(0), demo_icp_pointclouds.GetPaths(1),
/*voxel_downsampling_factor =*/0.02, dtype, device);
voxel_downsampling_factor, dtype, device);

std::shared_ptr<TransformationEstimation> estimation;
if (type == TransformationEstimationType::PointToPlane) {
Expand Down

0 comments on commit 22ba96f

Please sign in to comment.