Closed maarzt closed 2 years ago
Batch mode changes the behaviour of IJ1 such that when ImagePlus.show() is called, the ImagePlus is not shown but added to an Interpreter.addBatchModeImage(ImagePlus) is executed instead. This also works fine when an scijava command is executed but the fulling line calls Interpreter.removeBatchModeImage(ImagePlus) and thereby deletes the image again. https://github.com/imagej/imagej-legacy/blob/c65f9dca8e1de812a234923b795e8052e7c58f63/src/main/java/net/imagej/legacy/translate/Harmonizer.java#L188
This is a duplicated issue see #215.
This problem was noticed when running Labkit from an imagej macro. (see https://github.com/juglab/labkit-ui/issues/85)
This macro works fine:
But when executed in batch mode the results don't show up any more:
I think this should be solve by rewriting IJ1 <-> IJ2 synchronization (#231).