MeasureNeighborDist#

Measure distances to grid neighbours and to the nearest object.

Parameters and usage: MeasureNeighborDist.

  • One row per: detected colony

  • Written to: deliverables/measurements.csv (every operation, with your metadata joined) and deliverables/measurements_by_feature/MeasureNeighborDist.csv, each with a .parquet beside it

  • Columns: 11

NEIGHBOR_DIST#

Metric family: NeighborDist#

Column

Description

Type

NeighborDist_LeftNeighborObjLabel

The object label of the left neighbor colony

Quality

NeighborDist_LeftDistance

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

Quality

NeighborDist_RightNeighborObjLabel

The object label of the right neighbor colony

Quality

NeighborDist_RightDistance

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

Quality

NeighborDist_AboveNeighborObjLabel

The object label of the above neighbor colony

Quality

NeighborDist_AboveDistance

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

Quality

NeighborDist_UnderNeighborObjLabel

The object label of the under neighbor colony

Quality

NeighborDist_UnderDistance

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

Quality

NeighborDist_NearestObjLabel

The object label of the closest other object anywhere on the plate, by minimum pixel-to-pixel distance between object masks. On a GridImage only objects assigned to a grid cell are considered; on a plain Image every object is. NaN when fewer than two eligible objects exist. Ties resolve to the smaller label.

Quality

NeighborDist_NearestDistance

The minimum Euclidean distance, in pixels, between the pixel centres of this object’s mask and the nearest object’s mask. Two objects whose masks share an edge report 1. Always less than or equal to every non-NaN directional distance for the same object.

Quality

NeighborDist_NearestRelation

Integer code for where the nearest object sits relative to this object’s grid cell, from the absolute row offset dr and column offset dc between the two cells: 0 = same cell (dr = dc = 0); 1 = edge-adjacent cell (dr + dc = 1); 2 = diagonal cell (dr = dc = 1); 3 = any cell further away. NaN on a plain Image (no grid) or when there is no nearest object.

Quality