Canny edge detector without thresholds [closed]
Hey everyone,
I am interesting in getting a edge map with some sort of probability embedded for the edges. This would result in something like this :
The Canny edge detector in opencv seems to force thresholds though, resulting in a binary map. Is there something I can do to disable this? Or am I looking at implementing my 'own' Canny method which does not perform this step?
Best regards, Hans
Canny relies on thresholding so it can connect edges together. Does a Sobel not suffice?
It does, which is the result of the picture above, but I wanted to compare multiple edge detector results for my project. There is no way to disable this thresholding step then?
From my limited knowledge of how Canny works, what you want might be impossible. Canny calls Sobel to get the initial edge image then does its fancy heuristic to thin and connect edges. A dirty hack might be to cv::bitwise_and(sobel, canny, output), so you get a Canny image but with Sobel magnitudes.
Aha, I didn't know it uses Sobel to get the initial edge image. Then theres not much use for me as I already have the Sobel image. Thanks!