colmap / glomap

GLOMAP - Global Structured-from-Motion Revisited
BSD 3-Clause "New" or "Revised" License
1.3k stars 77 forks source link

Camera prior focal length #38

Closed lnexenl closed 1 month ago

lnexenl commented 1 month ago

I have some cameras with accurate prior focal lengths. I tried to use --BundleAdjustment.optimize_intrinsics 0 argument to keep intrinsics constant. This really works for BA part.

However, I find out that the view_graph_calibration part will always change focal lengths. For has_prior_focal_length param in Camera struct is always set to false. Will there be any options to configure this later?

lnexenl commented 1 month ago

OK I found that ViewGraphCalibration should be skipped if I already have accurate prior focals.

lnexenl commented 1 week ago

Update: add --skip_view_graph_calibration 1 param will also skip rotation averaging indeed, so don't do this. Set prior_focal_length=1 in database.db instead