Login  Register

Re: obtaining results in a table

Posted by AdamC on May 07, 2009; 4:44am
URL: http://imagej.273.s1.nabble.com/obtaining-results-in-a-table-tp3692637p3692638.html

Hi Donny,

This should work

function convert(format);
         dir1 = getDirectory("Choose Source Directory ");
     list = getFileList(dir1);
           //loop over the files in the source directory


for (i=0; i<list.length; i++)
         {
         showProgress(i+1, list.length);
     open(dir1+list[i]);
        run("Measure");
        title=getTitle();
    setResult("Label", nResults, title);
        updateResults();
         }


adam

On 6 May 2009, at 23:18, Donny George wrote:

> hello,
>
> i am working with image properties on imagej and wanted to obtain  
> properties
> like mean, min, max and std in a table. one problem is that standard
> deviation (std) is not included in the macro  run("Measure") ??
>
> function convert(format);
>         dir1 = getDirectory("Choose Source Directory ");
>     list = getFileList(dir1);
>           //loop over the files in the source directory
>
>
> for (i=0; i<list.length; i++)
>         {
>         showProgress(i+1, list.length);
>     open(dir1+list[i]);
>        run("Measure");
>     setResult("Label", nResults-1, "+ getTitle");
>
>         }
>
> and this is the result i get
>
>   mean        min    max
>    154.764    30    246
>     155.198    29    245
>     155.508    30    245
>     153.564    26    245
>     142.277    30    245
>
>
> But with the code i wanted to get the name of the file as the first  
> column,
> could someone help me please
>
> thank you
> --
> Donny George

Dr Adam Cliffe
Research Fellow
Rørth Lab
Cell Migration Group
Temasek Lifescience Laboratory
1 Research Link
National University of Singapore
Singapore 117604

tel: (65) 6872 8406
fax: (65) 6872 7007