tile_information
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.
Source code in src/careamics/config/tile_information.py
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.
__eq__(other_tile) #
Check if two tile information objects are equal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
other_tile | object | Tile information object to compare with. | required |
Returns:
| Type | Description |
|---|---|
bool | Whether the two tile information objects are equal. |