File size: 366 Bytes
0780cd9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
#!/usr/bin/env python3
import numpy as np
import glob
import os
dest = 'static_path1_blend/envmaps/'
os.makedirs(dest, exist_ok=True)
a = np.loadtxt('21-08_11_30_IMG_4022.txt')
b = np.loadtxt('15-08_14_30_IMG_8705.txt')
N = 50
for i in range(N):
blend = i/N
res = a*(1-blend)+b*(blend)
fn = f'{i:06d}.txt'
np.savetxt(os.path.join(dest, fn), res)
|