can I batch process all the opened images

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

can I batch process all the opened images

Xulong Wang
Looking for a way to batch process all the opened images (not saved in a
folder) by the same command, z-projection.
Reply | Threaded
Open this post in threaded view
|

Re: can I batch process all the opened images

chenyanpei
Nice to meet you. you can use JAVA in the eclipse. and see other persons program.
Reply | Threaded
Open this post in threaded view
|

Re: can I batch process all the opened images

jmutterer
In reply to this post by Xulong Wang
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.
>