deconvolution.py | 40 def blur_edge(img, d=31): 41 h, w = img.shape[:2] 42 img_pad = cv2.copyMakeBorder(img, d, d, d, d, cv2.BORDER_WRAP) 47 return img*w + img_blur*(1-w) 77 img = cv2.imread(fn, 0) variable 78 if img is None: 82 img = np.float32(img)/255.0 variable 83 cv2.imshow('input', img) 85 img = blur_edge(img variable [all...] |