Skip to content

Commit db294c1

Browse files
authored
fix colmap convention for the pair id calculation (#150)
1 parent 2a3db50 commit db294c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

glomap/scene/types.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include <colmap/geometry/rigid3.h>
4+
#include <colmap/scene/database.h>
45
#include <colmap/util/types.h>
56

67
#include <cstdint>
@@ -33,7 +34,7 @@ typedef uint64_t track_t;
3334

3435
using colmap::Rigid3d;
3536

36-
const image_t kMaxNumImages = std::numeric_limits<image_t>::max();
37+
const image_t kMaxNumImages = colmap::Database::kMaxNumImages;
3738
const image_pair_t kInvalidImagePairId = -1;
3839

3940
} // namespace glomap

0 commit comments

Comments
 (0)