add_phase_to_kspace_with_shifts#
- mrinufft.io.add_phase_to_kspace_with_shifts(kspace_data: NDArray, kspace_loc: NDArray, normalized_shifts: NDArray)[source]#
Add phase shifts to k-space data.
- Parameters:
kspace_data (np.ndarray) – The k-space data.
kspace_loc (np.ndarray) – The k-space locations.
normalized_shifts (tuple) – The normalized shifts to apply to each dimension of k-space. They are expressed as a number of pixels to shifts.
- Returns:
The k-space data with phase shifts applied.
- Return type:
ndarray
- Raises:
ValueError – If the dimension of normalized_shifts does not match the number of dimensions in kspace_loc.