@@ -420,10 +420,10 @@ double _propagate_calibration_uncertainty(
420420 cholmod_common common;
421421 cholmod_start (&common);
422422
423- // TODO fill this in
424- mrcal_calobject_warp_t warp{.x2 = 0.0 , .y2 = 0.0 };
423+ // TODO fill this in from args
424+ mrcal_calobject_warp_t warp{.x2 = 0.0006399284268664162 , .y2 = 0.0005657261093542594 };
425425
426- // TODO fill this in
426+ // TODO fill this in from args
427427 int imagersize[2 ]{1280 , 720 };
428428
429429 bool ret = mrcal_optimizer_callback (
@@ -462,6 +462,9 @@ double _propagate_calibration_uncertainty(
462462 // Solve JtJ * A = dF_dbpacked^T -> A has shape (Nstate, 2)
463463 Eigen::MatrixXd A = solve_xt_JtJ_bt (factorization, dF_dbpacked, &common);
464464
465+ std::cout << " A:\n "
466+ << A << " \n " ;
467+
465468 // Compute J_obs * A where J_obs = first Nmeasurements_boards rows of J
466469 // Jt has shape (Nstate, Nmeasurements), J has shape (Nmeasurements, Nstate)
467470 int Nmeasurements_observations = Nmeasurements_boards;
@@ -486,6 +489,10 @@ double _propagate_calibration_uncertainty(
486489 cholmod_free_factor (&factorization, &common);
487490 cholmod_finish (&common);
488491
492+ std::cout << " Var_dF:\n "
493+ << Var_dF << " \n " ;
494+ std::cout << " observed_pixel_uncertainty: " << observed_pixel_uncertainty << " \n " ;
495+
489496 return worst_direction_stdev (Var_dF) * observed_pixel_uncertainty;
490497}
491498
0 commit comments