grad: Calculate the central difference (derivative) gradients (x,y)...

Description Usage Arguments Value Examples

View source: R/active_contour_utils.R

Description

Calculate the central difference (derivative) gradients (x,y) of a (image) matrix

Usage

1
grad(x)

Arguments

x

a matrix

Value

a list of two derivative matrices

Examples

1
2
my_matrix <- matrix(c(0,1,1,0), nrow=2)
grad(my_matrix)

MartinHinz/shapAAR documentation built on July 12, 2020, 7:41 p.m.