convert_gradients_to_trajectory#
- mrinufft.trajectories.utils.convert_gradients_to_trajectory(gradients, initial_positions=None, acq=None)[source]#
Integrate gradients over time to provide a normalized trajectory.
- Parameters:
gradients (NDArray) – Gradients over 2 or 3 directions in T/m
initial_positions (NDArray, optional) – Positions in k-space at the beginning of the readout window. The default is None.
acq (Acquisition, optional) – Acquisition configuration to use for normalization. If None, the default acquisition is used.
- Returns:
trajectory – Normalized trajectory corresponding to gradients.
- Return type:
NDArray