Hi,
using in a macro "Measure" with Display Label switched on, I get a result entry, e.g.
6 /Users/karo/Desktop/Bilder_neu1/Gleiche4.tif 511116 41.595 1228800 47 0
However, if I open additionally a roi file with the same name plus extension .roi, I get an entry
5 /Users/karo/Desktop/Bilder_neu1/Gleiche3.tif:Gleiche3.tif 382989 33.466 1144402 33 9
with colon separated base name of the image file duplicated.
Any explanation for that behavior?
here is the piece of macro I use
…
if (endsWith(list[i], ".tif")) {
path = dir+list[i];
showProgress(i, list.length);
open(path);
run("Make Composite");
run("Stack to Images");
selectWindow("Red");
close();
selectWindow("Green");
close();
if (!b_mode) setBatchMode(b_mode);
selectWindow("Blue");
rename(path);
// getDimensions(wid,hei,cha,sli,fra);
setAutoThreshold(th_method);
if (File.exists(path+".roi")) open(path+".roi");
else run("Select All");
if (!is("Batch Mode")) {
waitForUser("Correct Measure field\nand evtl. Threshold");
setBatchMode(true);
}
sT=selectionType();
getThreshold(lo,up);
getStatistics(TArea);
if (sT>0) saveAs("Selection", path+".roi");
run("Measure");
setResult("TArea",nResults-1,TArea);
setResult("Threshold",nResults-1,lo);
setResult("Selection",nResults-1,sT);
close();
}
…
Regards
Karsten
[hidden email]
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html