Nested for loops hurt my brain,
so I try to use the Math->Macro… command from within an IJ macro as follows
to put values from myArray into a new image (a z-stack, this command is in a for loop for z slices).
This doesn’t seem to work as expected, but throws no error message…
The result image scans through its z stack as I run the command but the pixel values aren’t changed.
If i use a trivial function just using eg x*y
it works just fine.
Can anyone tell me if this is possible at all…
or should i just use three nested for loops the “normal” way and forget the Macro… command for now?
I’m trying to reconstruct a 3D image from a 2D radial average image, in an IJ macro, so used an array to hold the 2D image info with which to fill in the 3D image z-Stack.