Login  Register

Results count in a separate table

Posted by Cyril Turiès on Sep 20, 2017; 9:15am
URL: http://imagej.273.s1.nabble.com/Results-count-in-a-separate-table-tp5019406.html

Dear ImageJ users,

When using the function getValue("results.count") with a separate table I am
not able to get the total number of lines displayed in this table.
I am working on a macro that has to be launched several times on various
images selected by user. Between two analyses the ResultsTable is cleared,
the image is closed and a table remains called "Morphometrie" with results
calculated from previous images.

I attached below the part of code that is problematic:



If you comment/uncomment lines 11 to 14 to mimic the behaviour of adding
lines to the "Morphometrie" table each time the macro is launched, you get a
results count remaining at 1 with 5 lines in the table.
If you uncomment all the lines at a time you get the correct number from
getValue("results.count").

Is there a way to count the lines that were previously printed in a table?

Thank you for your help.

Cyril



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

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