Get the values of ResultsTable

I need to get all the values of a column from the ResultsTable.
Currently, i can get only one value by using this line

double x = rt.getValueAsDouble(rt.getColumnIndex(“x”),i);

Can somebody please tell me how to get all the values for the ResultTable.
How should i increment my counter? Please let me know.
Thanks a lot.

Hi @nickii,
have you already tried with : rt.getColumnAsDoubles(column_index)
http://javadoc.imagej.net/ImageJ1/ij/measure/ResultsTable.html#getColumnAsDoubles(int)

Have a nice day,
Emanuele

3 Likes