Skip to content

Instantly share code, notes, and snippets.

@mdshopon
Created July 30, 2018 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdshopon/f26aa70992f28070d48acf79a3eb5967 to your computer and use it in GitHub Desktop.
Save mdshopon/f26aa70992f28070d48acf79a3eb5967 to your computer and use it in GitHub Desktop.
for i in range(50):
img=np.insert(img,0,255,axis=1)
for i in range(50):
img = np.insert(img, img.shape[1], 255, axis=1)
for i in range(25):
img = np.insert(img, 0, [255], axis=0)
for i in range(25):
img = np.insert(img, img.shape[0], 255, axis=0)
for i in range(50):
img=np.insert(img,0,255,axis=1)
for i in range(50):
img = np.insert(img, img.shape[1], 255, axis=1)
for i in range(25):
img = np.insert(img, 0, [255], axis=0)
for i in range(25):
img = np.insert(img, img.shape[0], 255, axis=0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment