Login  Register

Re: Load external plugin programmatically

Posted by ctrueden on Oct 31, 2007; 8:33pm
URL: http://imagej.273.s1.nabble.com/Load-external-plugin-programmatically-tp3698112p3698113.html

Hi Thomas,

You say your program is an "application." Does that mean it is a
standalone program? Or are you writing a plugin or macro for ImageJ?
If writing a macro,  you can use the Bio-Formats Macro Extensions. For
a plugin, you should be able to just import the appropriate
loci.formats.* classes in your plugin code as long as both
loci_tools.jar and your plugin are in the ImageJ plugins folder.

If your application is really standalone and does not depend on
ImageJ, then you can instead follow the directions on the Bio-Formats
web site at <http://www.loci.wisc.edu/ome/formats.html> for "Using
Bio-Formats as a library" without involving ImageJ at all (unless you
are making use of ImageJ's image processing capabilities elsewhere in
your app). In particular I suggest you take a look at the "Using
Bio-Formats Guide" available at
<https://skyking.microscopy.wisc.edu/svn/java/trunk/loci/formats/doc/using-bioformats.txt>
and linked from the web site.

-Curtis

On 10/31/07, Thomas Lenoir <[hidden email]> wrote:

> Hello,
>
> I'm currently writing an application to process .zvi files and I'd like to know how to load loci plugins
> programmatically ?
> I know where to place loci_tools.jar in order to view .zvi files with the ImageJ app, but I haven't found
> anything on how to load external plugins from java.
>
> Thanks.
>
> Thomas
>