Posted by
donny008 on
May 25, 2009; 12:54pm
URL: http://imagej.273.s1.nabble.com/opening-and-saving-2-results-window-tp3692423p3692425.html
hello fernando
thankyou for the idea.i tried this but i have not been able to get it
working. however i did it by having two loops
is there also any way to integrate to result table without loosing the info
from each of them
nBins = 256;
run("Clear Results");
row = 0;
getHistogram(values, counts, nBins);
for (i=0; i<nBins; i++) {
setResult("Value", row, values[i]);
setResult("Count", row, counts[i]);
row++;
}
updateResults();
run("Measure");
title=getTitle();
setResult("Label", nResults-1, "True Value "+title);
updateResults();
any clue ?
don
On Fri, May 22, 2009 at 9:01 PM, Fernando Sales <
[hidden email]>wrote:
> Donny,
> there's a possible solution using the method ResultsTable.clone(). I think
> you can use the resultstable for the original table and clone it. After
> this, process the image and uses the first resultsTable to show your
> results.
> Try it.
> Best regards,
> Fernando
>
> On Fri, May 22, 2009 at 6:39 AM, Donny George <
[hidden email]> wrote:
>
> > hello
> >
> > for a specific macro that i am writing, i want to save my results into 2
> > results window. one to save the properties of the original image and the
> > other one to save the properties of the image after being manipulated.
> but
> > i
> > am not sure how i could open a new results window,
> >
> >
> > run("Measure");
> > title=getTitle();
> > setResult("Label", nResults-1, "True Value "+title);
> > updateResults();
> >
> > getStatistics(pixels, mean, min, max, std, histogram);
> > setMinAndMax(mean*0.6666,mean+0.3333*(255-mean));
> > run("Smooth");
> >
> > run("Enhance Contrast", "saturated=0.2");
> >
> >
> > run("Measure");
> > title=getTitle();
> > setResult("Label", nResults-1, "Modified "+title);
> > updateResults();
> >
> > //run("Histogram");
> >
> > }
> >
> > selectWindow("Results");
> > saveAs("Measurements", "");
> >
> >
> > could some one put in some comments to help me
> >
> > thank you
> >
> >
> > --
> > Donny George
> >
>
--
Donny George