Skip to content

Commit

Permalink
fixup! Save and load example ROIs
Browse files Browse the repository at this point in the history
  • Loading branch information
mlt committed Jan 30, 2024
1 parent 82edfbb commit 0465b5c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/trainableSegmentation/Weka_Segmentation.java
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,8 @@ public void windowClosing(WindowEvent e) {
saveClassifierButton.removeActionListener(listener);
loadDataButton.removeActionListener(listener);
saveDataButton.removeActionListener(listener);
loadExamplesButton.removeActionListener(listener);
saveExamplesButton.removeActionListener(listener);
addClassButton.removeActionListener(listener);
settingsButton.removeActionListener(listener);
wekaButton.removeActionListener(listener);
Expand Down Expand Up @@ -1407,13 +1409,10 @@ public void loadExamplesData() {
return;
}

for (;numOfClasses < wekaSegmentation.getNumOfClasses(); numOfClasses++)
addClass();

updateAddClassButtons();
displayImage.killRoi();
drawExamples();
updateExampleLists();
revalidate();

IJ.log("Loaded example ROIs " + od.getDirectory() + od.getFileName());
}
Expand Down

0 comments on commit 0465b5c

Please sign in to comment.