organoid_tracker.linking_analysis.particle_flow_calculator module

organoid_tracker.linking_analysis.particle_flow_calculator.get_flow_to_next(links: Links, positions: Iterable[Position], center: Position, resolution: ImageResolution, max_distance_um: float = 16) Tuple[float, float, float]

Gets the average flow of the positions within the specified radius towards the next time point. Returns (0,0,0) if there are no positions. The given center position must be in the given time point. Ignores cell divisions and dead cells.

organoid_tracker.linking_analysis.particle_flow_calculator.get_flow_to_previous(links: Links, positions: Iterable[Position], center: Position, image_resolution: ImageResolution, max_dx_and_dy: int = 50, max_dz=2) Tuple[float, float, float]

Gets the average flow of the positions within the specified radius towards the previous time point. Returns (0,0,0) if there are no positions. The given center position must be in the givne time point.