sylvainprigent / stracking

python library for particles tracking in 2D+t and 3D+t scientific images
Other
13 stars 2 forks source link

Issues in tracking data visualization from another algorithm with Napari STracking #7

Open Aravind-Kumar-04 opened 1 month ago

Aravind-Kumar-04 commented 1 month ago

Hello!

I am trying to use Napari STracking to visualize the tracking data of my fluorescent beads (detected and tracked with the MTT algorithm, with SLIMFast GUI). When I used the S load option, I was able to visualize tracks, but with several issues listed below:

For information: Column format in tracking file: 'track_id', 't', 'x', 'y' Column format in detection file: 't', 'y', 'x'

It would be great if I am able to view my individual tracks separately, with proper track ID, without the issue shown in Figure 1. I am a student and a beginner in image analysis, so it would be great if you could help me solve the issue. Thanks in advance!

Img2_Track.csv Img2Detection.csv Figure 1 - Napari Tracking Problem

sylvainprigent commented 1 month ago

Hello,

The current version of the stracking plugin read CSV file with header as 'TrackID', 't', 'x', 'y'. (the order of the columns do not matter) So a quick fix in your case can be to rename 'track_id' by 'TrackID'

Here is the result I got by doing so. image

At the time writing the plugin, napari did not use this 'track_id' header. I'll update the plugin to be compatible with, and avoid needing renaming the header in the csv files

sylvainprigent commented 1 month ago

It should work now with version 0.1.10 using 'track_id' in the csv file

Aravind-Kumar-04 commented 1 month ago

Dear Sir,

Thank you very much for the fix! I am able to view individual tracks without any issues now. Additionally, I also want to ask if there is any way to synchronize the image and track file to move the frames together. I am currently doing it manually, and if there is any way for it, it would be great!

Once again, thank you very much for the fix!

Regards

napari_image_and_track_file