Pros and cons of constrained and unconstrained formulation of the bundle adjustment problem