How to launch imageJ+an image+a plugin in command line

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

How to launch imageJ+an image+a plugin in command line

Babarpapa
Hello, sorry for my bad english.
I would like to know how it is possible to launch ImageJ and open an image and launch my plugin.
I successed in opening imagej and an image but not my plugin (in a jar).
"javaw -cp ij.jar ij.ImageJ DAPI_01.tif"
Can you help me please?
Thanks,

Mathieu
Reply | Threaded
Open this post in threaded view
|

Re: How to launch imageJ+an image+a plugin in command line

dscho
Hi,

On Wed, 19 Sep 2007, Babarpapa wrote:

> I would like to know how it is possible to launch ImageJ and open an
> image and launch my plugin.
>
> I successed in opening imagej and an image but not my plugin (in a jar).
> "javaw -cp ij.jar ij.ImageJ DAPI_01.tif"

Try

        javaw -cp ij.jar ij.ImageJ DAPI_01.tif -eval 'run("My Macro", "");'

If in doubt about the way to call the plugin, activate
Plugins>Macro>Record... and run the plugin manually.  You should see the
correct call in the recorder window once the plugin finished.

Hth,
Dscho