OpenCV's Sobel filter - why does it look so bad, especially compared to Gimp?
问题 I'm trying to rebuild some preprocessing I have done before in Gimp, using OpenCV. The first stage is a Sobel filter for edge detection. It works very well in Gimp: Now here is my attempt with OpenCV: opencv_imgproc.Sobel(/* src = */ scaled, /* dst = */ sobel, /* ddepth = */ opencv_core.CV_32F, /* dx = */ 1, /* dy = */ 1, /* ksize = */ 5, /* scale = */ 0.25, /* delta = */ 0.0, /* borderType = */ opencv_core.BORDER_REPLICATE) It looks very bad, basically highlighting points instead of contours