TrackMate icon indicating copy to clipboard operation
TrackMate copied to clipboard

Export to CSV file in a headless mode

Open tinevez opened this issue 2 months ago • 0 comments

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

tinevez avatar Apr 09 '24 16:04 tinevez