From 0d0ed8a7c6f1af12f9adad9e4462e2094856cc24 Mon Sep 17 00:00:00 2001 From: Tom White Date: Tue, 21 Jul 2015 03:03:35 -0700 Subject: [PATCH] blend: reverse logic The blend logic seemed inconsistent - 0 meant "none of the previous frame gets through", but then surprisingly 0.01 meant "almost all of the previous frame gets through". This commit reverses the blend so that there is a continuum from 0 to 1. --- dreamer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dreamer.py b/dreamer.py index b77f57e..10dad25 100644 --- a/dreamer.py +++ b/dreamer.py @@ -285,7 +285,7 @@ def getStats(saveframe, var_counter, vids, difference): newimg = resizePicture(newframe, preview) frame = newimg else: - frame = morphPicture(saveframe, newframe, blend, preview) + frame = morphPicture(newframe, saveframe, blend, preview) # setup next frame frame = np.float32(frame)