organoid_tracker.linking_analysis.particle_rotation_calculator module
- organoid_tracker.linking_analysis.particle_rotation_calculator.calculate_rotation_of_track(links: Links, resolution: ImageResolution, starting_position: Position, starting_center_p1: Position, starting_center_p2: Position, ending_center_p1: Position) Tuple[List[float], List[Position]]
Calculates the cumulative rotation of the position relative to the center. Also returns the final position. Both the position and the center must have links towards the future. The rotation is calculated for as long as the center has links to the future, or until the max_time_point_number has been reached. This method returns multiple values, to support dividing cells. If a cell divides, and both daughters also divide, then you end up with four values. Particles that disappear before the max time point is reached, are not included in the result.