Amould commited on
Commit
c1a8f2f
·
verified ·
1 Parent(s): 3c887d3

Update codes.py

Browse files
Files changed (1) hide show
  1. codes.py +1 -1
codes.py CHANGED
@@ -152,7 +152,7 @@ def wrap_points(img, x_source, y_source, l=1, DIM =128):
152
  for i in range(len(y_source)):
153
  x0 = x_source[i].int()
154
  y0 = y_source[i].int()
155
- if (x0<DIM) and (x0>0) and (y0<DIM) and (y0>0):
156
  img[:,:,x0-l:x0+l,y0-l:y0+l] = 0
157
  return img
158
 
 
152
  for i in range(len(y_source)):
153
  x0 = x_source[i].int()
154
  y0 = y_source[i].int()
155
+ if (x0<DIM) and (x0>0):# and (y0<DIM) and (y0>0):
156
  img[:,:,x0-l:x0+l,y0-l:y0+l] = 0
157
  return img
158