Skip to content

Commit 49e5d28

Browse files
committed
Fix manual tracking plugin being devoid of features.
We need to trigger computation of features at startup so that they analyzers are declared in the model. Really fix #194
1 parent ba9fd06 commit 49e5d28

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/main/java/fiji/plugin/trackmate/ManualTrackingPlugIn.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ protected Settings createSettings( final ImagePlus imp )
5454
return lSettings;
5555
}
5656

57+
@Override
58+
protected TrackMate createTrackMate( final Model model, final Settings settings )
59+
{
60+
final TrackMate trackmate = super.createTrackMate( model, settings );
61+
// Trigger computation of features so that they analyzers are declared
62+
// in the model.
63+
trackmate.computeSpotFeatures( false );
64+
trackmate.computeEdgeFeatures( false );
65+
trackmate.computeTrackFeatures( false );
66+
return trackmate;
67+
}
68+
5769
public static void main( final String[] args )
5870
{
5971
ImageJ.main( args );

0 commit comments

Comments
 (0)