object_edge {pliman} | R Documentation |
Object edges
Description
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.
Usage
object_edge(img, sigma = 1, threshold = "Otsu", thinning = FALSE, plot = TRUE)
Arguments
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 |
Value
A binary version of image
.
References
Sobel, I., and G. Feldman. 1973. A 3×3 isotropic gradient operator for image processing. Pattern Classification and Scene Analysis: 271–272.
Examples
library(pliman)
img <- image_pliman("sev_leaf_nb.jpg", plot = TRUE)
object_edge(img)