The new Table.* macro functions work great;
however there is a small issue I would like to see fixed:
When doing changes to the table, Table.update must currently be called explicitly
before the macro is finished or else the table will stay incomplete.
It would be convenient if Table.update happened automatically upon macro termination,
like the similar functions Plot.update(), updateDisplay(), and updateResults()
Example macro to reproduce the issue:
macro "Test One" {
run("Set Measurements...", "area mean standard display redirect=None decimal=4");
close("Results");
run("Blobs (25K)");
run("Measure");
Table.set("NewResult",0,123);
//the NewResult column is missing after macro exit
}
macro "Test Two" {
run("Set Measurements...", "area mean standard display redirect=None decimal=4");
close("Results");
run("Blobs (25K)");
run("Measure");
setResult("NewResult",0,123);
//the NewResult column is present after macro exit
}
macro "Test Three" {
run("Set Measurements...", "area mean standard display redirect=None decimal=4");
close("Results");
run("Blobs (25K)");
run("Measure");
Table.set("NewResult",0,123);
Table.update;
//the NewResult column is present after macro exit
}
I am using daily build ImageJ 1.52f on Windows 7 64-bit.
Stein
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html