Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

imgradient

Compute image gradient


Description

Light interface for get_gradient. Refer to get_gradient for details on the computation.

Usage

imgradient(im, axes = "xy", scheme = 3)

Arguments

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)

Value

an image or a list of images, depending on the value of "axes"

Author(s)

Simon Barthelme

Examples

grayscale(boats) %>% imgradient("x") %>% plot
imgradient(boats,"xy") #Returns a list

imager

Image Processing Library Based on 'CImg'

v0.42.10
LGPL-3
Authors
Simon Barthelme [aut], David Tschumperle [ctb], Jan Wijffels [ctb], Haz Edine Assemlal [ctb], Shota Ochi [cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.