![]() Try loading one of the ImageJ sample images by going to File › Open Samples › T1 Head (2.4M, 16-bits). It would be a good idea to take a quick look at the page on Scripting Help for tips on using this interpreter window.l Now you can start typing Ruby expressions into that window, such as: The interpreter window will pop up, but it may take a little time for the JRuby runtime to be ready. Let's start writing some JRuby right away - start up the interpreter by going to Plugins › Scripting › JRuby Interpreter. 4 Example: Generating Red/Cyan Anaglyphs.3 Example: Batch Converting File Formats.If you have any questions or suggestions about JRuby scripting in ImageJ, please contact the ImageJ forum. (These advantages, of course, are shared by the Jython Scripting, Clojure Scripting, Beanscript and Javascript Scripting bundled in Fiji.) Developing JRuby scripts is very fast compared to developing plugins in Java. ![]() 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 classes.You don't have to learn a new language to script ImageJ (assuming you know Ruby).JRuby scripting in ImageJ is a nice alternative to scripting using ImageJ's macro language. The excellent work of the authors of JRuby has made it very simple for us to add JRuby scripting into ImageJ. JRuby is a marvellous project that created a complete implementation of Ruby that runs in the JVM. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |