Skip to content

Commit

Permalink
Update to latest colmap #2575
Browse files Browse the repository at this point in the history
And fix } in test
  • Loading branch information
Dawars committed Jul 8, 2024
1 parent 93c3407 commit 1fab153
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pixsfm/bundle_adjustment/src/bundle_optimizer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ void GenerateReconstruction(const size_t num_images, const size_t num_points,
reconstruction->Image(image_id).SetPoints2D(points2D);
}

reconstruction->SetUp(correspondence_graph);

for (size_t i = 0; i < num_images; ++i) {
const image_t image_id = static_cast<image_t>(i);
TrackElement track_el;
Expand All @@ -144,7 +142,7 @@ void CompareReconstructions(colmap::Reconstruction* reconstruction1,
auto& image2 = reconstruction2->Image(image_pair.first);
EXPECT_ALL_NEAR((image1).CamFromWorld().rotation.coeffs(), (image2).CamFromWorld().rotation.coeffs());
EXPECT_ALL_NEAR((image1).CamFromWorld().translation, (image2).CamFromWorld().translation);

}
for (auto& camera_pair : reconstruction1->Cameras()) {
auto& camera1 = camera_pair.second;
auto& camera2 = reconstruction2->Camera(camera_pair.first);
Expand Down

0 comments on commit 1fab153

Please sign in to comment.