Is there anyway using TrackMate plugin to display the TrackID with moving round objects in all frames?

Is there anyway using TrackMate plugin to display the TrackID with moving round objects in all frames? Or I have to code myself to achieve it?

Hello @zwei2001

The way we discussed before is not good enough?

If it isn’t and you want to have full automation you will have to resort to scripting or tracking.
The idea is the following:

TrackMate can only display the spot labels. So you must find way to set the label of all the spots of a track with the same name.
To do so you need to iterate over each track in the model, get all the corresponding spots and set their laba.

First to get the tracks of a model, use the TrackModel (https://javadoc.scijava.org/Fiji/fiji/plugin/trackmate/TrackModel.html) of a Model.
The

trackModel.trackIDs( true )

method will return the IDs of the track, and then the

	public Set<Spot> trackSpots(Integer trackID)

will return the spots.

After this it is a matter of looping through all the spots and setting their label with spot.setName(String name)

Tell us how it goes.
bet
jy

1 Like

Thanks Jean! I will try and will get back to you with questions…:slight_smile: Take care!
Zhouping