Ex4 Q1 - canny() not working

Ex4 Q1 - canny() not working

by Francesco Ballestrazzi -
Number of replies: 6

Hi,

I'm having some issues with the skimage.feature.canny function used in exercise 4 question 1.

Apparently it always returns a black image with only False values.

Could you check if you have the same problem? Thanks


In reply to Francesco Ballestrazzi

Re: Ex4 Q1 - canny() not working

by Clément Baptiste Lion -

Hello !

The function returns a lot of false values, but if you have a look at the image with plt.imshow(), you'll see that the points marked as False are the points with a null gradient.

In reply to Clément Baptiste Lion

Re: Ex4 Q1 - canny() not working

by Francesco Ballestrazzi -

Hi,

The returned image has only False values in my case, in the image below you can see the output of plt.imshow

 









Could it be an issue due to skimage version?

In reply to Francesco Ballestrazzi

Re: Ex4 Q1 - canny() not working

by Semih Günel -

Hi,

Actually we had some problems with the canny detector last year. I suspect it is because of the scikit version.  Can you try some different parameters?

It is a binary image, so it supposed to have True,False values.

The plt.imshow(edges) supposed to look like this:



In reply to Semih Günel

Re: Ex4 Q1 - canny() not working

by Francesco Ballestrazzi -

Hi,

I have the 0.15.0 version of skimage and I have some problems upgrading it on Conda because of dependencies with others libraries in the same environment.

Which version do you have?  Maybe forcing the upgrade to a specific version will work