【发布时间】:2015-09-02 03:22:06
【问题描述】:
我是 imageJ 及其宏的新手,我无法从粒子分析中循环保存结果文件。
这是我的代码,由我刚刚在互联网上学到的东西组成,我只是不能在 saveAs 函数中包含 [i],而且图像的保存不匹配,而我什至还没有尝试保存它...
path1=getDirectory("Mydir");
list=getFileList(path1);
path2=getDirectory("My output dir");
setBatchMode(true);
for(i=0;i<list.length;i++){
open(path1+list[i]);
run("8-bit");
run("Analyze Particles...", "size=0-Infinity circularity=0.00-1.00 show=[Bare Outlines] display clear");
selectWindow("Results");
saveAs("Results", path2+"Results.xls");
close();
}
setBatchMode(false);
run("Close");
【问题讨论】: