From 00ed698c1b1dd1b24408f19081480d7e7a1a7303 Mon Sep 17 00:00:00 2001 From: Jean-Yves Tinevez Date: Mon, 15 May 2023 10:18:35 +0200 Subject: [PATCH] Fix interactive test. --- .../plugin/trackmate/morpholibj/MorpholibJTestDrive.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/fiji/plugin/trackmate/morpholibj/MorpholibJTestDrive.java b/src/test/java/fiji/plugin/trackmate/morpholibj/MorpholibJTestDrive.java index 917b7a6..114e8d4 100644 --- a/src/test/java/fiji/plugin/trackmate/morpholibj/MorpholibJTestDrive.java +++ b/src/test/java/fiji/plugin/trackmate/morpholibj/MorpholibJTestDrive.java @@ -31,7 +31,7 @@ import fiji.plugin.trackmate.TrackMate; import fiji.plugin.trackmate.detection.LabelImageDetector; import fiji.plugin.trackmate.features.FeatureUtils; -import fiji.plugin.trackmate.features.spot.SpotShapeAnalyzerFactory; +import fiji.plugin.trackmate.features.spot.Spot2DShapeAnalyzerFactory; import fiji.plugin.trackmate.gui.displaysettings.DisplaySettings; import fiji.plugin.trackmate.gui.displaysettings.DisplaySettings.TrackMateObject; import fiji.plugin.trackmate.gui.displaysettings.DisplaySettingsIO; @@ -124,14 +124,14 @@ public static < T extends RealType< T > & NativeType< T > > void main( final Str model.setSpots( spots, false ); final Settings settings = new Settings( imp ); - settings.addSpotAnalyzerFactory( new SpotShapeAnalyzerFactory<>() ); + settings.addSpotAnalyzerFactory( new Spot2DShapeAnalyzerFactory<>() ); final TrackMate trackmate = new TrackMate( model, settings ); trackmate.computeSpotFeatures( false ); final DisplaySettings ds = DisplaySettingsIO.readUserDefault(); - final double[] autoMinMax = FeatureUtils.autoMinMax( model, TrackMateObject.SPOTS, SpotShapeAnalyzerFactory.AREA ); - ds.setSpotColorBy( TrackMateObject.SPOTS, SpotShapeAnalyzerFactory.AREA ); + final double[] autoMinMax = FeatureUtils.autoMinMax( model, TrackMateObject.SPOTS, Spot2DShapeAnalyzerFactory.AREA ); + ds.setSpotColorBy( TrackMateObject.SPOTS, Spot2DShapeAnalyzerFactory.AREA ); ds.setSpotMinMax( autoMinMax[ 0 ], autoMinMax[ 1 ] ); final HyperStackDisplayer displayer = new HyperStackDisplayer( model, new SelectionModel( model ), imp, ds ); displayer.render();