Hello,
After updating ImageJ, I have problems to run a macro, which
worked perfectly beforehand.
Now the macro works only for the first
image not for all the images that area saved in .lif format (as it
should work). Could anyone help me? Thank you in advance.
The macro
is:
path = getDirectory("SP8 Images");
path2 = getDirectory("Results
of Find Maxima");
listN3 = getFileList(path);
setBatchMode(true);
for
(i=0; i<listN3.length; i++) {
incomingN3 =
path+File.separator+listN3[i];
run("Bio-Formats Macro Extensions");
run("Bio-Formats Windowless Importer", "open=incomingN3");
title
= getTitle();
run("Z Project...", "projection=[Max Intensity]");
run("Split Channels");
selectWindow("C2-MAX_" +title);
run("Gamma...", "value=1.50");
run("Gamma...", "value=1.50");
run("Gaussian Blur...", "sigma=1");
run("Find Maxima...", "noise=500
output=Count");
outFile = path2 +File.separator+ title;
saveAs("Measurements", outFile +".csv");
run("Close");
}
print("
");
print("All done");
Monara
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html