Menu

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.extract_patches_from_2d_images(img, patch_shape)[source]

Return the flattened patches from the 2d image.

Parameters

img : np.ndarray of floats, the input 2d image

patch_shape: tuple of int, shape of the patches

Returns

——-

patches : np.ndarray of floats, a 2d matrix with

- dim nb_patches*(patch.shape[0]*patch_shape[1])

Follow us

© 2019, Antoine Grigis Samuel Farrens Jean-Luc Starck Philippe Ciuciu