GaussianBlur function - SigmaY not working

This works fine:

blur = cv.GaussianBlur(img,(0,0),8)

However, I want a kernel with different sigmax and sigmay values. This doesn’t work:

blur = cv.GaussianBlur(img,(0,0),8,2)

It just ignores sigmay. Am I doing something wrong?

signature is

dst = cv.GaussianBlur( src, ksize, sigmaX[, dst[, sigmaY[, borderType]]] )

so you can try named arguments (cv.GaussianBlur(..., sigmaX=8, sigmaY=2)), or you have to pass None for dst.

1 Like

Thank you. Both methods worked. I tried the named arguments before I posted but I was using sigmax and sigmay.