I am doing Sobel edge detection in openCV using the with following parameters:
cv.Sobel(mat, edgemat, 1, 1)
# mat -> source image
# edgemat -> taget output image
# 1 -> xorder (int) – Order of the derivative x
# 1 -> yorder (int) – Order of the derivative y
# apertureSize (int) – Size of the extended Sobel kernel -> its by default set to 3
I also did the Sobel edge detection on the image using GIMP.
The source image is: The output by openCV is The output by GIMP is
Why such a big difference between the outputs by openCV and GIMP. The quality of output by GIMP surpasses openCV by light years.