[ImageJ-devel] Scripting examples
Brian Northan
bnorthan at gmail.com
Tue Feb 18 11:10:53 CST 2014
Hi Curtis
Thank you for your last update on the scripting. I got a chance to play
around with it and have been running some simple Jython scripts.
Now I am trying to understand how one should be accessing ImageJ2
functionality from the scripts. In ImageJ1 I use the static functions in
the IJ class, IJ.run, IJ.openImage etc.
So far in ImageJ2 I have been writing java applications that start by
instantiating an ImageJ app and then use that to access services and run
commands. Basically following the tutorials.
So how are things intended to work in a script?? Is there a simpler api
somewhere like the IJ API?? Or does one still need to use the service APIs
in a script??
Thanks
Brian
On Thu, Dec 19, 2013 at 6:17 PM, Curtis Rueden <ctrueden at wisc.edu> wrote:
> Hi Brian,
>
> > You mentioned that it is getting closer with the merger of a
> > 'script-parameters' branch.
>
> Yep, the current master branch supports running parameterized scripts in
> any supported scripting language. But what doesn't work yet is running them
> from the Script Editor. That work is pending on the 'script-editor-cleanup'
> branch, which unfortunately I doubt will be finished before year's end.
>
> > Are there any particular classes or example code that would be useful
> > to look at right now??
>
> No real examples yet, sorry. The closest thing ATM is the unit tests:
>
> Beanshell: http://git.io/ozG67g
> Clojure: http://git.io/XXjbwg
> JavaScript: http://git.io/YNMdMQ
> JRuby: http://git.io/S72JqQ (but broken, unfortunately)
> Jython: http://git.io/wa4SQw
>
> > Or would it be best to wait a few weeks for more updates.
>
> Well, in a few more weeks, parameterized scripts will be working from the
> Script Editor, and we will also have a tutorial in imagej-tutorials. But
> fundamentally it is working now, if you are feeling impatient. :-)
>
> Regards,
> Curtis
>
>
> On Mon, Dec 9, 2013 at 10:27 AM, Brian Northan <bnorthan at gmail.com> wrote:
>
>> Hi Curtis (and list)
>>
>> Thanks for the continued updates on the status of the scripting. You
>> mentioned that it is getting closer with the merger of a
>> 'script-parameters' branch. Are there any particular classes or example
>> code that would be useful to look at right now?? Or would it be best to
>> wait a few weeks for more updates.
>>
>> Thanks
>>
>> Brian
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20140218/a49abc7d/attachment.html>
More information about the ImageJ-devel
mailing list