Login  Register

Re: Saving z-axis projection values within a macro

Posted by jmutterer on Sep 30, 2008; 7:09am
URL: http://imagej.273.s1.nabble.com/Saving-z-axis-projection-values-within-a-macro-tp3694937p3694938.html

Josh,

The Plot.getValues(xvalues, yvalues); macro function does this.

Once you have the two arrays of x and y values, you can write them in
a file with the print function as shown in a recent post by Wayne :

f = File.open(getDirectory("home")+"profile.xls");
  for (i=0; i<xvalues.length; i++)
      print(f, xvalues[i]+"\t"+yvalues[i]);

Jerome.


On Tue, Sep 30, 2008 at 12:42 AM, Josh <[hidden email]> wrote:

> Hi,
> I would like to write a macro to do some processing on a stack and then save
> the z-axis profile means.
>
> After I do the z-axis mapping, I can save the results using the "Save..."
> button, but when I'm recording a macro nothing shows up when clicking the
> Save button.
>
> Is there some way I can save these values or do I need to do it manually?
>
> Thanks in advance
>
> Josh Chang
>