Hi all,
is there a way how to make simple mathematical operation with two cells in a column form a summary table and insert it into this summary table in newly created column? For example [image: Vnorený obrázok 1] Make a substraction of the numbersof this two total area cells. Thank you very much for your time! Best regards Peter. -- Peter Oslanec Institute of materials and machine mechanics Slovak Academy of Sciences Racianska 75 831 02 Bratislava Slovakia -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html image.png (8K) Download Attachment |
On Friday, 17 February 2017 12:35:51 GMT you wrote:
> is there a way how to make simple mathematical operation with two cells in > a column form a summary table and insert it into this summary table in > newly created column? Not in the way that you would do it in a spreasheet program. > For example > [image: Vnorený obrázok 1] > Make a substraction of the numbersof this two total area cells. You rill need to get the values from the table into variables and then operate them. To get a value from the table use: getResult("Column", row) Returns a measurement from the ImageJ results table or NaN if the specified column is not found. The first argument specifies a column in the table. It must be a "Results" window column label, such as "Area", "Mean" or "Circ.". The second argument specifies the row, where 0<=row<nResults. nResults is a predefined variable that contains the current measurement count. (Actually, it's a built-in function with the "()" optional.) Omit the second argument and the row defaults to nResults-1 (the last row in the results table). See also: nResults, setResult, isNaN, getResultLabel. https://imagej.nih.gov/ij/developer/macro/functions.html Cheers Gabriel -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
You first have to rename the summary table to Results using IJ.renameResults("Results");
Kees -----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Gabriel Landini Sent: 17 February 2017 14:47 To: [hidden email] Subject: Re: extracting cells from summary table On Friday, 17 February 2017 12:35:51 GMT you wrote: > is there a way how to make simple mathematical operation with two > cells in a column form a summary table and insert it into this summary > table in newly created column? Not in the way that you would do it in a spreasheet program. > For example > [image: Vnorený obrázok 1] > Make a substraction of the numbersof this two total area cells. You rill need to get the values from the table into variables and then operate them. To get a value from the table use: getResult("Column", row) Returns a measurement from the ImageJ results table or NaN if the specified column is not found. The first argument specifies a column in the table. It must be a "Results" window column label, such as "Area", "Mean" or "Circ.". The second argument specifies the row, where 0<=row<nResults. nResults is a predefined variable that contains the current measurement count. (Actually, it's a built-in function with the "()" optional.) Omit the second argument and the row defaults to nResults-1 (the last row in the results table). See also: nResults, setResult, isNaN, getResultLabel. https://imagej.nih.gov/ij/developer/macro/functions.html Cheers Gabriel -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Guys, thank you very much for your answer.
Best regards Peter. 2017-02-17 16:10 GMT+01:00 Straatman, Kees (Dr.) <[hidden email]>: > You first have to rename the summary table to Results using > IJ.renameResults("Results"); > > Kees > > -----Original Message----- > From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of > Gabriel Landini > Sent: 17 February 2017 14:47 > To: [hidden email] > Subject: Re: extracting cells from summary table > > On Friday, 17 February 2017 12:35:51 GMT you wrote: > > is there a way how to make simple mathematical operation with two > > cells in a column form a summary table and insert it into this summary > > table in newly created column? > > Not in the way that you would do it in a spreasheet program. > > > For example > > [image: Vnorený obrázok 1] > > Make a substraction of the numbersof this two total area cells. > > You rill need to get the values from the table into variables and then > operate them. > To get a value from the table use: > getResult("Column", row) > Returns a measurement from the ImageJ results table or NaN if the > specified column is not found. The first argument specifies a column in the > table. It must be a "Results" window column label, such as "Area", "Mean" > or "Circ.". The second argument specifies the row, where 0<=row<nResults. > nResults is a predefined variable that contains the current measurement > count. (Actually, it's a built-in function with the "()" optional.) Omit > the second argument and the row defaults to nResults-1 (the last row in the > results table). See also: > nResults, setResult, isNaN, getResultLabel. > > https://imagej.nih.gov/ij/developer/macro/functions.html > > Cheers > > Gabriel > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- Peter Oslanec Institute of materials and machine mechanics Slovak Academy of Sciences Racianska 75 831 02 Bratislava Slovakia -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |