spatialGradient
calculates the first order derivative of
an image in both x and y using a Sobel operator.
Arguments
- image
An
Image
object.- k_size
The half-size in pixels of the kernel (default: 5).
Value
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.
Author
Simon Garnier, garnier@njit.edu
Examples
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon_gradient <- spatialGradient(balloon, 5)