Re: setting up multiple arrays using sequential name.
Posted by
Gabriel Landini on
Feb 08, 2009; 9:22am
URL: http://imagej.273.s1.nabble.com/setting-up-multiple-arrays-using-sequential-name-tp3693809p3693815.html
On Sunday 08 February 2009, grimper wrote:
> >> I am trying to write a macro to analysis multiple image stacks. For each
> >> stack, the analyzed result would put into an array respectively. As I
> >> have n stacks, I would need to define n arrays.
The solutions to the lack of mutlidimensional arrays in the macro language are
(in order of complexity):
1. print() or write() your results as you get them, so you do not need to
store them, then save the data and process it outside IJ
2. store everything in a one dimensional array (like java does with getpixels)
3. use javascript (or other script in Fiji) instead if the macro language
http://pacific.mpi-cbg.de/wiki/index.php/Javascript_Scripting4. use java instead of the macro language
Cheers,
G.