From e9d63665b456b98a4a1c2de11a890cb73cdf291d Mon Sep 17 00:00:00 2001 From: Alexander Mordvintsev Date: Mon, 4 Jul 2011 11:38:53 +0000 Subject: [PATCH] little simplification --- samples/python2/turing.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/samples/python2/turing.py b/samples/python2/turing.py index 84517e1..f190c3d 100644 --- a/samples/python2/turing.py +++ b/samples/python2/turing.py @@ -9,9 +9,8 @@ from common import draw_str w, h = 512, 512 -a = np.zeros((h, w, 1), np.float32) +a = np.zeros((h, w), np.float32) cv2.randu(a, np.array([0]), np.array([1])) -a.shape = (h, w) def process_scale(a_lods, lod): d = a_lods[lod] - cv2.pyrUp(a_lods[lod+1]) -- 2.7.4