[ImageJ-devel] running macros on ImageJ2

raghuram sathyam raghuramsathyam at yahoo.com
Tue Jul 24 14:28:39 CDT 2012


Hello IJ developers,
I have been using a macro for processing multiple choice surveys for a while. I wrote this macro from scratch (it was not recorded on the UI) for IJ1 and it works very well on IJ1. I have been trying to migrate to IJ2 so that i can move my processing to the cloud.

I have also written some code to preprocess the images i receive and use IJ as a library within my code. I use IJ.runMacroFile(...) to run the macro that i wrote for detailed image processing using IJ.

I am stuck trying to replicate this behavior on IJ2. If i link IJ1 as a library, AWT is invoked and i am unable to run on a headless server. I looked at the code for the ScriptPlugin.java and various other files in the plugins.script package but have no clue on how to get similar functionality as IJ.runMacroFile(..).

Any pointers on how i can get this done?

-raghuram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20120724/4c2a959c/attachment.html>


More information about the ImageJ-devel mailing list