modeld.cc construct matrix directly from data

pull/20229/head
Willem Melching 4 years ago
parent 7c8fcad602
commit a27245e6c1
  1. 5
      selfdrive/modeld/modeld.cc

@ -36,10 +36,7 @@ void* live_thread(void *arg) {
-1.09890110e-03, 0.00000000e+00, 2.81318681e-01, -1.09890110e-03, 0.00000000e+00, 2.81318681e-01,
-1.84808520e-20, 9.00738606e-04,-4.28751576e-02; -1.84808520e-20, 9.00738606e-04,-4.28751576e-02;
Eigen::Matrix<float, 3, 3> fcam_intrinsics; Eigen::Matrix<float, 3, 3> fcam_intrinsics(fcam_intrinsic_matrix.v);
for (auto &v : fcam_intrinsic_matrix.v) {
fcam_intrinsics << v;
}
#ifndef QCOM2 #ifndef QCOM2
float db_s = 0.5; // debayering does a 2x downscale float db_s = 0.5; // debayering does a 2x downscale
#else #else

Loading…
Cancel
Save