'Positioning 360 images relative to each other in 3d space

I have a bunch of equiangular photos of an office (like this one) and 3d models of a building from them (like this). Right now, I can build a model based on each image separately, but I need to combine these models into one. Is there a way to get the camera center coordinates for each photo relative to the first one? I'm not limited to any language or library, but I tried to do it with functions matching in opencv and can't get any results with it due to the big photo difference (each photo can be taken a meter or so from the previous one).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source