quantumjot / btrack

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

Consider storing objects to minimise re-running detection step when changing parameters #290

Open quantumjot opened 1 year ago

quantumjot commented 1 year ago

The current _run_tracker function always calls segmentation_to_objects even if we are only changing some config parameters:

https://github.com/lowe-lab-ucl/napari-btrack/blob/c294d1ca5c0c894599e464f9183464a2bcd8e4ff/napari_btrack/main.py#L144-L156

we could consider storing these detections, unless the chosen segmentation layer changes, in which case we can rerun the detection step.