Matlab: canny edge detector

Matlab Version: 7.8.0 (R2009a)

I get edges from the image using the Canny edge detector using the standard "edge" function. But for my project I need to get an intermediate gradient value matrix. That is, the gradient values ​​for each pixel.

I know that we could do this with imgradientxy (), but I need an exact result that could give what canny could do, and I don't know the implementation used by Matlab for Canny. Is there a way to do this or should I implement canny from scratch?

Background . I basically change the intensity values ​​for some pixels around the edges, as canny discovered. I need to know that after the change, when the gradient is calculated using the new values, will they still be below the Threshold values?

+4
source share
1 answer

To find the implementation of the Canny edge detector in Matlab, you can simply open the file ( edit edge ), since the function is not built-in. This way you can check the filtering and gradient scheme used in your Matlab release.

+5
source

Source: https://habr.com/ru/post/1436349/


All Articles