Posted by
rmakanza on
Oct 06, 2015; 1:46pm
URL: http://imagej.273.s1.nabble.com/Modify-or-create-results-table-tp5011481p5014558.html
I have more or less the same problem. I am trying to modify the custom results table:
http://rsb.info.nih.gov/ij/macros/CustomTabStatFromResults.txt so that I can create a customized results table with variables from a series of automated steps with individual results tables each. the problem I am having is that, only variables for the first table are included in the final customResultsTable. Here is an example of the first two steps:
dir1 = getDirectory("Choose Source Directory ");
dir2 = getDirectory("Choose Destination Directory ");
list = getFileList(dir1);
setBatchMode(true);
for (i=0; i<list.length; i++) { showProgress(i+1, list.length);
open(dir1+list[i]);
run("Min...", "value=140");
run("8-bit");
run("Auto Local Threshold", "method=Median radius=15 parameter_1=0 parameter_2=0 white");
setOption("BlackBackground", false);
run("Set Scale...", "distance=1617 known=21.8 pixel=1 unit=cm");
run("Set Measurements...", "area perimeter shape feret's display redirect=None decimal=2");
run("Analyze Particles...", "size=0.05-Infinity circularity=0.2-1.00 show=[Overlay Outlines] display include summary record in_situ");
makeStatFromResults ();
if (i==0) TabWindow (0); else TabWindow (1);
selectWindow("Results");
run("Close");
run("Gaussian Blur...", "sigma=50");
run("Make Binary");
run("Analyze Particles...", "size=0.05-Infinity circularity=0.20-1.00 show=[Overlay Outlines] display include in_situ");
makeStatFromResults ();
if (i==0) TabWindow (0); else TabWindow (1);
selectWindow("Results");
run("Close");