8000 Avoid dependent inputs in IncrementalMapperImpl by B1ueber2y · Pull Request #3043 · colmap/colmap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Avoid dependent inputs in IncrementalMapperImpl #3043

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

Merged
merged 3 commits into from
Dec 15, 2024

Conversation

B1ueber2y
Copy link
Contributor
@B1ueber2y B1ueber2y commented Dec 15, 2024

As mentioned in #3042, there are some dependencies in the graph that we need to take care of to avoid inconsistency, notably:

  • ObservationManager and DatabaseCache shares a same CorrespondenceGraph object, so should not be listed as input together to a static method
  • ObservationManager has a reference to the Reconstruction object, so should not be listed as input together with a Reconstruction object to a static method

This PR contains the updates as follows:

  • use const ref rather than smart pointers as input in the algorithm class
  • use NumCorrespondencesForImage from CorrespondenceGraph rather than ObservationManager to avoid dependent input
  • add getter for the Reconstruction object to the ObservationManager class to avoid dependent input.

@B1ueber2y B1ueber2y enabled auto-merge (squash) December 15, 2024 20:39
@B1ueber2y B1ueber2y merged commit 89aaae8 into colmap:main Dec 15, 2024
16 checks passed
@B1ueber2y
8000
B1ueber2y deleted the refactor/simplify_logic branch December 15, 2024 22:03
B1ueber2y added a commit that referenced this pull request Dec 16, 2024
Minor update concerning the dependencies described in
#3043
HernandoR pushed a commit to HernandoR/colmap that referenced this pull request Dec 30, 2024
As mentioned in colmap#3042, there are
some dependencies in the graph that we need to take care of to avoid
inconsistency, notably:
* ``ObservationManager`` and ``DatabaseCache`` shares a same
``CorrespondenceGraph`` object, so should not be listed as input
together to a static method
* ``ObservationManager`` has a reference to the ``Reconstruction``
object, so should not be listed as input together with a
``Reconstruction`` object to a static method

This PR contains the updates as follows:
* use const ref rather than smart pointers as input in the algorithm
class
* use ``NumCorrespondencesForImage`` from ``CorrespondenceGraph`` rather
than ``ObservationManager`` to avoid dependent input
* add getter for the ``Reconstruction`` object to the
``ObservationManager`` class to avoid dependent input.
HernandoR pushed a commit to HernandoR/colmap that referenced this pull request Dec 30, 2024
Minor update concerning the dependencies described in
colmap#3043
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None 42BA yet
Development

Successfully merging this pull request may close these issues.

2 participants
0