locan.data.tracking.link_locdata#
- locan.data.tracking.link_locdata(locdata, search_range=40, memory=0, **kwargs)[source]#
Track localizations, i.e. cluster localizations in time when nearby in successive frames. This function applies the trackpy linking method to LocData objects.
- Parameters:
locdata – Localization data on which to perform the manipulation.
search_range – The maximum distance features can move between frames, optionally per dimension
memory – The maximum number of frames during which a feature can vanish, then reappear nearby, and be considered the same particle.
kwargs – Other parameters passed to trackpy.link_df().
- Returns:
A series named ‘Track’ referring to the track number.
- Return type:
pandas.Series[Any]
Note
In order to switch off the printout from
trackpy.link()
and increase performance usetrackpy.quiet()
to silence the logging outputs.