Cannot delete rows in ResultsTable?
Posted by Cspr on Mar 03, 2010; 11:01am
URL: http://imagej.273.s1.nabble.com/Cannot-delete-rows-in-ResultsTable-tp3689151.html
This is the code currently employed:
ResultsTable rt = new ResultsTable();
ParticleAnalyzer pa = new ParticleAnalyzer(options, measurements, rt, micronsize, Double.POSITIVE_INFINITY);
pa.analyze(imp3);
After which I aim to delete all the content in the ResultsTable. As surprisingly easy it might sound that does not seem to work.
Doing a simple for-loop
for(int i = 0; i < rt.getCounter(); i++){
rt.deleterow(j)
}
does not work at all. I'm completely unable to manipulate the ResultsTable in any way. Also trying to use the instance of the ResultsTable used by the ParticleAnalyzer method does not work i.e.
ResultsTable rt = ResultsTable.getResultsTable();
System.out.println(rt.getValue("Mean",15)); // To check if anything is present. There IS a "Mean" Column.
results in nothing. What am I missing?
Thanks.