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