how to select a window after image calculation

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

how to select a window after image calculation

Ramon Guirado
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
Reply | Threaded
Open this post in threaded view
|

Re: how to select a window after image calculation

dpoburko
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
Reply | Threaded
Open this post in threaded view
|

Re: how to select a window after image calculation

melkor2.0
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
>>
>