Login  Register

saving complete content of "results window"

Posted by JKate on Apr 22, 2010; 1:15pm
URL: http://imagej.273.s1.nabble.com/saving-complete-content-of-results-window-tp3688518.html

Hi!

I created a macro in ImageJ to analyzed a sequence of pictures. Just calculating the mean of a selected area in every picture in a folder. The results are written in the "Results" window. After that I use the "Analyze" tool "Summarize" to get an average of all calculated values. The output also appears in the "results" window. But saving this window by using saveAs("Measurements", ""); didn't save the "Sammarize" calculations. Just the values before.

This is my macro:

dir = getDirectory("Choose a Directory ");
list = getFileList(dir);

run("Specify...");
getSelectionBounds(x, y, width, height);

setBatchMode(true);

for (i=0; i<list.length; i++) {
        path = dir+list[i];
        showProgress(i, list.length);
        open(path);
        measure = dir+list[i];
        makeOval(x, y, width, height);
        run("Measure");
        close();
}

        run("Summarize");

saveAs("Measurements", "");</i>

Is there any possibility to save the whole content of the "Results" window?