Posted by
Krs5 on
URL: http://imagej.273.s1.nabble.com/extracting-cells-from-summary-table-tp5018129p5018131.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.htmlCheers
Gabriel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html