Skip to content

Commit

Permalink
Fixed not scaling rotation in canonicalizeP
Browse files Browse the repository at this point in the history
  • Loading branch information
metametamoon committed Mar 18, 2024
1 parent 47f2a20 commit c2bf586
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/phg/sfm/resection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ namespace {
}
sc = std::sqrt(3 / sc);

tt *= sc;
RR *= sc;

Eigen::MatrixXd RRe;
copy(RR, RRe);
Eigen::JacobiSVD<Eigen::MatrixXd> svd(RRe, Eigen::ComputeFullU | Eigen::ComputeFullV);
RRe = svd.matrixU() * svd.matrixV().transpose();
copy(RRe, RR);

tt *= sc;

matrix34d result;
for (int i = 0; i < 9; ++i) {
Expand Down

0 comments on commit c2bf586

Please sign in to comment.