Canny Edge Detector for Images. Adapted from https://github.com/bnosac/image/tree/master/image.CannyEdges.
Value
a list with an Image
object with values 0 or 255, and the number of
pixels which have value 255 (pixels_nonzero).
Examples
if(interactive()){
library(pliman)
img <- image_pliman("sev_leaf.jpg")
conts <- image_canny_edge(img, index = "B")
par(mfrow = c(1, 2))
plot(img)
plot(conts$edges)
par(mfrow = c(1, 1))
}