MCPcopy Index your code
hub / github.com/makelove/OpenCV-Python-Tutorial / defocus_kernel

Function defocus_kernel

官方samples/deconvolution.py:61–65  ·  view source on GitHub ↗
(d, sz=65)

Source from the content-addressed store, hash-verified

59 return kern
60
61def defocus_kernel(d, sz=65):
62 kern = np.zeros((sz, sz), np.uint8)
63 cv2.circle(kern, (sz, sz), d, 255, -1, cv2.LINE_AA, shift=1)
64 kern = np.float32(kern) / 255.0
65 return kern
66
67
68if __name__ == '__main__':

Callers 1

updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected