quantumjot / btrack

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

[BUG] napari plugin cannot handle 4D data #316

Closed p-j-smith closed 1 year ago

p-j-smith commented 1 year ago

Describe the bug The napari plugin doesn't work with 4D data (even if there is a single slice in the Z dimension).

To make the plugin able to handle 4d data, this line:

data, properties, graph = tracker.to_napari(ndim=2)

should be changed to:

data, properties, graph = tracker.to_napari()

which would let BayesianTracker determine the dimensionality of the layer

Your setup:

btrack_version: 0.6.1.dev16
system_platform: macOS-12.6.5-x86_64-i386-64bit
system_python: 3.10.9