|
Hey all,
I've successfully written a macro to count cells of images in a batch-wise manner, however I hope to adjust it so that I am able to save the outlines of the each counted image before my macro closes them and moves onto the next image in my folder. Any suggestions are welcome as I have been stuck on this for a few days now.
Thanks in advance,
KernalBurn
dir = getDirectory("Choose a Directory ");
list = getFileList(dir);
setBatchMode(true);
for (i=0; i<list.length; i++) {
showProgress(i, list.length);
open(dir+list[i]);
run("Clear Outside");
run("8-bit");
run("Subtract Background...", "rolling=50 light");
//run("Threshold...");
setAutoThreshold("MaxEntropy");
setOption("BlackBackground", false);
run("Make Binary");
run("Watershed");
run("Analyze Particles...", "size=200-Infinity circularity=0.00-1.00 show=Outlines clear summarize");
close();
}
|