darsia.random_patches#
- random_patches(mask, width, num_patches)[source]#
Utility to extract random patches from a mask.
- Parameters:
- mask
np.ndarray Binary mask to extract patches from.
- width
int Width of the patches.
- num_patches
int Number of patches to extract.
- mask
- Returns: