Skip to content

Commit

Permalink
fix bugs for edge mode in ppf estimator
Browse files Browse the repository at this point in the history
  • Loading branch information
yuecideng committed Mar 4, 2022
1 parent d98c883 commit 84942da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ppf_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,11 @@ void PPFEstimator::Impl::PreprocessEstimate(
pc_sample.points_.size(), num);

if (enable_edge_support_) {
const auto o3d_pc_dense = pc->VoxelDownSample(dist_step_dense_);
dense_scene_sample_ = *pc->VoxelDownSample(dist_step_dense_);

scene_edge_ind_.clear();
const double radius = diameter_ * calc_normal_relative_;
ExtractEdges(*o3d_pc_dense, radius, scene_edge_ind_);
ExtractEdges(dense_scene_sample_, radius, scene_edge_ind_);
}

MISC3D_INFO("Preprocess time cost for estimate stage: {}", timer.Stop());
Expand Down Expand Up @@ -354,7 +354,7 @@ bool PPFEstimator::Impl::Estimate(const PointCloudPtr &pc,
PPFEstimatorConfig::VotingMode::EdgePoints) {
const auto scene_boundary_points =
dense_scene_sample_.SelectByIndex(scene_edge_ind_);

// we use sampled key points and edge points for point pair computation
VotingAndGetPose(*key_points, *scene_boundary_points,
hashtable_boundary_, tmg_ptr_boundary_, pose_list,
Expand Down

0 comments on commit 84942da

Please sign in to comment.