trackpy.filtering.filter_stubs

trackpy.filtering.filter_stubs(tracks, threshold=100)

Filter out trajectories with few points. They are often spurious.

Parameters:
tracksDataFrame

must include columns named ‘frame’ and ‘particle’

thresholdinteger, default 100

minimum number of points (video frames) to survive

Returns:
a subset of tracks