Skip to content

Commit

Permalink
Update check_correspondences.c
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlib committed May 10, 2023
1 parent 97e1ac8 commit 2c120e1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion liboptv/tests/check_correspondences.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,17 @@ frame *generate_test_set(Calibration *calib[4], control_par *cpar,
targ->pnr = cpt_ix;

vec_set(tmp, cpt_vert * 10, cpt_horz * 10, 0);
if (cpt_ix == 0){
printf("cam %d, cpt %d: %f %f %f\n", cam, cpt_ix, tmp[0], tmp[1], tmp[2]);
}
img_coord(tmp, calib[cam], cpar->mm, &(targ->x), &(targ->y));
if (cpt_ix == 0){
printf("cam %d, cpt %d: %f %f\n", cam, cpt_ix, targ->x, targ->y);
}
metric_to_pixel(&(targ->x), &(targ->y), targ->x, targ->y, cpar);

if (cpt_ix == 0){
printf("cam %d, cpt %d: %f %f\n", cam, cpt_ix, targ->x, targ->y);
}
/* These values work in check_epi, so used here too */
targ->n = 25;
targ->nx = targ->ny = 5;
Expand Down Expand Up @@ -237,6 +245,10 @@ START_TEST(test_pairwise_matching)

read_all_calibration(calib, cpar);
frm = generate_test_set(calib, cpar, vpar);

printf("frame generated\n");
printf("%f %f %d\n", frm->targets[0][0].x, frm->targets[0][0].y, frm->targets[0][0].pnr);
printf("%f %f %d\n", frm->targets[1][0].x, frm->targets[1][0].y, frm->targets[1][0].pnr);

corrected = correct_frame(frm, calib, cpar, 0.0001);
safely_allocate_adjacency_lists(list, cpar->num_cams, frm->num_targets);
Expand Down

0 comments on commit 2c120e1

Please sign in to comment.