How to use TrackMate in a Macro to export All spots statistics as a CSV table

Hi everyone!

I discovered TrackMate a few days ago, and it works perfectly for the task that I have: detecting tiny spots in images. I am trying to run TrackMate in an ImageJ Macro so that I can automatically detect the spots under certain parameters and export the results to an CSV table, for many many images. I do not need tracking nor anything else than getting the spots statistics.

For example, the parameters in my case are:

Maybe this is super easy, but I haven’t been able to find how to do it. I know that there is an option to run TrackMate as a macro such as in the link below, but I do not know specifically how to set my parameters or to export the spot statistics. I was hoping that maybe @tinevez or someone could give me a hint.

Thanks a lot!!!

Hi @waisman

Unfortunately you cannot do that with a macro.
You have to resort to Python scripting.

1 Like

Thanks a lot for your quick answer!
Ok, I’ll try and learn it then :slight_smile:

Have a nice weekend!

1 Like