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.linear.utils.generate_flat_patches(images, patch_size, option='real')[source]¶ Generate flat patches from the real/imaginary/complex images from the list of images.
- Parameters
image : list of list of np.ndarray of float or complex
a sublist containing all the images for one subject
patch_size : int,
width of square patches
option : ‘real’ (default),
‘imag’ real/imaginary part or ‘complex’
Returns
——-
flat_patches : list of np.ndarray as a GENERATOR
The patches flat and concatained as a list
Follow us