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

wrong unit in delay; do not guess distortion

parent 98e1d0b0
No related branches found
No related tags found
1 merge request!87Bug/intrinsic scaling
Pipeline #12667 passed
...@@ -34,7 +34,7 @@ void ftl::calibration::intrinsic(map<string, string> &opt) { ...@@ -34,7 +34,7 @@ void ftl::calibration::intrinsic(map<string, string> &opt) {
getOptionInt(opt, "height", 720)); getOptionInt(opt, "height", 720));
const int n_cameras = getOptionInt(opt, "n_cameras", 2); const int n_cameras = getOptionInt(opt, "n_cameras", 2);
const int iter = getOptionInt(opt, "iter", 40); const int iter = getOptionInt(opt, "iter", 40);
const int delay = getOptionInt(opt, "delay", 1); const int delay = getOptionInt(opt, "delay", 1000);
const double aperture_width = getOptionDouble(opt, "aperture_width", 6.2); const double aperture_width = getOptionDouble(opt, "aperture_width", 6.2);
const double aperture_height = getOptionDouble(opt, "aperture_height", 4.6); const double aperture_height = getOptionDouble(opt, "aperture_height", 4.6);
const string filename_intrinsics = getOptionString(opt, "profile", FTL_LOCAL_CONFIG_ROOT "/intrinsics.yml"); const string filename_intrinsics = getOptionString(opt, "profile", FTL_LOCAL_CONFIG_ROOT "/intrinsics.yml");
...@@ -63,9 +63,10 @@ void ftl::calibration::intrinsic(map<string, string> &opt) { ...@@ -63,9 +63,10 @@ void ftl::calibration::intrinsic(map<string, string> &opt) {
if (use_guess) { if (use_guess) {
camera_matrix.clear(); camera_matrix.clear();
dist_coeffs.clear(); vector<Mat> tmp;
loadIntrinsics(filename_intrinsics, camera_matrix, dist_coeffs); //dist_coeffs.clear();
CHECK((camera_matrix.size() == dist_coeffs.size()) && (camera_matrix.size() == n_cameras)); loadIntrinsics(filename_intrinsics, camera_matrix, tmp);
CHECK(camera_matrix.size() == n_cameras); // (camera_matrix.size() == dist_coeffs.size())
} }
vector<cv::VideoCapture> cameras; vector<cv::VideoCapture> cameras;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment