aux/tracking: assert on fisheye mat size for fisheye path

This commit is contained in:
Moses Turner 2021-12-25 03:08:51 -06:00 committed by Jakob Bornecrantz
parent 5eb739bb1a
commit 17034f0283

View file

@ -547,7 +547,7 @@ t_stereo_camera_calibration_to_json_v2(cJSON **out_cjson, struct t_stereo_camera
jb << "distortion";
jb << "{";
if (view.use_fisheye) {
int n = view.distortion_mat.size().area(); // Number of distortion parameters
int n = view.distortion_fisheye_mat.size().area(); // Number of distortion parameters
CALIB_ASSERT_(n == 4);
constexpr array names{"k1", "k2", "k3", "k4"};