work on motempl.py sample

This commit is contained in:
Alexander Mordvintsev
2011-07-10 21:23:32 +00:00
parent 8a3d1937c3
commit 514711af14
3 changed files with 66 additions and 2 deletions

View File

@@ -109,3 +109,9 @@ def make_cmap(name, n=256):
ch = np.interp(xs, xp, yp)
channels.append(ch)
return np.uint8(np.array(channels).T*255)
def nothing(*arg, **kw):
pass
def clock():
return cv2.getTickCount() / cv2.getTickFrequency()