organoid_tracker.position_analysis.cell_density_calculator module

Cell density is defined as the average distance to the X nearest cells.

organoid_tracker.position_analysis.cell_density_calculator.get_density_mm1(positions: Iterable[Position], around: Position, resolution: ImageResolution) float

Returns the density around the cells. The returned value is 1/average neighbor distance, in mm^(-1).