summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rw-r--r--test.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/test.py b/test.py
index 339b77d..30525c1 100644
--- a/test.py
+++ b/test.py
@@ -61,13 +61,14 @@ if __name__ == '__main__':
# image_pil.save(save_path)
# copyfile(save_path, final_path)
if last_im is not None:
- frac = 4.
+ frac_a = 1/2
+ frac_b = 1/2
tmp_im = im.copy()
- array_a = np.multiply(im, 1/frac)
- array_b = np.multiply(last_im, (frac-1)/frac)
+ array_a = np.multiply(im, frac_a)
+ array_b = np.multiply(last_im, frac_b)
im = np.add(array_a, array_b).astype('int8')
# print(im.shape, im.dtype)
- last_im = tmp_im
+ # last_im = tmp_im
else:
last_im = im.copy()
# print(im.shape, im.dtype)