Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refined rotation averaging #3

Merged
merged 20 commits into from
Jul 29, 2024
Merged

Refined rotation averaging #3

merged 20 commits into from
Jul 29, 2024

Conversation

lpanaf
Copy link
Collaborator

@lpanaf lpanaf commented Jul 28, 2024

  • Initialization from MST
  • Gravity-aligned rotation averaging


// Unique identifier for images.
typedef uint32_t image_t;
using colmap::image_t;

// Each image pair gets a unique ID, see `Database::ImagePairToPairId`.
typedef uint64_t image_pair_t;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also use colmap here.

Comment on lines 82 to 83
std::unordered_map<image_t, int> image_id_to_idx;
std::unordered_map<int, image_t> idx_to_image_id;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
std::unordered_map<image_t, int> image_id_to_idx;
std::unordered_map<int, image_t> idx_to_image_id;
std::unordered_map<image_t, int> image_id_to_idx;
image_id_to_idx.reserve(images.size());
std::unordered_map<int, image_t> idx_to_image_id;
idx_to_image_id.reserve(images.size());

@ahojnnes
Copy link
Contributor

Maybe run a clang_fromat before merging.

@lpanaf lpanaf merged commit 48fba16 into main Jul 29, 2024
4 checks passed
@lpanaf lpanaf deleted the orientation_from_mst branch July 29, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants