Re: Load external plugin programmatically

Posted by ctrueden on
URL: http://imagej.273.s1.nabble.com/Load-external-plugin-programmatically-tp3698112p3698115.html

Hi Thomas,

Sure, that's one way to do it. But you can also just get BufferedImage
objects directly from an ImageReader and do whatever you want with
them. Java provides lots of functionality related to BufferedImages,
including the ability to paint them directly to a Graphics object, so
you should be able to use them in a variety of ways within your
application without using anything from the loci.plugins packages.

-Curtis

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

> Thanks for your help Curtis ! I'm in the standalone case and I've
> managed to display my .zvi images via an ImagePlusWrapper and it seems
> to work.
>
> Thomas
>
> Le 31 oct. 07 à 20:33, Curtis Rueden a écrit :
>
> > 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
> >>
> >
> >
>