imgradient | R Documentation |
Light interface for get_gradient. Refer to get_gradient for details on the computation.
imgradient(im, axes = "xy", scheme = 3)
im |
an image of class cimg |
axes |
direction along which to compute the gradient. Either a single character (e.g. "x"), or multiple characters (e.g. "xyz"). Default: "xy" |
scheme |
numerical scheme (default '3', rotation invariant) |
an image or a list of images, depending on the value of "axes"
Simon Barthelme
grayscale(boats) %>% imgradient("x") %>% plot
imgradient(boats,"xy") #Returns a list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.