Re: Using ImageJ directly from Java code
Posted by
Matthew Eichenfield on
Mar 13, 2009; 7:28am
URL: http://imagej.273.s1.nabble.com/Using-ImageJ-directly-from-Java-code-tp3690950p3690954.html
What you are looking to do is create an instance of ImageJ which is embedded
within your program. You can then write a plug-in / script to open your
images and execute commands. The good news is that ImageJ can be modified
fairly easily.
All you need to do is modify the main ImageJ class,
http://rsb.info.nih.gov/ij/developer/source/ij/ImageJ.java.html, and
remove/modify "public static void main()" to work with your Java program.
[Making sure that the "EMBEDDED" flag is set.] ImageJ has no copyright but
please make sure to give credit where it's due.
If you need more information there also exists a tutorial for including
ImageJ in Eclipse for Plugin development.
http://imagejdocu.tudor.lu/doku.php?id=howto:plugins:the_imagej_eclipse_howtoHope this helps,
Matthew