little simplification
authorAlexander Mordvintsev <no@email>
Mon, 4 Jul 2011 11:38:53 +0000 (11:38 +0000)
committerAlexander Mordvintsev <no@email>
Mon, 4 Jul 2011 11:38:53 +0000 (11:38 +0000)
samples/python2/turing.py

index 84517e1..f190c3d 100644 (file)
@@ -9,9 +9,8 @@ from common import draw_str
 \r
 w, h = 512, 512\r
 \r
-a = np.zeros((h, w, 1), np.float32)\r
+a = np.zeros((h, w), np.float32)\r
 cv2.randu(a, np.array([0]), np.array([1]))\r
-a.shape = (h, w)\r
 \r
 def process_scale(a_lods, lod):\r
     d = a_lods[lod] - cv2.pyrUp(a_lods[lod+1])\r