From 0af2919408e56ce9a3853f84ebe3d844fab7019b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 16 May 2018 04:46:49 +0200 Subject: sing --- test-mogrify.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test-mogrify.py') diff --git a/test-mogrify.py b/test-mogrify.py index eac9ddd..b1ba30d 100644 --- a/test-mogrify.py +++ b/test-mogrify.py @@ -16,6 +16,7 @@ import cv2 from datetime import datetime import re import sys +import math import subprocess from time import sleep @@ -198,8 +199,9 @@ if __name__ == '__main__': if data_opt.sequence and A_dir is not None: A_img = Image.open(sequence_path).convert('RGB') A_im = np.asarray(A_img) - frac_a = data_opt.recursive_frac * (1 - (i/(opt.how_many))) - frac_b = data_opt.sequence_frac * (1 - (i/(opt.how_many))) + t = math.sin(i / 3000 * math.pi * 2 ) + frac_a = data_opt.recursive_frac * (1 - t) + frac_b = data_opt.sequence_frac * (1 - t) frac_c = 1.0 - frac_a - frac_b array_a = np.multiply(last_im.astype('float64'), frac_a) array_b = np.multiply(A_im.astype('float64'), frac_b) -- cgit v1.2.3-70-g09d2