Re: Multiple text images

Posted by Wayne Rasband on
URL: http://imagej.273.s1.nabble.com/no-subject-tp3704745p3704746.html

> I am a new user of imageJ and I would like to be able to import
> multiple text images, and then save then as tiff files.
>  
> There is a batchimport, but it does not work (It opens the files as
> text files and not text images) and also if I use the command import
> raw, it does not give the image I want!

Use the File>Import>Text Image command to open a text image or

     run("Text Image... ", "open=["+path+"]");

in a macro. To batch convert text images to tiff files, use a macro
something like this:

       dir1 = getDirectory("Choose Source Directory ");
       dir2 = getDirectory("Choose Destination Directory ");
       list = getFileList(dir1);
       setBatchMode(true);
       for (i=0; i<list.length; i++) {
           showProgress(i+1, list.length);
           run("Text Image... ", "open=["+dir1+list[i]+"]");
           saveAs("tif", dir2+list[i]);
           close();
       }

-wayne