Skip to content

Commit

Permalink
Minor changes to coregistration. Still needs cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
havardlovas committed May 13, 2024
1 parent 2d4df23 commit 668722d
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions gref4hsi/scripts/coregistration.py
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,8 @@ def main(config_path, mode, is_calibrated):
'calibrate_f': False,
'calibrate_k1': False,
'calibrate_k2': False,
'calibrate_k3': False}
'calibrate_k3': False
}

calibrate_per_transect = True
estimate_time_varying = True
Expand Down Expand Up @@ -1111,14 +1112,10 @@ def main(config_path, mode, is_calibrated):


# Whether to plot the error vectors as functions of time

# TODO: remove these
plot_err_vec_time = True
plot_node_spacing = False





# Localize the prior calibration and use as initial parameters as well as constants for parameter xx if calibrate_xx = False
cal_obj_prior = CalibHSI(file_name_cal_xml=config['Absolute Paths']['hsi_calib_path'])

Expand All @@ -1130,16 +1127,16 @@ def main(config_path, mode, is_calibrated):
is_variab_param_extr = np.zeros(6).astype(np.int64)

param0 = np.array([cal_obj_prior.rx,
cal_obj_prior.ry,
cal_obj_prior.rz,
cal_obj_prior.cx,
cal_obj_prior.f,
cal_obj_prior.k1,
cal_obj_prior.k2,
cal_obj_prior.k3,
cal_obj_prior.tx,
cal_obj_prior.ty,
cal_obj_prior.tz])
cal_obj_prior.ry,
cal_obj_prior.rz,
cal_obj_prior.cx,
cal_obj_prior.f,
cal_obj_prior.k1,
cal_obj_prior.k2,
cal_obj_prior.k3,
cal_obj_prior.tx,
cal_obj_prior.ty,
cal_obj_prior.tz])

if calibrate_dict ['calibrate_boresight']:
is_variab_param_intr[0:3] = 1
Expand Down

0 comments on commit 668722d

Please sign in to comment.