fishtank.utils.tile_image

Contents

fishtank.utils.tile_image#

fishtank.utils.tile_image(image, tile_shape=(1000, 1000))#

Split image into tiles.

Parameters:
  • image (ndarray) – a (C,Y,X), (C,Z,Y,X) or (Y,X) image to split into tiles.

  • tile_shape (tuple (default: (1000, 1000))) – the shape of the tiles to divide the polygons into.

Return type:

tuple[list[ndarray], list]

Returns:

tiles

a list of image tiles.

positions

a list of (x,y) positions for each tile.