magpack.vectorop.angular_difference#

angular_difference(in_a, in_b, axial=False)#

Calculates the angular difference between vectors at the same positions of array a and b.

Parameters:
in_a, in_bnp.ndarray

The first and second vector fields to compare..

axialbool (optional)

True for orientation fields, False for directional fields.

Returns:
np.ndarray

The angular difference (as a scalar field) between the two vector fields.