Skip to content

Commit

Permalink
outputting only regular solutions
Browse files Browse the repository at this point in the history
  • Loading branch information
rfabbri committed Oct 7, 2023
1 parent 21a847f commit 13c0acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minus/minus.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ all_solutions2cams(solution raw_solutions[M::nsols], F cameras[M::nsols][2][4][3
*nsols_final = 0;
for (unsigned sol=0; sol < M::nsols; ++sol) {
F real_solution[M::nve];
if (v::get_real(raw_solutions[sol].x, real_solution)) {
if (raw_solutions[sol].status == M::REGULAR && v::get_real(raw_solutions[sol].x, real_solution)) {
id_sols[(*nsols_final)++] = sol;
// build cams by using quat2rotm
solution2cams(real_solution, (F (*)[4][3] ) (cameras + sol));
Expand Down

0 comments on commit 13c0acc

Please sign in to comment.