quantumjot / btrack

Bayesian multi-object tracking
https://btrack.readthedocs.io
MIT License
310 stars 50 forks source link

[FEATURE REQUEST] 2D tracking with no branching and short links #399

Closed manerotoni closed 5 months ago

manerotoni commented 5 months ago

Hi, in the current tracking problem I would like to track cells in a tissue (2D). There are no divisions/branching. Sometimes a cell gets out of focus and reappear, ideally I would continue to link the track given that the gap is not too big. Also cells do not move much so links above a certain distance should not be considered.

I am more familiar with track mate and there I set max distance and max frame gap and uncheck track segment splitting and there I get what I need

image

Is there something I can set in the json file to create such a behavior. I tried to change the Hypothesis model parameters, but there was not much happening in the tracks.

manerotoni commented 5 months ago

Here I show the btrack results for 20 frames. In red are some examples of what I mean (big jumps in distance)

image

this is the trackmate results. There are many broken tracks as cells are lost but no big jumps

image

manerotoni commented 5 months ago

I may start to answer my own question.

How the other terms in the hyoptheses config and motionmodel config influences the tracking I still have issues to understand.

May be it would be nice to have different examples config files with some explanations on the results of the tracking. This could help in understand what each of the parameters does and so optimize the parameters for its own purpose.

Overall the plugin is working quite well. Good job!