MCPcopy Create free account
hub / github.com/makelove/OpenCV-Python-Tutorial / process_scale

Function process_scale

官方samples/turing.py:46–51  ·  view source on GitHub ↗
(a_lods, lod)

Source from the content-addressed store, hash-verified

44 cv2.randu(a, np.array([0]), np.array([1]))
45
46 def process_scale(a_lods, lod):
47 d = a_lods[lod] - cv2.pyrUp(a_lods[lod+1])
48 for i in xrange(lod):
49 d = cv2.pyrUp(d)
50 v = cv2.GaussianBlur(d*d, (3, 3), 0)
51 return np.sign(d), v
52
53 scale_num = 6
54 for frame_i in count():

Callers 1

turing.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected