Skip to content

Commit

Permalink
add method that allows adding pols from the main gui using batchsam
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Nov 27, 2024
1 parent e154ed3 commit d01c08e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/ai/nets/samj/ij/ui/Consumer.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
import java.util.Stack;
import java.util.stream.Collectors;

import javax.swing.SwingUtilities;

import ai.nets.samj.annotation.Mask;
import ai.nets.samj.gui.components.ComboBoxItem;
import ai.nets.samj.ij.utils.RoiManagerPrivateViolator;
Expand Down Expand Up @@ -138,6 +136,12 @@ public List<ComboBoxItem> getListOfOpenImages() {
.map(title -> new IJComboBoxItem((Object) WindowManager.getImage(title)))
.collect(Collectors.toList());
}

@Override
public void addPolygonsFromGUI(List<Mask> masks) {
// TODO improve the naming
this.addToRoiManager(masks, "batch");
}

@Override
public List<Polygon> getPolygonsFromRoiManager() {
Expand Down

0 comments on commit d01c08e

Please sign in to comment.