Re: ImageJ does not wait for ImageJ
Posted by
Gabriel Landini on
Sep 17, 2013; 10:34am
URL: http://imagej.273.s1.nabble.com/ImageJ-does-not-wait-for-ImageJ-tp5004817p5004819.html
On Tuesday 17 Sep 2013 10:56:36 you wrote:
> I open a series of images, say 20 and run this macro:
>
> //snip
> run("Set Measurements...", "area mean min integrated redirect=None
> decimal=2");
>
> n=nImages;
>
> for(i=0; i<n; i++) {
> name=getTitle();
> Stack.setPosition(2, 1, 1);
> run("Duplicate...", "title=work channels=1-3");
> selectWindow(name);
> close();
> *wait(500);*
> run("Subtract Background...", "rolling=25 sliding disable");
[...]
You need to specify this with SelectWindow(your_image_name) just before
preforming the Subtract Background command to make sure that the process is on
the correct one.
The macro above selects an image and immediately closes it on the next line,
so which image is the one being processed now?
Regards
Gabriel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html