Login  Register

AW: how to influence result table?

Posted by Lucas, Falk /BDF HAM on Nov 03, 2006; 12:19pm
URL: http://imagej.273.s1.nabble.com/how-to-influence-result-table-tp3701093p3701094.html

Hi,

if using  the macro language, one can do something like this summarize function.
All you have to add, is the restriction to an upper and lower level.

I use this function to write to str to an file. One can omit the replace commands, if one doesn't need to convert the decimal dot to a comma.

function summarize() {
                str = "";
                mean = 0;
                total = 0;
               
                for (i=0; i < nResults; i++) {
                        meanI = getResult("Area",i);
                        mean += meanI;
                       
                        str=str+ i + "\t" + replace(meanI, ".", ",") + " \n";

                }
                total = mean;
                mean /= nResults;
                str = "Count:\t" + nResults + " \n"+ "TotalArea:\t" + replace(total, ".", ",") + " \n"
                        +"Mean:\t" + replace(mean, ".", ",")+ " \n"+str;
                return str;
        }

Falk

-----Ursprüngliche Nachricht-----
Von: ImageJ Interest Group [mailto:[hidden email]] Im Auftrag von jarek
Gesendet: Freitag, 3. November 2006 11:42
An: [hidden email]
Betreff: 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

_____________________  Confidentiality  _____________________

This electronic transmission is strictly confidential and intended
solely for the addressee.  It may contain information which is covered
by legal, professional or other privilege.  If you are not the intended
addressee, you must not disclose, copy or take any action in reliance
of this transmission.  If you have received this transmission in error,
please notify us and delete the received data as soon as possible.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.
_______________________________________________________