Automatic estimation of initial approximations of parameters for bundle adjustment