Login  Register

Re: how to select a window after image calculation

Posted by melkor2.0 on May 04, 2011; 4:23pm
URL: http://imagej.273.s1.nabble.com/how-to-select-a-window-after-image-calculation-tp3684716p3684718.html

Thanks but I already solved getting the id, the problem is that I was
working with all the images of a folder, so I could not give any concrete
name in the macro, anyway thanks for the help!

ramon

On 4 May 2011 16:23, Damon Poburko <[hidden email]> wrote:

> If you know the title of Image1 (not the id) in your calculation, the
> resulting image will usually be "Result of " + Image1. I usually key off of
> that and rename it or just do something simple minded like making a
> variable:
> resultImg = "Result of " + Img1;
>
> Best, Damon Poburko
>
>
> On 5/4/2011 3:41 AM, Ramon Guirado wrote:
>
>> Hello everybody, I'm making a macro to select all the files within a
>> directory and process them, therefore for a list, I separate the channels,
>> then identify them and then count them, however I also make a
>> image subtraction and afterthat I don't know how to process that new image
>> created. For example to analyze one channel I just make
>> "selectImage(id+1)"
>> but I have no idea how to call the window created after the subtraction.
>> I make the "imageCalculator("AND create", id,id+2);" and it seems to work,
>> however I don't know how to select that window... maybe another   id =
>> getImageID(); changing the word id by any other just after the image
>> calculator?
>> any idea?
>>
>> thanks,
>>
>> ramon
>>
>