Update app.py
Browse files
app.py
CHANGED
@@ -79,9 +79,9 @@ def warpImage(im, vx, vy, cast_uint8=True):
|
|
79 |
xx, yy = np.meshgrid(x, y)
|
80 |
XX, YY = np.meshgrid(X, Y)
|
81 |
#XX = XX + vx
|
82 |
-
XX = np.concatenate([XX, vx]
|
83 |
#YY = YY + vy
|
84 |
-
YY = np.concatenate([YY, vy]
|
85 |
mask = (XX < 1) | (XX > width2) | (YY < 1) | (YY > height2)
|
86 |
XX = np.clip(XX, 1, width2)
|
87 |
YY = np.clip(XX, 1, height2)
|
|
|
79 |
xx, yy = np.meshgrid(x, y)
|
80 |
XX, YY = np.meshgrid(X, Y)
|
81 |
#XX = XX + vx
|
82 |
+
XX = np.concatenate([XX, vx])
|
83 |
#YY = YY + vy
|
84 |
+
YY = np.concatenate([YY, vy])
|
85 |
mask = (XX < 1) | (XX > width2) | (YY < 1) | (YY > height2)
|
86 |
XX = np.clip(XX, 1, width2)
|
87 |
YY = np.clip(XX, 1, height2)
|