scallops.stitch.utils.tile_overlap_mask

scallops.stitch.utils.tile_overlap_mask(df, tile_shape, fill=True)

Create a binary mask where zeros indicate locations where tiles overlap.

Parameters:
  • df (DataFrame) – DataFrame containing stitched tile locations

  • fill (bool) – Whether to fill mask interior. Typically set to True when blending, False otherwise.

  • tile_shape (tuple[int, int]) – Image tile shape for writing

Returns:

Mask array

Return type:

ndarray[uint8]