Closed shubham-monarch closed 5 months ago
These are really image indices and not IDs: https://github.com/colmap/colmap/blob/71cebde85b5ce290c93f67326eea7c1b1c0cea97/src/colmap/mvs/model.cc#L62-L79 I don't know if they are indices in the list of sorted IDs or instead the order of the IDs on file (in case they're not sorted):
image_id = sorted(rec.images.keys())[image_idx]
# or
image_id = list(rec.images.keys())[image_idx]
Makes sense. Thanks.
I am reading the
images.bin
file inside thesparse
folder using =>As we can see the 'first' two
keys
(images) in thesparse_img_dict
have the ids29
and28
respectively.I, then, perform dense reconstruction and use the
read_write_fused_vis.read_fused
function to read thefused.ply
andfused.ply.vis
files as follows =>Now, we can see that the visible image indices of
pt3D
is7
. Which of these 2 cases does this imply? Does this mean that the target image has the id7
i.e.target_img = sparse_img_dict[7]
Or does this mean that the target image is the8th (7 + 1)
element in thesparse_img_dict
i.e.target_img = sparse_img_dict[sparse_keys[7]]
?