Some readers (like LifReader and CziReader) support mosaic tile stitching.
Using AICSImage
By default, AICSImage will stitch tiles back together. If you want to access the tiles individually, set reconstruct_mosaic=False.
- With stitching (default):
dims.order includes big Y and big X dimensions. - Without stitching:
dims.order includes an M (tile index) dimension and small Y/X dimensions.
Using the Reader directly
If using a Reader object, you can access individual tiles via the M dimension or use .mosaic_dask_data to get the stitched version.
Tile Positioning
Use get_mosaic_tile_position(index) to find the top-left corner (y, x) of a specific tile.
from aicsimageio import AICSImage
# Default behavior (stitched)
img = AICSImage("very-large-mosaic.lif")
img.dims.order # T, C, Z, big Y, big X, (S optional)
# Manual tile access (unstitched)
img = AICSImage("very-large-mosaic.lif", reconstruct_mosaic=False)
img.dims.order # M (tile index), T, C, Z, small Y, small X, (S optional)
# Get tile start indices
y_start_index, x_start_index = img.get_mosaic_tile_position(12)