magtomo.Reconstruction.gradient#
- gradient(vf, rot, difference, pol, order)#
Calculates the gradient for a specific orientation.
- Parameters:
- vfnp.ndarray
The current guess for the vector or orientation field.
- rotnp.ndarray
The rotation matrix describing the sample rotation
- differencenp.ndarray
The difference between the projection from vf and the input.
- polnp.ndarray
The polarization at which the projection was measured.
- orderint
The interpolation order for performing rotations.
- Returns:
- np.ndarray
The gradient for this combination of inputs.