Created
March 26, 2018 03:27
-
-
Save jonhilgart22/c7b0e60b1195848f01ef554b50a6ac59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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