Gradient#

Module to calculate various curvature and tube measures in 3D

gradient(source)[source]#

Returns the finite difference gradient vector at each point.

Arguments

sourcearray

The data source.

Returns

gradientarray

A (ndim,) + source.shape array of the finte differences alon each axis.

gradient_abs(source)[source]#

Returns the absolute magnitude of the gradient vector at each point.

Arguments

sourcearray

The data source.

Returns

absarray

Sum of the absolute values of the gradient vector entries.

gradient_square(source)[source]#

Returns the square sum of the gradient vector entries.

Arguments

sourcearray

The data source.

Returns

absarray

Sum of the absolute values of the gradient vector entries.