Skip to content

Commit

Permalink
bugfix for not displaying output image when used in macros
Browse files Browse the repository at this point in the history
  • Loading branch information
biovoxxel committed Feb 20, 2022
1 parent 6c5b2f3 commit fc38088
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,23 @@ public class BV_VoronoiThresholdLabelingGUI extends DynamicCommand {


public void run() {

if (inputImagePlus.getRoi() != null && applyOnCompleteImage) {

bvvtl.getOutputImage().close();
inputImagePlus.killRoi();
setupImage();
processImage();
bvvtl.getInputImageAsClearClBuffer().close();
bvvtl.getCurrentCLIJ2Instance().close();

} else {
bvvtl.getInputImageAsClearClBuffer().close();
bvvtl.getCurrentCLIJ2Instance().close();

setupImage();
processImage();

}

bvvtl.getInputImageAsClearClBuffer().close();
bvvtl.getCurrentCLIJ2Instance().close();
}


Expand Down

0 comments on commit fc38088

Please sign in to comment.