summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-16 04:46:49 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-16 04:46:49 +0200
commit0af2919408e56ce9a3853f84ebe3d844fab7019b (patch)
tree2219ae2681981a051d12c7952361e22d395512c4
parent778b957ca4f301f6d631b778cac6a8050f36e21e (diff)
sing
-rw-r--r--test-mogrify.py6
1 files changed, 4 insertions, 2 deletions
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)