Skip to content

Commit

Permalink
As of benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
tizianoGuadagnino committed Jul 11, 2024
1 parent 07f97b1 commit 9f87b9b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cpp/kiss_icp/core/Preprocessing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ std::vector<Eigen::Vector3d> VoxelDownsample(const std::vector<Eigen::Vector3d>
if (!grid.contains(voxel)) grid.insert({voxel, point});
});
std::vector<Eigen::Vector3d> frame_dowsampled(grid.size());
std::transform(std::make_move_iterator(grid.begin()), //
std::make_move_iterator(grid.end()), //
frame_dowsampled.begin(),
[](auto &&voxel_and_point) { return voxel_and_point.second; });
std::transform(grid.cbegin(), grid.cend(), frame_dowsampled.begin(),
[](const auto &voxel_and_point) { return voxel_and_point.second; });
return frame_dowsampled;
}

Expand Down

0 comments on commit 9f87b9b

Please sign in to comment.