projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15de28b
)
little simplification
author
Alexander Mordvintsev
<no@email>
Mon, 4 Jul 2011 11:38:53 +0000
(11:38 +0000)
committer
Alexander Mordvintsev
<no@email>
Mon, 4 Jul 2011 11:38:53 +0000
(11:38 +0000)
samples/python2/turing.py
patch
|
blob
|
history
diff --git
a/samples/python2/turing.py
b/samples/python2/turing.py
index
84517e1
..
f190c3d
100644
(file)
--- a/
samples/python2/turing.py
+++ b/
samples/python2/turing.py
@@
-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