Login  Register

Re: access R from ImageJ macro

Posted by Marcel on Nov 17, 2014; 9:37pm
URL: http://imagej.273.s1.nabble.com/access-R-from-ImageJ-macro-tp5010490p5010497.html

Here is an example how to call ImageJ from within R (library rJava required):

https://github.com/Bio7/Bio7/blob/master/ImageJ_Conference_2012/ImageJ_FromR/ImageJ_Example.R

This is essentially what RImageJ in a similar way did (load ImageJ and then call the methods).

Maybe this example can help you to create your own script.

Another way would be to use Rserve or JRI from ImageJ, see here:

https://github.com/Bio7/Bio7/tree/master/ImageJ_Conference_2012


There are several other options.

Another interesting approach would be to use Renjin (R as a JVM language) as an ImageJ lib:

http://www.renjin.org/

It is in an early stage but i guess some statistical test are already available:

http://renjindemo.appspot.com/