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) anddeliverables/measurements_by_feature/MeasureNeighborDist.csv, each with a.parquetbeside itColumns: 11
NEIGHBOR_DIST#
Column |
Description |
Type |
|---|---|---|
|
The object label of the left neighbor colony |
|
|
The minimum pixel-to-pixel distance to the left neighbor colony, computed via a Euclidean distance transform of object pixel masks |
|
|
The object label of the right neighbor colony |
|
|
The minimum pixel-to-pixel distance to the right neighbor colony, computed via a Euclidean distance transform of object pixel masks |
|
|
The object label of the above neighbor colony |
|
|
The minimum pixel-to-pixel distance to the above neighbor colony, computed via a Euclidean distance transform of object pixel masks |
|
|
The object label of the under neighbor colony |
|
|
The minimum pixel-to-pixel distance to the under neighbor colony, computed via a Euclidean distance transform of object pixel masks |
|
|
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. |
|
|
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. |
|
|
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. |