Canny thresholding issues

asked 2019-04-22 10:31:39 -0500

Filippo9669 gravatar image

updated 2019-04-22 10:33:51 -0500

Hi, I have some unclarities about thresholding in Canny's algorithm. Let's take this:

image description

This is an image with max and min luminance of 255 and 0 respectively, and the type is set to be CV_8U. I have added a trackbar to adjust threshold levels on the fly. The results are:

  • for aperture size of 3, the edge is being detected only up to ~780 for both thresholds. I thought it could be because of the gaussian blur, but now I have some doubts, as pre-adding gaussian blur to the image doesn't lower the 780 value at all. I would expect the edge to be found till 1020, as the gradient is equal only to the horizontal part.
  • for aperture size of 5, the edge is being detected up to... ~7800.

I have no idea what's going on, could you please help me?

edit retag flag offensive close merge delete