-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not so canny canny method? #914
Comments
Thanks for reporting this. You are right, line 411 should be forwarding the threshold argument. |
@zygmuntszpak Given that ImageEdgeDetection already implements |
thinning algorithms have also been implemented in ImageEdgeDetection.jl and they also need to be properly deprecated here in Images.jl I think |
To fix the error you're encountering with the canny function, you need to convert the image to grayscale before applying the Canny edge detection algorithm. Here are steps- Convert the RGB image to grayscale. |
#try this code, it can fix the error canny_img = canny(gray_img, (Percentile(80), Percentile(20))) |
Gives a
Seems this code just needs to forward the
threshold
argument:Images.jl/src/edge.jl
Lines 410 to 411 in 3951d87
i.e.
canny(convert(Array{Gray}, img), threshold, args...)
though a warning suggests that maybe it should becanny(Gray.(img), threshold, args...)
The text was updated successfully, but these errors were encountered: