Login  Register

can the summary table become a results table?

Posted by Aryeh Weiss on Feb 26, 2015; 7:30pm
URL: http://imagej.273.s1.nabble.com/how-to-update-ImagePlus-in-Python-tp5011768p5011792.html

Wayne -- thank you for your explanation of the slice labels.

I have a question about the Summary table generated by the analyzer.

I would like to add a column to it, the way one might do with the
results table.

I came up with the following:
      IJ.renameResults("Summary", "Results")

     rtSummary = ResultsTable.getResultsTable()

     rtSummary.setValue("Slice", rtSummary.getCounter()-2,
channelLabels[channel-1]+"_bg")
     rtSummary.setValue("WeightedMean", rtSummary.getCounter()-2,
bgMeanWeighted)
     rtSummary.setValue("Slice", rtSummary.getCounter()-1,
channelLabels[channel-1]+"_cells")
     rtSummary.setValue("StdDev", rtSummary.getCounter()-1, stdDev)
     IJ.renameResults("Results", "Summary")

So I rename the summary table, and then I use getResultsTable() to
assign it to rtSummary.
This works -- each call to the analyzer adds to the Summary table, and
then I add my items as above.

It would be nice to  be able to hand the Summary table to a results
table constructor, like:
rtSummary = ResultsTable("Summary")

Is there a better way to do this? (Or more correctly -- what is the best
way to do this?)

--aryeh

--
Aryeh Weiss
Faculty of Engineering
Bar Ilan University
Ramat Gan 52900 Israel

Ph:  972-3-5317638
FAX: 972-3-7384051

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