Skip to content

Instantly share code, notes, and snippets.

@jonhilgart22
Created March 26, 2018 03:27
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 jonhilgart22/c7b0e60b1195848f01ef554b50a6ac59 to your computer and use it in GitHub Desktop.
Save jonhilgart22/c7b0e60b1195848f01ef554b50a6ac59 to your computer and use it in GitHub Desktop.
for i in range(1,13):
sample_0_color = cv2.imread('./images/source/online/{}.tif'.format(i))
channels_0 = blue, green, red = np.rollaxis(sample_0_color, 2)
sample_0_color = np.dstack((red, green, blue))
small = cv2.resize(sample_0_color, (0,0), fx=0.15, fy=0.15)
plt.imsave('./images/source/online/{}.jpg'.format(i), small)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment