#!/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) | |