Determining the focal length of a lens model