JRuby Scripting

Revision as of 15:52, 27 July 2008 by Mark (talk | contribs) (New page: JRuby scripting in ImageJ is an excellent alternative to scripting using ImageJ's macro language. It has the following advantages: * You don't have to learn a new language to script Image...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

JRuby scripting in ImageJ is an excellent alternative to scripting using ImageJ's macro language. It has the following advantages:

  • You don't have to learn a new language to script ImageJ (assuming you know Ruby)
  • You're not limited to using the functionality exposed by the macro language: you can use any class in ImageJ, one of its plugins or standard Java
  • Developing JRuby scripts is very fast compared to developing plugins in Java

(These advantages, of course, are shared by the Jython, Clojure, Beanscript and Javascript scripting bundled in Fiji.)

Tutorial

[You may want to first have a quick look at the Scripting_Help page for generic instructions in using the interpreter and script interfaces, and the [[1]] page for an example written in several of the different scripting languages available.]

FIXME: fill this in