Login  Register

Re: ImageJ does not wait for ImageJ

Posted by Johannes Koch on Sep 17, 2013; 12:16pm
URL: http://imagej.273.s1.nabble.com/ImageJ-does-not-wait-for-ImageJ-tp5004817p5004820.html

Thanks!

It seems I missed the logic. I thought ImageJ takes the next-to-last
image (created by the duplicate command) when the last image is closed.
This is obviously not (always) the case...but in the majority.

Why then had selectWindow() the same effect as the wait() command....
that however, still does not seem to be very logic to me.

... what do I miss here?

Johannes



*Dr. Johannes Koch*

*Tissue Med Biosciences GmbH*

Magnesitstrasse1 | A-3500 Krems

T: +43/2732/87470-300 | M: [hidden email]
<mailto:[hidden email]>

*www.tmbiosciences.com <http://www.tmbiosciences.com/>*

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Information. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte unverzüglich den
Absender und vernichten Sie diese E-Mail sofort. Das unerlaubte Kopieren
sowie die unbefugte Weitergabe dieser E-Mail sind nicht gestattet.

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient or have received this e-mail in error
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

Am 17.09.2013 12:34, schrieb Gabriel Landini:

> 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
>


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html