trackpy 0.3.0
  • Tutorial
  • Site
    • Introduction to Trackpy
    • Installing Trackpy
    • Updating Your Installation
    • API reference
    • What’s new in the package
    • Walkthrough
    • Prediction: Beyond Simple Random Walks
    • Feature finding in 3D confocal images
    • Subpixel Accuracy and Uncertainty Estimation
    • Advanced Linking: Subnetworks and search_range
    • Adaptive Search: Changing search_range on the Fly
    • Streaming: Processing Unlimited Frames On-Disk
    • Making trackpy fast(er)
    • Obtaining Diagnostic Information from Linking
    • Parallelized Feature Location using IPython Parallel
    • Custom Feature Detection: Bubble tracking in 2D foams
  • Page
    • trackpy.link

trackpy.link¶

trackpy.link(levels, search_range, hash_generator, memory=0, track_cls=None, neighbor_strategy='BTree', link_strategy='recursive')¶

Link features into trajectories, assigning a label to each trajectory.

This function is deprecated and lacks some recently-added options, though it is still accurate. Use link_df or link_iter.

Parameters:

levels : iterable of iterables containing Points objects

e.g., a list containing lists with the Points in each frame

search_range : float

the maximum distance features can move between frames

hash_generator : a function that returns a HashTable

only used if neighbor_strategy is set to ‘BTree’ (default)

memory : integer

the maximum number of frames during which a feature can vanish, then reppear nearby, and be considered the same particle. 0 by default.

neighbor_strategy : {‘BTree’, ‘KDTree’}

algorithm used to identify nearby features

link_strategy : {‘recursive’, ‘nonrecursive’, ‘numba’, ‘drop’, ‘auto’}

algorithm used to resolve subnetworks of nearby particles ‘auto’ uses numba if available ‘drop’ causes particles in subnetworks to go unlinked

Returns:

tracks : list of Track (or track_cls) objects

See also

link_df, link_iter

Back to top

Source

© Copyright 2010-2014, Trackpy Contributors.
Created using Sphinx 1.2.3.