Skip to content

Commit

Permalink
Fix overdetermined similarity transform estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
ahojnnes committed Jun 5, 2020
1 parent 13402a7 commit 2139cd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/base/similarity_transform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ struct ReconstructionAlignmentEstimator {
const std::vector<Y_t>& images2) const {
CHECK_GE(images1.size(), 3);
CHECK_GE(images2.size(), 3);
CHECK_EQ(images1.size(), images2.size());

std::vector<Eigen::Vector3d> proj_centers1(images1.size());
std::vector<Eigen::Vector3d> proj_centers2(images2.size());
for (size_t i = 0; i < 3; ++i) {
for (size_t i = 0; i < images1.size(); ++i) {
CHECK_EQ(images1[i]->ImageId(), images2[i]->ImageId());
proj_centers1[i] = images1[i]->ProjectionCenter();
proj_centers2[i] = images2[i]->ProjectionCenter();
Expand Down

0 comments on commit 2139cd5

Please sign in to comment.