Skip to content
Snippets Groups Projects
Commit 8ea899e2 authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

bug in non-grid mode

parent bbf44f9d
No related branches found
No related tags found
1 merge request!44Feature/calibapp improvements
Pipeline #11732 passed
......@@ -28,7 +28,7 @@ void ftl::calibration::stereo(map<string, string> &opt) {
Size image_size = Size( getOptionInt(opt, "width", 1280),
getOptionInt(opt, "height", 720));
// iterations
int iter = getOptionInt(opt, "iter", 4);
int iter = getOptionInt(opt, "iter", 3);
// delay between images
double delay = getOptionInt(opt, "delay", 250);
// max_error for a single image; if error larger image discarded
......@@ -189,7 +189,7 @@ void ftl::calibration::stereo(map<string, string> &opt) {
}
}
else {
object_points_grid.push_back(points_ref);
object_points.push_back(points_ref);
for (size_t i = 0; i < 2; i++) { image_points[i].push_back(new_points[i]); }
iter--;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment