mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-28 20:54:03 +08:00
Fix: should add LEFT edge of first column of grids in Homography.to_perspective() (#5443)
This commit is contained in:
@@ -408,7 +408,7 @@ class Homography:
|
|||||||
hori = Points([640, grids[(0, 0)][1, 1]]).link(None, is_horizontal=True)
|
hori = Points([640, grids[(0, 0)][1, 1]]).link(None, is_horizontal=True)
|
||||||
for y in range(shape[1] + 1):
|
for y in range(shape[1] + 1):
|
||||||
hori = hori.add(Points([640, grids[(0, y)][3, 1]]).link(None, is_horizontal=True))
|
hori = hori.add(Points([640, grids[(0, y)][3, 1]]).link(None, is_horizontal=True))
|
||||||
vert = Points(grids[(0, 0)][1]).link(grids[(0, shape[1])][3])
|
vert = Points(grids[(0, 0)][0]).link(grids[(0, shape[1])][2])
|
||||||
for x in range(shape[0] + 1):
|
for x in range(shape[0] + 1):
|
||||||
vert = vert.add(Points(grids[(x, 0)][1]).link(grids[(x, shape[1])][3]))
|
vert = vert.add(Points(grids[(x, 0)][1]).link(grids[(x, shape[1])][3]))
|
||||||
return hori, vert
|
return hori, vert
|
||||||
|
|||||||
Reference in New Issue
Block a user