We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18a70ee commit adfee7eCopy full SHA for adfee7e
glomap/estimators/view_graph_calibration.cc
@@ -55,6 +55,11 @@ void ViewGraphCalibrator::Reset(
55
focals_.reserve(cameras.size());
56
for (const auto& [camera_id, camera] : cameras) {
57
focals_[camera_id] = camera.Focal();
58
+ // Avoid zero focal length
59
+ if (focals_[camera_id] < 1e-3) {
60
+ focals_[camera_id] =
61
+ std::max(std::max(camera.width, camera.height) * 1.2, 1e-3);
62
+ }
63
}
64
65
// Set up the problem
@@ -179,7 +184,7 @@ size_t ViewGraphCalibrator::FilterImagePairs(ViewGraph& view_graph) const {
179
184
180
185
181
186
LOG(INFO) << "invalid / total number of two view geometry: "
182
- << invalid_counter << " / " << counter;
187
+ << invalid_counter << " / " << (counter / 2);
183
188
189
return invalid_counter;
190
0 commit comments