convert_gradients_to_trajectory

convert_gradients_to_trajectory#

mrinufft.trajectories.utils.convert_gradients_to_trajectory(gradients, initial_positions=None, norm_factor=0.5, resolution=0.0006, raster_time=0.01, gamma=Gammas.HYDROGEN)[source]#

Integrate gradients over time to provide a normalized trajectory.

Parameters:
  • gradients (np.ndarray) – Gradients over 2 or 3 directions.

  • initial_positions (np.ndarray, optional) – Positions in k-space at the beginning of the readout window. The default is None.

  • norm_factor (float, optional) – Trajectory normalization factor, by default KMAX.

  • resolution (float, np.array, optional) – Resolution of MR image in meters, isotropic as int or anisotropic as np.array. The default is DEFAULT_RESOLUTION.

  • raster_time (float, optional) – Amount of time between the acquisition of two consecutive samples in ms. The default is DEFAULT_RASTER_TIME.

  • gamma (float, optional) – Gyromagnetic ratio of the selected nucleus in kHz/T The default is Gammas.HYDROGEN.

Returns:

trajectory – Normalized trajectory corresponding to gradients.

Return type:

np.ndarray