get a reference to a userplugin

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

get a reference to a userplugin

Michael Strupp
Hello

I'm looking for a way to get a reference to a userplugin, that is running in imagej.

An example:

...
public static void main(String [] args)
{
     ImageJ imagej = new ImageJ();
     imagej.runUserPlugIn("abc", "abc_", "", true);
     //PlugIn a = (abc_) imagej.get?
}

Is there a way to get an do this?

Kind regards,
Michael
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
Reply | Threaded
Open this post in threaded view
|

Re: get a reference to a userplugin

Albert Cardona-2
> I'm looking for a way to get a reference to a userplugin, that is running in imagej.

Sure:

ImagePlus imp = IJ.getImage();
PlugIn p = IJ.runPlugIn(imp, "Invert", "");


See:

http://rsb.info.nih.gov/ij/developer/api/ij/IJ.html#runPlugIn(ij.ImagePlus,%20java.lang.String,%20java.lang.String)

Albert
--
http://albert.rierol.net