You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I stumbled accross an edge case when using trackpy in general.
When you have a file with PhysicalSizeX==PhysicalSizeY, trackpy will use pixel values to calculate distance. But when you have a 3D+time file and your PhysicalSizeZ is different, you might expect that the spacing attributes are used in tracking instead of pixels. However when you track on one z slice in 2D, pixel values will be used.
Maybe we could by default use the spacing attributes and also indicate that in the hyperparameter selection or introduce a switch to change between pixel values and using spacing attributes.
The text was updated successfully, but these errors were encountered:
Hi @Beno71, you are right, thanks for spotting this.
I just fixed it in the latest release. I added a new parameter called Search range unit that can be either micrometre (default) or pixel (drop-down list). The selected unit will be used irrespective of whether physical sizes are equal or not.
I also changed the Neighbor strategy and the Link strategy parameters to drop-down lists as well (since only specific values are allowed).
Finally, I improved on the progress bar to show progress also for the loops before link_df is called.
Description:
I stumbled accross an edge case when using trackpy in general.
When you have a file with PhysicalSizeX==PhysicalSizeY, trackpy will use pixel values to calculate distance. But when you have a 3D+time file and your PhysicalSizeZ is different, you might expect that the spacing attributes are used in tracking instead of pixels. However when you track on one z slice in 2D, pixel values will be used.
Maybe we could by default use the spacing attributes and also indicate that in the hyperparameter selection or introduce a switch to change between pixel values and using spacing attributes.
The text was updated successfully, but these errors were encountered: