Problems batch/macro exporting tiffs
Posted: Tue Mar 26, 2013 5:39 pm
Hello,
I'd really appreciate a little help on this. Even an angry shove in the right direction would be nice.
I'm trying to set up a very basic batch macro to import a tiff (or bigtiff) using b-f importer, run a plugin on the image in place, and export the new tiff (or bigtiff) using b-f exporter. Performing these steps in normal/interactive mode works fine, but running it as a macro or as a batch macro gives me this error during the export step:
Output & Error Message
I've found this occurs even if the intermediate step (image stabilization using the Image Stabilizer plugin http://www.cs.cmu.edu/~kangli/code/Imag ... lizer.html) is left out, as in the macro below:
Macro stabilize.ijm
This occurs with both a fresh installation of Fiji or a fresh installation of ImageJ for 64 bit Linux.
Thanks for any help,
William
I'd really appreciate a little help on this. Even an angry shove in the right direction would be nice.
I'm trying to set up a very basic batch macro to import a tiff (or bigtiff) using b-f importer, run a plugin on the image in place, and export the new tiff (or bigtiff) using b-f exporter. Performing these steps in normal/interactive mode works fine, but running it as a macro or as a batch macro gives me this error during the export step:
Output & Error Message
- Code: Select all
Reading IFDs
Populating metadata
Checking comment style
Populating OME metadata
java.lang.IllegalArgumentException: Invalid Z size: 0
at loci.formats.FormatTools.getZCTCoords(FormatTools.java:403)
at loci.plugins.out.Exporter.run(Exporter.java:545)
at loci.plugins.LociExporter.run(LociExporter.java:77)
at ij.plugin.filter.PlugInFilterRunner.processOneImage(PlugInFilterRunner.java:256)
at ij.plugin.filter.PlugInFilterRunner.<init>(PlugInFilterRunner.java:105)
at ij.IJ.runUserPlugIn(IJ.java:187)
at ij.IJ.runPlugIn(IJ.java:152)
at ij.Executer.runCommand(Executer.java:127)
at ij.Executer.run(Executer.java:64)
at ij.IJ.run(IJ.java:251)
at ij.macro.Functions.doRun(Functions.java:579)
at ij.macro.Functions.doFunction(Functions.java:82)
at ij.macro.Interpreter.doStatement(Interpreter.java:216)
at ij.macro.Interpreter.doStatements(Interpreter.java:204)
at ij.macro.Interpreter.run(Interpreter.java:103)
at ij.macro.Interpreter.run(Interpreter.java:73)
at ij.macro.Interpreter.run(Interpreter.java:84)
at ij.plugin.Macro_Runner.runMacro(Macro_Runner.java:105)
at ij.plugin.Macro_Runner.runMacroFile(Macro_Runner.java:90)
at ij.IJ.runMacroFile(IJ.java:119)
at ij.ImageJ.main(ImageJ.java:670)
I've found this occurs even if the intermediate step (image stabilization using the Image Stabilizer plugin http://www.cs.cmu.edu/~kangli/code/Imag ... lizer.html) is left out, as in the macro below:
Macro stabilize.ijm
- Code: Select all
args = getArgument;
args_array = split(args, ":");
input_name = args_array[0];
output_name = args_array[1];
run("Bio-Formats Importer", "open=[" + input_name + "] autoscale color_mode=Default view=Hyperstack stack_order=XYCZT");
//this is where my Image Stabilization step would run
run("Bio-Formats Exporter", "save=[" + output_name + "] compression=Uncompressed");
This occurs with both a fresh installation of Fiji or a fresh installation of ImageJ for 64 bit Linux.
Thanks for any help,
William