autosize=results option in macro is not working

4 views
Skip to first unread message

Hisham FORRIÈRE

unread,
Nov 24, 2020, 7:08:26 AM11/24/20
to ThunderSTORM: discussion group
Hello

I'm trying to use a macro to create multiples images in different conditions, but the "autosize=result" option is not working
I'm getting a error : the error text is copied below this message. This exception happened by simply applying the command :
run("Visualization", "autosize=results renderer=[Averaged shifted histograms] magnification=5.0 shifts=2");
as proposed in the wiki.

Could you help me solving this problem ?

Thank you
Hisham


Exception text :

(Fiji Is Just) ImageJ 2.1.0/1.53c; Java 1.8.0_172 [64-bit]; Windows 10 10.0; 1071MB of 97747MB (1%)
 
java.lang.IllegalArgumentException: Width (0) and height (0) must be > 0

at java.awt.image.SampleModel.<init>(SampleModel.java:126)

at java.awt.image.ComponentSampleModel.<init>(ComponentSampleModel.java:146)

at java.awt.image.PixelInterleavedSampleModel.<init>(PixelInterleavedSampleModel.java:87)

at java.awt.image.PixelInterleavedSampleModel.createCompatibleSampleModel(PixelInterleavedSampleModel.java:144)

at ij.process.ImageProcessor.getIndexSampleModel(ImageProcessor.java:2523)

at ij.process.FloatProcessor.createBufferedImage(FloatProcessor.java:207)

at ij.process.FloatProcessor.createImage(FloatProcessor.java:176)

at ij.ImagePlus.getImage(ImagePlus.java:539)

at ij.ImagePlus.show(ImagePlus.java:477)

at ij.ImagePlus.show(ImagePlus.java:458)

at cz.cuni.lf1.lge.ThunderSTORM.rendering.RenderingQueue$DefaultRepaintTask.run(RenderingQueue.java:109)

at cz.cuni.lf1.lge.ThunderSTORM.RenderingPlugIn.run(RenderingPlugIn.java:160)

at ij.IJ.runUserPlugIn(IJ.java:235)

at ij.IJ.runPlugIn(IJ.java:198)

at ij.Executer.runCommand(Executer.java:150)

at ij.Executer.run(Executer.java:68)

at ij.IJ.run(IJ.java:317)

at ij.IJ.run(IJ.java:328)

at ij.macro.Functions.doRun(Functions.java:686)

at ij.macro.Functions.doFunction(Functions.java:98)

at ij.macro.Interpreter.doStatement(Interpreter.java:278)

at ij.macro.Interpreter.doStatements(Interpreter.java:264)

at ij.macro.Interpreter.run(Interpreter.java:160)

at ij.macro.Interpreter.run(Interpreter.java:93)

at ij.macro.Interpreter.run(Interpreter.java:104)

at ij.plugin.Macro_Runner.runMacro(Macro_Runner.java:161)

at ij.IJ.runMacro(IJ.java:153)

at ij.IJ.runMacro(IJ.java:142)

at net.imagej.legacy.IJ1Helper$3.call(IJ1Helper.java:1148)

at net.imagej.legacy.IJ1Helper$3.call(IJ1Helper.java:1144)

at net.imagej.legacy.IJ1Helper.runMacroFriendly(IJ1Helper.java:1095)

at net.imagej.legacy.IJ1Helper.runMacro(IJ1Helper.java:1144)

at net.imagej.legacy.plugin.IJ1MacroEngine.eval(IJ1MacroEngine.java:145)

at org.scijava.script.ScriptModule.run(ScriptModule.java:157)

at org.scijava.module.ModuleRunner.run(ModuleRunner.java:165)

at org.scijava.module.ModuleRunner.call(ModuleRunner.java:124)

at org.scijava.module.ModuleRunner.call(ModuleRunner.java:63)

at org.scijava.thread.DefaultThreadService.lambda$wrap$2(DefaultThreadService.java:225)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Reply all
Reply to author
Forward
0 new messages