CoronaryAngioSegment / preprocess.py
DHEIVER's picture
Duplicate from KurtLin/CoronaryAngioSegment
a6b37fd
raw
history blame contribute delete
No virus
157 Bytes
import cv2
def unsharp_masking(img):
gaussian = cv2.GaussianBlur(img, (0, 0), 2.0)
img = cv2.addWeighted(img, 2.0, gaussian, -1.0, 0)
return img