これで動くような気がするけど、違うのかな?
d = getDirectory("Choose a Directory");
r = getDirectory("Choose a Directory");
savefile1 = "tesu.csv"
files1 = getFileList(d);
files2 = getFileList(r);
for (i = 0; i < files2.length; i++){
open(d + files1[i]);
run("RGB to CIELAB");
run("Stack to Images");
open(r + files2[i]);
roiManager("Open", r + files2[i]);
selectWindow("L");
roiManager("Measure");
selectWindow("a");
roiManager("Measure");
selectWindow("b");
roiManager("Measure");
saveAs("Results", savefile1);
} |
|