trackmate-sc / TrackMate

TrackMate is your buddy for your everyday tracking.
https://imagej.net/plugins/trackmate
GNU General Public License v3.0
169 stars 76 forks source link

Export to CSV file in a headless mode #290

Closed tinevez closed 6 months ago

tinevez commented 7 months ago

The CSV export methods in the table classes only exports what is directly shown in the tables, and use the GUI classes of Java. This causes errors when used in a script in a headless model. See the discussion:

https://forum.image.sc/t/error-headlessexception-when-trying-to-save-csv-file-of-tracking-data-from-trackmate-when-running-headlessly/94304/5

This commit adds a utility that exports the content of a model in a headless mode.

This:

CSVExporter.exportSpots( 'trackmate-output.csv', trackmate_model, False );

results in: Screenshot 2024-04-09 at 18 18 55

Fix #288

imagesc-bot commented 7 months ago

This pull request has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/error-headlessexception-when-trying-to-save-csv-file-of-tracking-data-from-trackmate-when-running-headlessly/94304/7