Skip to content

Commit

Permalink
[Trifocal+P2Pt] printing full non-truncated K_
Browse files Browse the repository at this point in the history
  • Loading branch information
rfabbri committed Nov 6, 2024
1 parent fc9a576 commit 57cd828
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/openMVG/sfm/pipelines/sequential/sequential_SfM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <array>
#include <functional>
#include <iostream>
#include <iomanip>
#include <utility>
#include <chrono>

Expand Down Expand Up @@ -383,7 +384,7 @@ MakeInitialTriplet3D(const Triplet &current_triplet)
OPENMVG_LOG_ERROR << "Trifocal initialization only works for pinhole intrinsics K matrix.";
return false;
}
OPENMVG_LOG_INFO << "K for v " << v << std::endl << dynamic_cast<const Pinhole_Intrinsic *>(cam[v])->K();
OPENMVG_LOG_INFO << "K for v " << v << std::fixed << std::setprecision(4) << std::endl << dynamic_cast<const Pinhole_Intrinsic *>(cam[v])->K();
}

OPENMVG_LOG_INFO << "Putative starting triplet info\n\tindex:";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ TEST(SEQUENTIAL_SFM, OrientedSfM)
// Configure the features_provider & the matches_provider from the synthetic dataset
std::shared_ptr<Features_Provider> feats_provider =
std::make_shared<Synthetic_Oriented_Features_Provider>();
// Add a tiny noise in 2D observations to make data more realistic
// No noise is added in this test - perfect data
dynamic_cast<Synthetic_Oriented_Features_Provider*>(feats_provider.get())->load(d);

std::shared_ptr<Matches_Provider> matches_provider =
Expand Down

0 comments on commit 57cd828

Please sign in to comment.