Posted by
David Webster on
Mar 20, 2009; 1:25am
URL: http://imagej.273.s1.nabble.com/Images-to-stack-in-batch-mode-tp3693222p3693223.html
Remi,
I don't know if this is the same thing, but I recently had a problem with
images created in batch mode, not being there when I exited (see my email
"Batch Mode/Active Image Ambiguity" and Wayne's reply. I did an experiment
using the macro shown below:
setBatchMode(true);
newImage("1", "8-bit Black", 100, 100, 1);
newImage("2", "8-bit Black", 100, 100, 1);
newImage("3", "8-bit Black", 100, 100, 1);
// Point 1
//setBatchMode(false);
// Point 2
run("Images to Stack");
//setBatchMode(false);
If I uncomment the first "setBatchMode(false)" then images 1 and 2 aren't
seen and I get the error message "There must be two images open" (image 3 is
open). If I recomment that statement and uncomment the second
"setBatchMode(false)", then I egt a stack with no problems. I hope this
helps.
David Webster
On Thu, Mar 19, 2009 at 9:24 AM, Remi <
[hidden email]> wrote:
> Hello,
>
> I am currently trying to do some image analysis with an imageJ macro that I
> launch in batch mode from the command line (-batch option and
> setBatch(true)). After generating 68 images I would like to run the 'Images
> to Stack' command, to 'compile' them. Unfortunately, the stack is never
> generated.
> Any idea? Advice? Other way to do it? Anything would be greatly
> appreciated.
>
> Thank you,
>
> Rémi P.
>