fffiloni commited on
Commit
31df575
·
1 Parent(s): 07dc410

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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], axis = 0)
83
  #YY = YY + vy
84
- YY = np.concatenate([YY, vy], axis = 1)
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)