summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rw-r--r--test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.py b/test.py
index 97b91c7..54b033c 100644
--- a/test.py
+++ b/test.py
@@ -63,8 +63,8 @@ if __name__ == '__main__':
if last_im is not None:
frac = 4.
tmp_im = im.copy()
- array_a = np.multiply(im, 1/frac)
- array_b = np.multiply(last_im, (frac-1)/frac)
+ array_a = np.divide(im, frac)
+ array_b = np.divide(last_im, frac/(frac-1))
print(im.shape, array_a.shape, array_b.shape)
im = np.add(array_a, array_b).clip(0, 255)
last_im = tmp_im