fishtank.utils.create_mosaic

Contents

fishtank.utils.create_mosaic#

fishtank.utils.create_mosaic(imgs, positions, micron_per_pixel=0.107)#

Create mosaic from images.

Parameters:
  • imgs (list[ndarray]) – a list (C,Y,X) or (Y,X) images to create a mosaic from.

  • positions (list) – a list of (x,y) positions for each image.

  • micron_per_pixel (float (default: 0.107)) – the micron per pixel conversion factor.

Return type:

tuple[ndarray, ndarray]

Returns:

mosaic

an image mosaic of all the images.

bounds

the bounds of the mosaic in microns.