Login  Register

Re: open next

Posted by Gabriel Landini on Oct 15, 2009; 10:47am
URL: http://imagej.273.s1.nabble.com/open-next-tp3690744p3690749.html

On Thursday 15 October 2009  11:46:31 Christophe Leterrier wrote:

> something like
>
> sdir = getDirectory("Choose Source Directory ");
> ddir = getDirectory("Choose Destination Directory ");
> names= getFileList(sdir);
> for (i=0; i<names.length, i++) {
> open(sdir+names[i]);
> run("Rolling Ball Background", "rolling=50");
> save(ddir+names[i]);
> }

One can also use new "Process>Batch" option which seems very convenient.

G.