Re: How to pass an array from a plugin to a macro?

Posted by Gabriel Landini on
URL: http://imagej.273.s1.nabble.com/How-to-pass-an-array-from-a-plugin-to-a-macro-tp5002492p5002500.html

On Monday 01 Apr 2013 19:04:11 Emmanuel Levy wrote:
> Thanks, I understand that this does sound a bit strange but the reason is
> that i started working on a macro a long time ago and it would require a
> significant amount of work to port the whole thing to Javascript.

Currently you can't pass an array the way you want.

You could, write the array to a file, and read it from the macro.
Or make an image of n columns and 1 row and set the pixel values from the
array and read it from the macro.
Or set and get values to the so called "image properties" with the ImpProps
class.

Cheers

Gabriel

 

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