diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-04-22 14:44:46 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-04-22 14:44:46 +0200 |
| commit | fcf5d2cfc6774e73101f179347c066846da964b2 (patch) | |
| tree | d6ee069a94713d62e651b774b4ec423449e4252c /test.py | |
| parent | d6bafb220fc44d39546572f9ea2fdba50e875089 (diff) | |
push
Diffstat (limited to 'test.py')
| -rw-r--r-- | test.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
