How to use a plugin with duplicate dialog keywords in a macro?

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

How to use a plugin with duplicate dialog keywords in a macro?

John Alexander-7
Hi group,

So I am writing a macro that is going to batch perform the Image
Correlation Analysis plugin on all open images.

The difficulty I am having is that the dialog window asks for an image
for channel 1 and channel 2 and the channel combination, but apparently
there was no preceding underscore for the channel 2 or channel
combination dialog boxes, so I get a "duplicate keyword" error.

My macro doesn't seem to work with the following:
run("Intensity Correlation Analysis", "channel=image-red
channel=image-green channel=[Red : Green] use=None use crosshair=3");

I get image-red is not a valid choice for channel combination, which is
the third dialog option.

Does that make sense?

I need to find a work around ...

John
Reply | Threaded
Open this post in threaded view
|

Re: How to use a plugin with duplicate dialog keywords in a macro?

John Alexander-7
Sorry, I figured out you can be more descriptive in passing arguments.
The following works:

run("Intensity Correlation Analysis", "Channel_1=image-red
Channel_2=image-green Channel_Combination=[Red : Green] use=None use
crosshair=3");




John Alexander wrote:

> Hi group,
>
> So I am writing a macro that is going to batch perform the Image
> Correlation Analysis plugin on all open images.
>
> The difficulty I am having is that the dialog window asks for an image
> for channel 1 and channel 2 and the channel combination, but apparently
> there was no preceding underscore for the channel 2 or channel
> combination dialog boxes, so I get a "duplicate keyword" error.
>
> My macro doesn't seem to work with the following:
> run("Intensity Correlation Analysis", "channel=image-red
> channel=image-green channel=[Red : Green] use=None use crosshair=3");
>
> I get image-red is not a valid choice for channel combination, which is
> the third dialog option.
>
> Does that make sense?
>
> I need to find a work around ...
>
> John
>

--
John K. Alexander, Ph.D.
Post-Doctoral Fellow
William Green Laboratory
University of Chicago
Dept. Neurobiology, Pharmacology, and Physiology
947 East 58th Street
Abott Hall 402
Chicago, IL 60637
(off) 773-702-9386
(fax) 773-702-3774
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: How to use a plugin with duplicate dialog keywords in a macro?

John Alexander-7
Actually, I take that back.  The macro runs - however the Intensity
Correlation Analysis plugin is not taking as input the specified
Channel_1 and Channel_2.

Does anyone know how to pass specific images to the plug-in?

Thanks,

John



John Alexander wrote:

> Sorry, I figured out you can be more descriptive in passing arguments.
> The following works:
>
> run("Intensity Correlation Analysis", "Channel_1=image-red
> Channel_2=image-green Channel_Combination=[Red : Green] use=None use
> crosshair=3");
>
>
>
>
> John Alexander wrote:
>> Hi group,
>>
>> So I am writing a macro that is going to batch perform the Image
>> Correlation Analysis plugin on all open images.
>>
>> The difficulty I am having is that the dialog window asks for an image
>> for channel 1 and channel 2 and the channel combination, but apparently
>> there was no preceding underscore for the channel 2 or channel
>> combination dialog boxes, so I get a "duplicate keyword" error.
>>
>> My macro doesn't seem to work with the following:
>> run("Intensity Correlation Analysis", "channel=image-red
>> channel=image-green channel=[Red : Green] use=None use crosshair=3");
>>
>> I get image-red is not a valid choice for channel combination, which is
>> the third dialog option.
>>
>> Does that make sense?
>>
>> I need to find a work around ...
>>
>> John
>>
>

--
John K. Alexander, Ph.D.
Post-Doctoral Fellow
William Green Laboratory
University of Chicago
Dept. Neurobiology, Pharmacology, and Physiology
947 East 58th Street
Abott Hall 402
Chicago, IL 60637
(off) 773-702-9386
(fax) 773-702-3774
[hidden email]