upgrade numpy to 1.25.0 and fix bugs (#861)

This commit is contained in:
Atsushi Sakai
2023-07-01 15:30:32 +09:00
committed by GitHub
parent 67edaf8b02
commit 4d71470631
18 changed files with 66 additions and 58 deletions

View File

@@ -40,9 +40,9 @@ def circle_fitting(x, y):
T = np.linalg.inv(F).dot(G)
cxe = float(T[0] / -2)
cye = float(T[1] / -2)
re = math.sqrt(cxe**2 + cye**2 - T[2])
cxe = float(T[0, 0] / -2)
cye = float(T[1, 0] / -2)
re = math.sqrt(cxe**2 + cye**2 - T[2, 0])
error = sum([np.hypot(cxe - ix, cye - iy) - re for (ix, iy) in zip(x, y)])