On Sep 2, 2013, at 1:45 PM, Neil Fazel wrote:
> I'm trying to open the .txt files in a directory as a stack (on a Mac) using File -> Import -> Image Sequence... The dialog box shown in section 26.6.1 of the ImageJ manual is not displayed; an Open Image Sequence... dialog is displayed, and when I select the directory containing the files, nothing happens. I was expecting a stack of .txt images to be created. Is this not the way to do it?
You need to use this macro:
dir = getDirectory("Choose directory");
list = getFileList(dir);
run("Close All");
setBatchMode(true);
for (i=0; i<list.length; i++) {
file = dir + list[i];
run("Text Image... ", "open=&file");
}
run("Images to Stack", "use");
setBatchMode(false);
This macro is also available on the ImageJ website at
http://imagej.nih.gov/ij/macros/ImportTextImageSequence.txt-wayne
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html