我为 ImageJ 制作了这个脚本。当我运行代码时,出现此错误:“nashorn:mozilla_compat.js:67 ReferenceError:“setBatchMode”未定义”
有谁知道如何解决它?
function dapi (input, output, filename) {
open(input + filename);
setOption("BlackBackground", true);
run("Convert to Mask");
run("Watershed");
run("Analyze Particles...", "size=200-Infinity summarize");
}
input = "C:\Users\**\Dropbox (**)\My PC\Desktop\Screening Data\20210715\"
output = "C:\Users\**\Dropbox (**)\My PC\Desktop\Screening Data\20210715\Results"
setBatchMode(true);
list = getFileList(input) ;
for (i = 0; i < list.length; i++) {
dapi (input, output, list [i]) ;
}
setBatchMode(false);
saveAs("Results", "C:/Users/**/Dropbox (**)/My PC/Desktop/Screening Data/Summary.csv");
close()
任何帮助表示赞赏!