spatialGradient calculates the first order derivative of an image in both x and y using a Sobel operator.

spatialGradient(image, k_size = 5)

Arguments

image

An Image object.

k_size

The half-size in pixels of the kernel (default: 5).

Value

image An Image object.

See also

Author

Simon Garnier, garnier@njit.edu

Examples

# TODO