Converting Macro to Plugin

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

Converting Macro to Plugin

Wilson R S (AT)
Hi Listers,

I have some macro's that have become quite intricate, and are running slower than I would like, so I am thinking of converting them to plugins.

My question is simple, is there an easy way of doing this? Or a utility that I can use within ImageJ, have looked but not found anything of help. I will be honest my grasp on java is not the best, hence why originally created macros and not plugins.

Thanks in advanced

Rhod
Reply | Threaded
Open this post in threaded view
|

Re: Converting Macro to Plugin

dscho
Hi,

On Tue, 19 Jul 2011, Wilson R S (AT) wrote:

> I have some macro's that have become quite intricate, and are running
> slower than I would like, so I am thinking of converting them to
> plugins.
>
> My question is simple, is there an easy way of doing this? Or a utility
> that I can use within ImageJ, have looked but not found anything of
> help. I will be honest my grasp on java is not the best, hence why
> originally created macros and not plugins.

Maybe the best way to start would be to launch the Macro Recorder, but
before recording anything you select "Plugin" instead of "Macro"? After
recording a few commands, pressing "Create" will make a plugin of the
recorded steps...

Hth,
Johannes
Reply | Threaded
Open this post in threaded view
|

Re: Converting Macro to Plugin

Jacqueline Ross
Hi Wilson,

Further to the reply from Johannes, my understanding is that if you put an underscore (_) at the beginning of the file name and put the file (saved as .txt) into your Plugins folder, it will appear there and can be used in the same way as other plugins. That's what I do.

Kind regards,

Jacqui

Jacqueline Ross

Biomedical Imaging Microscopist
Biomedical Imaging Research Unit
School of Medical Sciences
Faculty of Medical & Health Sciences
The University of Auckland
Private Bag 92019
Auckland, NEW ZEALAND

Tel: 64 9 373 7599 Ext 87438
Fax: 64 9 373 7484

http://www.fmhs.auckland.ac.nz/sms/biru/

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Johannes Schindelin
Sent: Wednesday, 20 July 2011 9:07 a.m.
To: [hidden email]
Subject: Re: Converting Macro to Plugin

Hi,

On Tue, 19 Jul 2011, Wilson R S (AT) wrote:

> I have some macro's that have become quite intricate, and are running
> slower than I would like, so I am thinking of converting them to
> plugins.
>
> My question is simple, is there an easy way of doing this? Or a utility
> that I can use within ImageJ, have looked but not found anything of
> help. I will be honest my grasp on java is not the best, hence why
> originally created macros and not plugins.

Maybe the best way to start would be to launch the Macro Recorder, but
before recording anything you select "Plugin" instead of "Macro"? After
recording a few commands, pressing "Create" will make a plugin of the
recorded steps...

Hth,
Johannes