Comments (4)
You will need to extract the matches from the database and parse the 3D model using the following utilities from the COLMAP repository:
- https://github.com/colmap/colmap/blob/dev/scripts/python/read_write_model.py
- https://github.com/colmap/colmap/blob/dev/scripts/python/database.py
Another useful link is https://colmap.github.io/format.html which explains the COLMAP reconstruction output format.
For each query image, you go through its matching pairs and only keep matches to keypoints that appear in the 3D model - in this way you infer a 2D-3D match from the 2D-2D ones in the COLMAP database.
Some version of this is already implemented in hloc - I think https://github.com/cvg/Hierarchical-Localization/blob/master/hloc/localize_sfm.py#L99.
from pycolmap.
Hi @mihaidusmanu. Thanks for the quick reply. I will look at them.
So you mean I should run the whole reconstruction and after it, I should extract 2d-3d points? At which stage in colmap reconstruction, we have a 3D model that I can extract 2d-3d points? I thought after "colmap matches_importer" I can extract them.
from pycolmap.
colmap matches_importer
simply imports 2D-2D matches. There is no mapping involved up until that point. The mapper
or point_triangulator
(when poses are known) produce the sparse 3D map based on local feature matches. You can take a look at the CLI tutorial for the different COLMAP mapping steps - see https://colmap.github.io/cli.html.
from pycolmap.
Ok. Thanks!
from pycolmap.
Related Issues (20)
- Error when building from source HOT 2
- bug while install pycolmap HOT 6
- Is there an Easy Debugging Method for COLMAP within Pycolmap? HOT 2
- `'pycolmap.Image' object has no attribute 'rotmat'` HOT 3
- AttributeError: module 'pycolmap' has no attribute 'Database' HOT 2
- Trying to install pycolmap either via the pip or via source not working HOT 4
- camera.img_from_cam not working HOT 1
- May I ask about the changes in the new version? HOT 1
- AttributeError: module 'pycolmap' has no attribute 'patch_match_stereo' HOT 2
- Type hints for python? HOT 4
- Are Point3D and Image 0 indexed? HOT 2
- Error when importing pycolmap HOT 5
- How to set up scaling sparse models to realistic sizes? HOT 1
- When should a class be bound with shared_ptr as its holder? HOT 2
- pycolmap build from source error HOT 1
- estimate_triangulation result not equal to incremental_mapper result HOT 2
- absolute_pose_estimation HOT 1
- using pycolmap align two scene But either the exact same image is not captured (no overlapping images), or only part of the images overlap
- Question about pycolmap.incremental_mapping HOT 3
- Bind Iterative Global SfM HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycolmap.