object_edge | R Documentation |
Applies the Sobel-Feldman Operator to detect edges. The operator is based on convolving the image with a small, separable, and integer-valued filter in the horizontal and vertical directions.
object_edge(img, sigma = 1, threshold = "Otsu", thinning = FALSE, plot = TRUE)
img |
An image or a list of images of class |
sigma |
Gaussian kernel standard deviation used in the gaussian blur. |
threshold |
The theshold method to be used. If |
thinning |
Logical value indicating whether a thinning procedure should
be applied to the detected edges. See |
plot |
Logical value indicating whether a plot should be created |
A binary version of image
.
Sobel, I., and G. Feldman. 1973. A 3×3 isotropic gradient operator for image processing. Pattern Classification and Scene Analysis: 271–272.
library(pliman)
img <- image_pliman("sev_leaf_nb.jpg", plot = TRUE)
object_edge(img)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.