Re: problem with batchmode
Posted by
dscho on
Mar 20, 2014; 2:20pm
URL: http://imagej.273.s1.nabble.com/problem-with-batchmode-tp5007005p5007015.html
Hi James,
On Thu, 20 Mar 2014, James Burchfield wrote:
> I have a macro that runs as expected until I set
> setBatchMode(true);
> The It throws an exception
>
> (Fiji Is Just) ImageJ 1.48s; Java 1.6.0_20 [64-bit]; Windows 7 6.1; 248MB
> of 18395MB (1%)
>
> java.lang.NullPointerException
> at ij.plugin.Resizer.run(Resizer.java:35)
> [...]
That line reads:
Rectangle r = ip.getRoi();
suggesting to me that maybe there was a 0-slice image.
> The macro is below, it isn't the end of the world that it doesn't
> work, but I have run into this problem a few times now and i wonder
> if i am doing something wrong that causes this error.
Your macro is very long and assumes certain files and directories to be
present. Under normal circumstances, I would try to find half an hour to
reduce it to a minimal example, but today I simply do not have time.
Would you mind reducing the macro to the bare minimum displaying the
error? I would then finagle a gap into my schedule to debug and fix it.
Ciao,
Johannes
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html