Skip to content

Commit

Permalink
Merge pull request #350 from adujardin/master
Browse files Browse the repository at this point in the history
Add validity check to focal guess
  • Loading branch information
floriantschopp authored Feb 26, 2022
2 parents 5d971b1 + 5c3c049 commit 445b946
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,8 @@ bool PinholeProjection<DISTORTION_T>::initializeIntrinsics(const std::vector<Gri
continue;

double f_guess = cv::norm(ipts.at(0) - ipts.at(1)) / M_PI;
f_guesses.push_back(f_guess);
if(std::isfinite(f_guess))
f_guesses.push_back(f_guess);
}
}
}
Expand Down

0 comments on commit 445b946

Please sign in to comment.