Re: ImageJ will not keep images open in batch mode
Posted by Ryan McCool on Jul 21, 2017; 8:29pm
URL: http://imagej.273.s1.nabble.com/ImageJ-will-not-keep-images-open-in-batch-mode-tp5019103p5019108.html
It seems the answer was actually as simple as adding
setBatchMode("True");
before the code. Now the code is:
title = "Select Images";
msg = "Select Merged RFP & GFP Photos";
waitForUser(title, msg);
Merged_image_directory = getDirectory("Choose Source Directory ");
Merged_images = getFileList(Merged_image_directory);
setBatchMode("True");
for (i=0; i<Merged_images.length; i++){
open(Merged_image_directory+Merged_images[i]);
run("Cell Counter");
title = "Cell Counter";
msg = "Count Cells, click result, record to exterior source, then close this dialogue box";
waitForUser(title, msg);
}
Hopefully this is useful to someone else who is just starting out using ImageJ.
Sincerely,
Ryan McCool