extrinsic calibration recap fix

This commit is contained in:
David PAGNON 2023-12-19 18:00:01 +01:00 committed by GitHub
parent 93e34dc149
commit 4167e672f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1184,7 +1184,7 @@ def recap_calibrate(ret, calib_path, calib_full_type):
if calib_full_type in ['convert_qualisys', 'convert_vicon','convert_opencap', 'convert_biocv']: if calib_full_type in ['convert_qualisys', 'convert_vicon','convert_opencap', 'convert_biocv']:
ret_m.append( np.around(ret[c], decimals=3) ) ret_m.append( np.around(ret[c], decimals=3) )
ret_px.append( np.around(ret[c] / (Dm*1000) * f_px, decimals=3) ) ret_px.append( np.around(ret[c] / (Dm*1000) * f_px, decimals=3) )
elif calib_full_type=='calculate_board': elif calib_full_type=='calculate':
ret_px.append( np.around(ret[c], decimals=3) ) ret_px.append( np.around(ret[c], decimals=3) )
ret_m.append( np.around(ret[c]*Dm*1000 / f_px, decimals=3) ) ret_m.append( np.around(ret[c]*Dm*1000 / f_px, decimals=3) )