Sharpness opencv cuda python
Hi all, I have tried adjusting sharpness with bilateral filter and addweighted methods. But it's not adjusting properly
import cv2
import numpy as np
img = cv2.imread('test.png')
imgMat = cv2.cuda_GpuMat(img)
blur = cv2.cuda.bilateralFilter(imgMat,90,30,30)
sharp = cv2.cuda.addWeighted(imgMat, 0.3, blur,.5, 100)
sharpened = sharp.download()
cv2.imshow('Frame 1',img)
cv2.imshow('Frame 2',sharpened)
cv2.waitKey(0)
cv2.destroyAllWindows()
I'm using cuda so I can't use detailenhance method as well as gaussian blur also not working as expected.
Thanks in advance !!