Hi Avital,
instead of writing results to the ResultsTable, you can use getStatistics
and add them to a string and save the string. E.g. something like this:
results = "image\tArea\tMean\tMin\n";
for (...) {
...
getStatistics(area, mean, min, max);
results = results + getTitle()+"\t"+area+"\t"+mean+"\t"+min+"\n";
}
File.saveString(results, path)
This is restricted to measurements that you can get with getStatistics or
getRawStatistics, however.
--
Window/Level adjustment - do you refer to the Brightness&Contrast window?
There is no need for it in a macro. Maybe you have an unnecessary
run("Brightness/Contrast...");
command in the macro?
Michael
_______________________________________________________________
On Sat, May 23, 2015 11:57, Avital Steinberg wrote:
> Hi,
> I am writing a macro that works in batch mode. Therefore, the images are
> not displayed. However, the results table is displayed and updated every
> time a measurement is done.
>
> I do not need to display the results table at all. I use some of the
> results to perform some calculations, and I am saving the results that I
> need in a file.
>
> How can I avoid displaying the results? (it updates the results table
> every
> time a row is added) I haven't found a way to do that. I know how to do
> things like this in Java, but not in a macro.
>
> Also, I have a Window/Level adjustment window that I would like to close.
> How can I close it or hide it? ( run("close") would work if I knew how to
> select this window)
>
> Thank you,
> Avital
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html