Tracks Reference

MultiViewTracks.tracks.interpolate_subtracks(sub_tracks)

Linearly interpolate X, Y and Z components of sub-track dictionary.

MultiViewTracks.tracks.interpolate_tracks(tracks)

Linearly interpolate X, Y and Z components of track dictionary.

MultiViewTracks.tracks.interpolate_trajectory(trajectory)

Linearly interpolate X, Y and Z of one trajectory or sub-trajectory.

MultiViewTracks.tracks.rotate_tracks(tracks, pca)

Rotate tracks with a given pca transform.

Parameters:
  • tracks (dict) – A dictionary containing the tracks
  • pca (sklearn.decomposition.PCA) – A fitted PCA instance used for transformation
Returns:

The rotated tracks

Return type:

dict

MultiViewTracks.tracks.scale_tracks(tracks, scale)

Scale tracks with a given scale.

Parameters:
  • tracks (dict) – A dictionary containing the tracks
  • scale (float) – The scale used for transformation
Returns:

The scales tracks

Return type:

dict

MultiViewTracks.tracks.tracks_from_pooled(pooled)

Convert tracks dictionary from a dictionary with wide table format.

MultiViewTracks.tracks.tracks_from_subtracks(sub_tracks)

Returns tracks joined from given sub-tracks

MultiViewTracks.tracks.tracks_to_pooled(tracks)

Convert the tracks dictionary into a dictionary with wide table format.

MultiViewTracks.tracks.tracks_to_subtracks(tracks, max_dist)

Split tracks into sub-trajectories.

Parameters:
  • tracks (dict) – The tracks dictionary
  • max_dist (float) – Maximum distance between consequtive frames that is allowed in a sub-trajectory
Returns:

Tracks dictionary with sub-trajectories

Return type:

dict

MultiViewTracks.tracks.trajectory_from_subtrajectories(sub_trajectories)

Returns a trajectory joined from sub-trajectories

MultiViewTracks.tracks.trajectory_to_subtrajectories(trajectory, max_dist)

Split one trajectory into sub-trajectories with specified maximum distance.