Skip to content

Tile Information

Source

Pydantic model representing the metadata of a prediction tile.

TileInformation

Bases: BaseModel

Pydantic model containing tile information.

This model is used to represent the information required to stitch back a tile into a larger image. It is used throughout the prediction pipeline of CAREamics.

Array shape should be C(Z)YX, where Z is an optional dimensions.

array_shape instance-attribute

Shape of the original (untiled) array.

last_tile = False class-attribute instance-attribute

Whether this tile is the last one of the array.

overlap_crop_coords instance-attribute

Inner coordinates of the tile where to crop the prediction in order to stitch it back into the original image.

sample_id instance-attribute

Sample ID of the tile.

stitch_coords instance-attribute

Coordinates in the original image where to stitch the cropped tile back.