spatialGradient | R Documentation |
spatialGradient
calculates the first order derivative of
an image in both x and y using a Sobel operator.
spatialGradient(image, k_size = 5)
image |
An |
k_size |
The half-size in pixels of the kernel (default: 5). |
A list containing two Image
objects, one of for the
derivative along the x axis and the other for the derivative along the y axis.
Simon Garnier, garnier@njit.edu
Image
, sobel
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon_gradient <- spatialGradient(balloon, 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.