add multiple columns to clipboard

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

add multiple columns to clipboard

NoraWaHi
Dear all,
I am quantifying a Z stack the follwing way: I have 64 squares (same size)
as ROIs and analyse each with the voxel counter plug in. Ideally I want to
use that in a macro. As this is overwriting the results table and I don't
want to save each so to have 64 single files per image, I copied the column
interesting for me to the clipboard.

area = newArray(nResults());
     print("number  \t area");
     for (i=0;i<nResults();i++)
{
       area[i] =  getResult(&quot;Area&quot;, i);
       print(i+1, &quot;\t&quot;, area[i]);
     }


The problem here is, that when opening the file in excel it will give me one
column with all signals for all 64 ROIs. Is it possible to create a new
column in the clipboard where to save the string set from one ROI? So in the
excel file I then have 64 columns. Alternatively, can I do that in the
reuslts table so I circumvent the overwriting issue?
A second problem I am accounting is, that when using the voxel counter plug
in the text in the results table below the data table (see image attached)
containing voxel size and so on is not saved. What is the reason for that?
Tank you very much! Best, Nora

&lt;nabble_img src=&quot;Voxelcounter_output.png&quot;
border=&quot;0&quot;/>




--
Sent from: http://imagej.1557.x6.nabble.com/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: add multiple columns to clipboard

Straub, Volko A. (Dr.)
Hi Nora,


Not quite sure whether I completely understand your question, but if you have an array that contains a list of measurements from one image and want to combine this in a results table with the same number of measurements from another image, you can just write the content of the array as a new column to the results table.

So, in your case, you could add the values stored in the area array to a new column in another results table with the following code:


for(i=0;i<nResults;i++){

setResult("Area1",i,area[i]);   //creates new column with title 'Area1' in results table
};


Hope this helps,

Volko

________________________________
From: NoraWaHi <[hidden email]>
Sent: 30 July 2018 15:46:49
To: [hidden email]
Subject: add multiple columns to clipboard

Dear all,
I am quantifying a Z stack the follwing way: I have 64 squares (same size)
as ROIs and analyse each with the voxel counter plug in. Ideally I want to
use that in a macro. As this is overwriting the results table and I don't
want to save each so to have 64 single files per image, I copied the column
interesting for me to the clipboard.

area = newArray(nResults());
     print("number  \t area");
     for (i=0;i<nResults();i++)
{
       area[i] =  getResult(&quot;Area&quot;, i);
       print(i+1, &quot;\t&quot;, area[i]);
     }


The problem here is, that when opening the file in excel it will give me one
column with all signals for all 64 ROIs. Is it possible to create a new
column in the clipboard where to save the string set from one ROI? So in the
excel file I then have 64 columns. Alternatively, can I do that in the
reuslts table so I circumvent the overwriting issue?
A second problem I am accounting is, that when using the voxel counter plug
in the text in the results table below the data table (see image attached)
containing voxel size and so on is not saved. What is the reason for that?
Tank you very much! Best, Nora

&lt;nabble_img src=&quot;Voxelcounter_output.png&quot;
border=&quot;0&quot;/>




--
Sent from: http://imagej.1557.x6.nabble.com/

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

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