convert "inp.jpg" -morphology Convolve DoG:15,100,0 "test.jpg" <- This is the imagemagick command I use to get the result of DoG.
In OpenCV, I do:-
g1 = cv2.getGaussianKernel(15,100)
g2 = cv2.getGaussianKernel(15,0)
DoGkernel = g1-g2
out = cv2.filter2D(img, -1 , DoGkernel)
input Image :- output Image:-
There is considerable difference. Am I doing something wrong? Any help would be appreciated.