prose.Image.data_cutouts#

Image.data_cutouts(sources: Union[ndarray, Sources], shape: Union[int, tuple]) ndarray[source]#

Extract cutouts from image.

Parameters:
  • sources (Union[np.ndarray, Sources]) – Coordinates (or Sources) of the cutouts centers

  • shape (Union[int, tuple]) – Shape of the cutouts

Returns:

cutouts

Return type:

np.ndarray