Last active
December 23, 2015 02:19
-
-
Save loganwilliams/6565614 to your computer and use it in GitHub Desktop.
overflow rainbows
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
import math | |
from scipy.misc import imread, imsave | |
import numpy as np | |
num_images = 2025 | |
mult_range = np.logspace(0,1.3,num_images) | |
for i in range(num_images): | |
print(str(i)) | |
a = imread('IMG_1037/IMG_1037 ' + str(i+1).zfill(4) + '.jpg') | |
b = a*mult_range[i] | |
imsave('IMG_1037/a/e' + str(i) + '.jpg', np.uint8(b)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment