soft-matter / trackpy

Python particle tracking toolkit
http://soft-matter.github.io/trackpy
Other
437 stars 131 forks source link

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

Open karllandheer opened 1 year ago

karllandheer commented 1 year ago

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 commented 1 year ago

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.