GRID_SPATIAL#

Python object: phenotypic.schema._grid_spatial.GRID_SPATIAL

Measure pixel-to-pixel distances to neighbors in adjacent grid cells.

For each detected colony, identify the nearest object in the left, right, above, and below grid cells and report the minimum Euclidean distance between their pixel masks. Distances are computed via a per-section distance transform over a local window covering the target cell and its immediate neighbors, so round colonies are not over-estimated by their bounding boxes. Edge and corner colonies report NaN for directions beyond the plate boundary.

Category: GridSpatial#

Column label

Description

GridSpatial_LeftNeighborObjLabel

The object label of the left neighbor colony

GridSpatial_LeftDistance

The minimum pixel-to-pixel distance to the left neighbor colony, computed via a Euclidean distance transform of object pixel masks

GridSpatial_RightNeighborObjLabel

The object label of the right neighbor colony

GridSpatial_RightDistance

The minimum pixel-to-pixel distance to the right neighbor colony, computed via a Euclidean distance transform of object pixel masks

GridSpatial_AboveNeighborObjLabel

The object label of the above neighbor colony

GridSpatial_AboveDistance

The minimum pixel-to-pixel distance to the above neighbor colony, computed via a Euclidean distance transform of object pixel masks

GridSpatial_UnderNeighborObjLabel

The object label of the under neighbor colony

GridSpatial_UnderDistance

The minimum pixel-to-pixel distance to the under neighbor colony, computed via a Euclidean distance transform of object pixel masks