batch mode
Posted by Frank Sprenger on Mar 07, 2011; 1:13pm
URL: http://imagej.273.s1.nabble.com/batch-mode-tp3685405.html
Hello,
I have several problems with Macros that run in BatchMode(false), but not in BatchMode(true). I have seen several postings about that issue already but I am not sure what the problem is in my case.
I am running 1.45b in 64bit mode.
Here is one example of a macro running only in BathMode(false). When running in BatchMode(true), I am only getting black images for ch2 and ch3. The original image is a 32bit (sum-projection) hyperstack with three channels and 30 frames.
Is there a problem with 32bit images???
Thanks for your input.
Frank
setBatchMode(true);
run("Duplicate...", "title=hyper duplicate");
selectWindow("hyper");
Stack.setChannel(1);
run("Reduce Dimensionality...", " frames keep");
rename("ch1");
run("Grays");
selectWindow("hyper");
Stack.setChannel(2);
run("Reduce Dimensionality...", " frames keep");
rename("ch2");
run("Grays");
selectWindow("hyper");
Stack.setChannel(3);
run("Reduce Dimensionality...", " frames keep");
rename("ch3");
run("Grays");
setBatchMode("exit & display");