Login  Register

Re: ImageJ macro to Java conversion

Posted by Jan Eglinger on Jul 30, 2014; 10:04am
URL: http://imagej.273.s1.nabble.com/ImageJ-macro-to-Java-conversion-tp5008955p5008959.html

Dear Avital and Philippe,

On 30.07.2014, 11:48 AM, Philippe CARL wrote:
> Nevertheless plugins are in the same time more difficult and time consuming
> to develop than a macro where most of the code can simply be generated
> automatically by using the macro recorder.

The macro recorder can indeed be used to record Java code for plugins
[1]. If you use Fiji, you can even combine the easy prototyping of
scripts with the full accessibility of the Java API, e.g. by using
Beanshell, Jython or Javascript scripting [2].

I would suggest that you re-record the steps from the macro with the
recorder set to Java (or Javascript or Beanshell).

Cheers,
Jan

[1]:
http://imagej.nih.gov/ij/docs/guide/146-31.html#sub:Record...
[2]:
http://fiji.sc/Scripting_Help


> -----Message d'origine-----
> De : ImageJ Interest Group [mailto:[hidden email]] De la part de Avital
> Steinberg
> Envoyé : mercredi 30 juillet 2014 10:39
> À : [hidden email]
> Objet : ImageJ macro to Java conversion
>
> Hi,
> I would like to convert code from the ImageJ macro language to Java. What is
> the best way to do that?
>
> Thank you,
> Avital
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html