mapillary / OpenSfM

Open source Structure-from-Motion pipeline
https://www.opensfm.org/
BSD 2-Clause "Simplified" License
3.35k stars 853 forks source link

Usage of the reconstruct_from_prior Function #1054

Open omose-maas opened 3 months ago

omose-maas commented 3 months ago

Hi,

First of all, thank you for the amazing code and all your hard work on this project!

I have a question regarding the reconstruct_from_prior function. This function is not documented, and although I have read through the code, I am not confident in my understanding.

Is my understanding correct that this function reads an existing reconstruction and recalculates the points? In what scenarios would recalculating the points be necessary?

My primary goal is to add new images to an existing reconstruction as mentioned in the this PR178 If there is an existing method for this, I would greatly appreciate your guidance.

Thank you for your time and assistance!

oaa3wf commented 1 month ago

For adding more images to an existing reconstruction, this function: https://github.com/mapillary/OpenSfM/blob/1106198c79a0417fe59df68293c59ba7688533c0/opensfm/reconstruction.py#L1386, and this file: https://github.com/mapillary/OpenSfM/blob/main/opensfm/actions/extend_reconstruction.py may be of interest to you.