|
Hi,
I'm wanting to process a bunch of images in a stack in an ImageJ macro
as quickly as possible and therefore setBatchMode(true) before the loop
and setBatchMode(false) after it.
When I included the statement:
Plot.update()
an exception was raised:
java.lang.NullPointerException
at ij.macro.Functions.updatePlot(Functions.java:1939)
at ij.macro.Functions.doPlot(Functions.java:1820)
at ij.macro.Functions.doFunction(Functions.java:129)
at ij.macro.Interpreter.doStatement(Interpreter.java:203)
at ij.macro.Interpreter.doBlock(Interpreter.java:518)
at ij.macro.Interpreter.runMacro(Interpreter.java:130)
at ij.macro.MacroRunner.run(MacroRunner.java:126)
at java.lang.Thread.run(Thread.java:619)
The obvious answer is "So don't do it!", and I have rearranged the code
to avoid the error. However, it took a little while to discover why
Plot.update was bugging out, and maybe it shouldn't - so I thought I
should at least report this.
Thanks,
Francis
|