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
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.
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?
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:
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
Hi,
I had actually the same problem. Writing reference_I.astype(float) solves the problem (Apparently canny takes floating point images). Hope it helps.
Yes it works now, thanks!
Follow the pulses of EPFL on social networks
© 2023 EPFL, all rights reserved