proper_trajectory#
- mrinufft._utils.proper_trajectory(trajectory, normalize='pi')[source]#
Normalize the trajectory to be used by NUFFT operators.
- Parameters:
trajectory (np.ndarray) – The trajectory to normalize, it might be of shape (Nc, Ns, dim) of (Ns, dim)
normalize (str) – if “pi” trajectory will be rescaled in [-pi, pi], if it was in [-0.5, 0.5] if “unit” trajectory will be rescaled in [-0.5, 0.5] if it was not [-0.5, 0.5]
- Returns:
new_traj – The normalized trajectory of shape (Nc * Ns, dim) or (Ns, dim) in -pi, pi
- Return type:
np.ndarray