@@ -549,17 +549,17 @@ std::vector<mrcal_point3_t> compute_uncertainty(
549549 calobjectSize.width , calobjectSize.height , calobjectSpacing, imagerSize,
550550 warp);
551551
552- #ifndef SLEIPNIR_DISABLE_DIAGNOSTICS
553- slp::Spy<double > spy_J_observations (
554- " J_observations.spy" , " J_observations Matrix" , " Measurements" , " State" ,
555- context.Nmeasurements_boards , context.Nstate );
556- spy_J_observations.add (context.J_observations );
557-
558- auto JtJ = context.J_observations .transpose () * context.J_observations ;
559- slp::Spy<double > spy_JtJ (" JtJ.spy" , " JtJ Matrix (Normal Equations)" , " State" ,
560- " State" , context.Nstate , context.Nstate );
561- spy_JtJ.add (JtJ);
562- #endif
552+ // #ifndef SLEIPNIR_DISABLE_DIAGNOSTICS
553+ // slp::Spy<double> spy_J_observations(
554+ // "J_observations.spy", "J_observations Matrix", "Measurements", "State",
555+ // context.Nmeasurements_boards, context.Nstate);
556+ // spy_J_observations.add(context.J_observations);
557+
558+ // auto JtJ = context.J_observations.transpose() * context.J_observations;
559+ // slp::Spy<double> spy_JtJ("JtJ.spy", "JtJ Matrix (Normal Equations)", "State",
560+ // "State", context.Nstate, context.Nstate);
561+ // spy_JtJ.add(JtJ);
562+ // #endif
563563
564564 // hard code some stuff
565565 auto q = sample_imager (sampleResolution, imagerSize);
@@ -605,22 +605,22 @@ std::vector<mrcal_point3_t> compute_uncertainty(
605605
606606 ret.push_back (mrcal_point3_t {qi.x , qi.y , uncertainty});
607607
608- #ifndef SLEIPNIR_DISABLE_DIAGNOSTICS
609- if (i < 5 ) {
610- int istate_frames0 = mrcal_state_index_frames (
611- 0 , 1 , 0 , 6 , 0 , 0 , 6 , problem_selections, &lensmodel);
612-
613- auto dq_db = _dq_db_projection_uncertainty (pi, lensmodel, rt_ref_frames,
614- context.Nstate , istate_frames0,
615- intrinsics);
616-
617- Eigen::SparseMatrix<double > dq_db_sparse = dq_db.sparseView ();
618- slp::Spy<double > spy_gradient (fmt::format (" gradient_{}.spy" , i),
619- fmt::format (" Gradient dq_db Point {}" , i),
620- " Output" , " State" , 2 , context.Nstate );
621- spy_gradient.add (dq_db_sparse);
622- }
623- #endif
608+ // #ifndef SLEIPNIR_DISABLE_DIAGNOSTICS
609+ // if (i < 5) {
610+ // int istate_frames0 = mrcal_state_index_frames(
611+ // 0, 1, 0, 6, 0, 0, 6, problem_selections, &lensmodel);
612+
613+ // auto dq_db = _dq_db_projection_uncertainty(pi, lensmodel, rt_ref_frames,
614+ // context.Nstate, istate_frames0,
615+ // intrinsics);
616+
617+ // Eigen::SparseMatrix<double> dq_db_sparse = dq_db.sparseView();
618+ // slp::Spy<double> spy_gradient(fmt::format("gradient_{}.spy", i),
619+ // fmt::format("Gradient dq_db Point {}", i),
620+ // "Output", "State", 2, context.Nstate);
621+ // spy_gradient.add(dq_db_sparse);
622+ // }
623+ // #endif
624624 }
625625
626626 return ret;
0 commit comments