From 18a70eed0e36eae7c42e1c5ef0ae6a6f8cdc6943 Mon Sep 17 00:00:00 2001 From: Linfei Pan <36349740+lpanaf@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:03:41 +0100 Subject: [PATCH] avoid the inconsistency between the exported 3d point and 3d point in images (#151) --- glomap/io/colmap_converter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glomap/io/colmap_converter.cc b/glomap/io/colmap_converter.cc index eb4bf51..a52455c 100644 --- a/glomap/io/colmap_converter.cc +++ b/glomap/io/colmap_converter.cc @@ -81,7 +81,7 @@ void ConvertGlomapToColmap(const std::unordered_map& cameras, colmap_point.track.AddElement(colmap_track_el); } - if (colmap_point.track.Length() < min_supports) continue; + if (track.observations.size() < min_supports) continue; colmap_point.track.Compress(); reconstruction.AddPoint3D(track_id, std::move(colmap_point));