Python Sparse data Analysis Package external MRI plugin.
Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the gallery for the big picture.
-
mri.operators.fourier.utils.convert_locations_to_mask(samples_locations, img_shape)[source]ΒΆ Return the converted the sampling locations as Cartesian mask.
- Parameters
samples_locations : np.ndarray
samples locations between [-0.5, 0.5[.
img_shape : tuple of int
shape of the desired mask, not necessarly a square matrix.
- Returns
mask : np.ndarray, {0,1}
2D matrix, not necessarly a square matrix.
Follow us