Posted by
karo03 on
Dec 07, 2008; 9:26am
URL: http://imagej.273.s1.nabble.com/Make-an-Array-from-a-results-log-tp3694309p3694310.html
... I was just doing around with a similar problem:
cola=newArray("Area","Mean","Min","Max");
rf = newArray(cola.length*nResults);
for (j=0; j<cola.length; j++){
for (i=offs;i<nResults; i++){
rf[j+i*cola.length] = getResult(cola[j],i);
}
}
This snippet of a macro should do it.
There is another example macro in the distribution: BatchRGBMeasure.txt
Regards
Karsten
Am 07.12.2008 um 06:10 schrieb Arron Sullivan:
> I have search the forum in case anyone has already posted a similar
> question
> and I did not find one. So I am making a new message. I am writing
> a macro
> that will have to import an image sequence, stack measure a selected
> area
> and compare the mean values of the stack with that of another
> selection.
>
> I would assume it would be easiest to put these mean values in two
> arrays in
> a function that compares them.
>
> The problem I have is how to get the values from the results log
> into an
> array. I have not seen a function that does this specifically. So I
> was
> wondering if I have to save the results in a file and then import
> the file
> in an array or if there is a way to do this directly without
> creating a
> file.
> Thanks
> (also I apologize if this is a repost I dont think it was posted
> through
> Nabble the first time)
>
>
http://n2.nabble.com/file/n1624402/screenshot.jpeg> --
> View this message in context:
http://n2.nabble.com/Make-an-Array-from-a-results-log.-tp1624402p1624402.html> Sent from the ImageJ mailing list archive at Nabble.com.