I'm using ImageJ macro to batch process images. Specifically, I'm trying to run a plugin called Log3D on each image. For some reason, ImageJ macro won't wait for the command to finish running before running the next line in the script.
Is there a way around this?
Thank you!
I'm currently using "waitForUser" to manually let ImageJ know when to continue but this is quite annoying and not useful when I process hundreds of images at once.
selectWindow(file + " - C=" + chFISH);
run("LoG 3D", "sigmax=1.5 sigmay=1.5 sigmaz=1.5 displaykernel=0 volume=1");
waitForUser("Proceed when Log3D is complete");
run("Invert", "stack");
run("16-bit");
print("Saving smFIHS channel to: " + output);
saveAs("Tiff", output + File.separator + file + ".chFISH");
close();