Re: opening and saving 2 results window
Posted by
Fernando Sales on
URL: http://imagej.273.s1.nabble.com/opening-and-saving-2-results-window-tp3692423p3692424.html
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
>