spyrit.misc.sampling.reorder_from_sampling_map
- spyrit.misc.sampling.reorder_from_sampling_map(meas: ndarray, Ord_acq: ndarray, s_map: ndarray) ndarray[source]
Reorder splitted measurements following a sampling map
- Parameters:
meas (np.ndarray) – Measurement array of size (2*N,C) with N the number of patterns acquired and C the number of channels.
Ord_acq (np.ndarray) – (N,) Array containing the indices of the patterns corresponding to each measurement.
s_map (np.ndarray) – (n,n) array containing the sampling map.
- Returns:
meas_rec (np.ndarray) – Reordered measurement vector.