Affine reconstruction from perspective image pairs