Skip to content

Commit df9d401

Browse files
committed
Do not kill or replace the ROI in the displayer.
Fix 203. Anotther positive consequence is that the ROI can be modified in detector config panel. This lets the user also ajust the ROI with detection preview.
1 parent 129cbd5 commit df9d401

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/main/java/fiji/plugin/trackmate/visualization/hyperstack/HyperStackDisplayer.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ public class HyperStackDisplayer extends AbstractTrackMateModelView
4444

4545
private SpotEditTool editTool;
4646

47-
private Roi initialROI;
48-
4947
public static final String KEY = "HYPERSTACKDISPLAYER";
5048

5149
/*
@@ -151,10 +149,6 @@ public void centerViewOn( final Spot spot )
151149
@Override
152150
public void render()
153151
{
154-
initialROI = imp.getRoi();
155-
if ( initialROI != null )
156-
imp.killRoi();
157-
158152
clear();
159153
imp.setOpenAsHyperStack( true );
160154
if ( !imp.isVisible() )
@@ -183,10 +177,6 @@ public void clear()
183177
imp.setOverlay( overlay );
184178
}
185179
overlay.clear();
186-
187-
if ( initialROI != null )
188-
imp.getOverlay().add( initialROI );
189-
190180
refresh();
191181
}
192182

0 commit comments

Comments
 (0)