Login  Register

Re: Return value to macro from java plugin

Posted by Niko Ehrenfeuchter on Nov 30, 2014; 3:10pm
URL: http://imagej.273.s1.nabble.com/Return-value-to-macro-from-java-plugin-tp5010694p5010696.html

Hi Thorsten,

On 30.11.2014 15:46, Gabriel Landini wrote:
> On Sunday 30 Nov 2014 15:25:39 Thorsten Wagner wrote:
>
>> it is possible to return a value from an imagej java plugin to an imagej
>> macro?
>
> You can  set a 'property' to the image that you are processing from a plugin
> or macro and then get that property from another macro:
>
> http://rsb.info.nih.gov/ij/plugins/imp-props.html

you might also consider using JavaScript instead of the ImageJ Macro
Language in such a case. It's still pretty simple and straightforward,
and can even be generated by the ImageJ Macro Recorder.

Cheers
Niko

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