Posted by
Michael Miller on
Nov 03, 2006; 11:10am
URL: http://imagej.273.s1.nabble.com/how-to-influence-result-table-tp3701093p3701095.html
I have just what you need.
Declare your own ResultsTable!
protected ResultsTable rt;
With each new data entry, you should:
rt.incrementCounter();
int column = 1;
rt.addLabel("Entry Title", entryNameString);
rt.addValue(column, doubleValueOfYourData);
rt.setHeading(column++,"The Parameter This Represents");
When you're done filling the columns of that entry, make a call to a method
like this:
protected void displayResults() {
int counter = rt.getCounter();
if (!IJ.isResultsWindow()) {
IJ.setColumnHeadings(rt.getColumnHeadings());
}
String resultsLine = rt.getRowAsString(counter-1);
// display to the ImageJ table
IJ.write(resultsLine);
}
You can populate the table with specifically whatever results you want. And
this is the step that you could manually filter out the ones which exceed
your upper limits.
The only problem with my described method is you mentioned that you perform
particle analyzing, and I still don't know how to access the
ParticleAnalyzer from within a plugin and get it's individual results. It
sure would be nice if somebody answered my original question to the list
"Extracting information from other plugins" *cough*
Since my way isn't complete without this final catch... maybe somebody can
help us both out and answer that final step?
Of course hopefully there are other, completely different methods. If
anybody knows better methods, especially IJ. and ImageJ calls or run
commands to do the same, please let us know :-)
-Mike
----- Original Message -----
From: "jarek" <
[hidden email]>
To: <
[hidden email]>
Sent: Friday, November 03, 2006 4:41 AM
Subject: how to influence result table?
> hello everyone,
>
> i work with particle analyzing, in my procedure i use standard settings of
> ij, but in final step when results are presented before exported to excel,
> it would be nice if one could set down and upper limits for results - in
> some cases i reach values that exceed tha range and those values should be
> deleted.
> any suggestions?
> greetings
>
> jarek grodek