Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Preview function for on-the-fly update ROIs #12

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Handle RoiManager.getInstance() null case
  • Loading branch information
hkmoon committed Jul 9, 2021
commit 4d73d7c10df4c728e7c4caf6924c11b7c4ff8664
6 changes: 5 additions & 1 deletion src/main/java/de/csbdresden/stardist/StarDist2D.java
Original file line number Diff line number Diff line change
@@ -437,7 +437,11 @@ public void preview() {

@Override
public void cancel() {
RoiManager.getInstance().reset();
if (RoiManager.getInstance() == null) {
new RoiManager().reset();
} else {
RoiManager.getInstance().reset();
}
}

@Override