Hi,
I've got a macro running with Labkit for segmentation - everything is fine, even ran in batch mode. But it doesn't work when IJ is ran from cmd line. Code as follow
run("Segment Image With Labkit", "segmenter_file=pretrained_classifier.classifier use_gpu=true");
while (!isOpen(output)) {wait(1000);} //(output is just the input image with Labkit added prefix)
When trying to run IJ from command line, nothing happens. Likely the output image (segmentation/probability map) remains unavailable for selection in IJ, can't be selected, so the wait doesn't ends. No issue when ran form IJ directly, batch mode or not. Is there any way to solve or go around this?
Hi,
I've got a macro running with Labkit for segmentation - everything is fine, even ran in batch mode. But it doesn't work when IJ is ran from cmd line. Code as follow
run("Segment Image With Labkit", "segmenter_file=pretrained_classifier.classifier use_gpu=true");
while (!isOpen(output)) {wait(1000);} //(output is just the input image with Labkit added prefix)
When trying to run IJ from command line, nothing happens. Likely the output image (segmentation/probability map) remains unavailable for selection in IJ, can't be selected, so the wait doesn't ends. No issue when ran form IJ directly, batch mode or not. Is there any way to solve or go around this?