Hello,
I am using the Extended Particle Analyzer from the BioVoxxel Plugins in my own Plugin.
I want to get the Results from the Results Table and work with this data in my own plugin.
My problem is, that I don’t know what number / name the columns in the results have
I tried:
double wert = 0;
-
wert = rt.getValueAsDouble(0, 1);
ERROR: java.lang.IllegalArgumentException: Index out of range: 0,1 -
wert = rt.getValue("Area", 1)
;
ERROR: java.lang.IllegalArgumentException: Row out of range
Why doesn’t work the second and what means this error? I have 55 results, so there have to be 55 rows… why is row 1 out of range?
Code:
IJ.run(originalbild, "Extended Particle Analyzer", "area=0-Infinity show=Nothing redirect=None keep=None display");
//Resultate auslesen:
ResultsTable rt = Analyzer.getResultsTable();
//rt.show("Results");
//int counter = rt.getCounter();
int lastco = rt.getLastColumn(); // **why is this -1?**
System.out.print(lastco);
double wert = 0;
wert = rt.getValue("Area", 1);
//rt.getValueAsDouble(0, 1); //Spalte,Zeile
System.out.print(wert);
System.out.print("\n");
Can anyone help me with this problem?
~Stefan