Start FIJI from Java
Posted by forodin on Sep 07, 2010; 1:11pm
URL: http://imagej.273.s1.nabble.com/Calculating-porosity-in-a-TIF-image-tp3687015p3687018.html
Hi,
I'm currently working on a plugin for Fiji and I use Eclipse for it. I
dont use the FIJI source code or anything like that, I just copy / past
my code into the Plugins-New-Plugins - Window and run it from there. Not
that convenient.
What I would prefer is to run the code in Eclipse, have Fiji started and
the plugin executed automatically (and it would be even better if
everyone could do that from eclipse when using my code).
I can do that with ImageJ by adding a main-method to the plugin:
public static void main(String[] args) {
new ImageJ();
Optimized_Segmentation os = new Optimized_Segmentation();
os.run("");
}
(Optimized_Segmentation is my Plugin)
The thing is that it starts ImageJ, not FIJI. Can I do that with FIJI as
well?
I have to say I'm not very experienced neither in Java (had two lectures
on it) nor in ImageJ/Fiji (used it the first time 1 month ago).
Any comment on this would help. Thanks a lot in advance!
Jens
Osnabrück, Germany