coil_compression#
- mrinufft.extras.smaps.coil_compression(kspace_data, K, traj=None, krad_thresh=None)[source]#
Coil compression using principal component analysis on k-space data.
- Parameters:
kspace_data (NDArray) – Multi-coil k-space data. Shape: (n_coils, n_samples).
K (int or float) – Number of virtual coils to retain (if int), or energy threshold (if float between 0 and 1).
traj (NDArray, optional) – Sampling trajectory. Shape: (n_samples, n_dims).
krad_thresh (float, optional) – Relative k-space radius (as a fraction of maximum) to use for selecting the calibration region for principal component analysis. If None, use all k-space samples.
- Returns:
Coil-compressed data. Shape: (K, n_samples) if K is int, number of retained components otherwise.
- Return type:
NDArray