summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-04-22 14:44:46 +0200
committerJules Laplace <julescarbon@gmail.com>2018-04-22 14:44:46 +0200
commitfcf5d2cfc6774e73101f179347c066846da964b2 (patch)
treed6ee069a94713d62e651b774b4ec423449e4252c /test.py
parentd6bafb220fc44d39546572f9ea2fdba50e875089 (diff)
push
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