Re: batch mode
Posted by Frank Sprenger on
URL: http://imagej.273.s1.nabble.com/batch-mode-tp3685405p3685407.html
Hello,
sorry, in the macro the conversion to 8 bit was missing which I have included now.
The problem in batch mode is that the resulting window after reduce dimensionality has lost the scaling that I have applied (and want to keep) of the hyperstack.
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");
run("8-bit");
selectWindow("hyper");
Stack.setChannel(2);
run("Reduce Dimensionality...", " frames keep");
rename("ch2");
run("Grays");
run("8-bit");
selectWindow("hyper");
Stack.setChannel(3);
run("Reduce Dimensionality...", " frames keep");
rename("ch3");
run("Grays");
run("8-bit");
setBatchMode("exit & display");