Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you use trackpy in cases when local position is not as important as shape of objects? #725

Open
karllandheer opened this issue Mar 1, 2023 · 1 comment

Comments

@karllandheer
Copy link

I am looking to use trackpy for tracking lesions in a longitudinal dataset. In this dataset the lesions could move a lot between time points, and what's more important is matching of the shape of the objects between time points than necessarily displacement. Registration between time points is not possible for reasons I won't get into. Could trackpy work in such situations, perhaps where I set the search_range to a fairly large value? Any input on this?

@nkeim
Copy link
Contributor

nkeim commented Mar 3, 2023

That sounds like a neat application! If you can quantify the shapes somehow (perhaps with skimage's regionprops?), then during linking you can treat the parameters of each lesion's shape as you would treat extra spatial coordinates. Issue #470 has a basic discussion of this.

If the default Euclidean distance metric is not adequate for your shape "coordinates," you can even customize the way trackpy computes distances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants