Re: can I batch process all the opened images
Posted by
jmutterer on
Mar 09, 2010; 10:56am
URL: http://imagej.273.s1.nabble.com/can-I-batch-process-all-the-opened-images-tp3689050p3689051.html
Hi,
you need to first get all opened images IDs, then process each image, like
this :
// get image IDs of all open images
ids=newArray(nImages);
for (i=0;i<nImages;i++) {
selectImage(i+1);
ids[i]=getImageID;
}
// process all open images
for (i=0;i<ids.length;i++) {
selectImage(ids[i]);
run("Z Project...", "projection=[Average Intensity]");
}
jerome.
On Tue, Feb 23, 2010 at 8:07 PM, Xulong Wang <
[hidden email]> wrote:
> Looking for a way to batch process all the opened images (not saved in a
> folder) by the same command, z-projection.
>