Skip to content

Commit cff716c

Browse files
generatedunixname537391475639613meta-codesync[bot]
authored andcommitted
fbcode/mapillary/opensfm/opensfm/src/geometry/src
Differential Revision: D86404563 fbshipit-source-id: eb8c4b98542b4c459a38a6e9c7986c237a008d18
1 parent a7e674b commit cff716c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

opensfm/src/geometry/src/triangulation.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ std::pair<bool, Vec3d> TriangulateBearingsMidpoint(
143143
const std::vector<double>& threshold_list, double min_angle,
144144
double min_depth) {
145145
const int count = centers.rows();
146+
if (threshold_list.size() < static_cast<size_t>(count)) {
147+
return std::make_pair(false, Vec3d());
148+
}
146149

147150
// Check angle between rays
148151
bool angle_ok = false;

0 commit comments

Comments
 (0)