Skip to content

Commit

Permalink
filter outliers
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyGui committed Aug 15, 2024
1 parent 557fbb5 commit e490594
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/colmap/sfm/incremental_mapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,10 @@ bool IncrementalMapper::RegisterImageSLAM(const Options& options,
continue;
}

//check the correspondence between the corr_image and current registering image
point2D_t num_matches = correspondence_graph->NumCorrespondencesBetweenImages(image_id,corr->image_id);
if(num_matches<100) continue;

const Point2D& corr_point2D = corr_image.Point2D(corr->point2D_idx);
if (!corr_point2D.HasPoint3D()) {
continue;
Expand Down

0 comments on commit e490594

Please sign in to comment.