prose.Image.data_cutouts

prose.Image.data_cutouts#

Image.data_cutouts(sources: ndarray | Sources, shape: 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