I am trying to set up a macro in imagej but I am unfamiliar with the language
This is my script :
String directory = "dts/";
String[] list = getFileList(directory);
ArrayList<String> meanValuesList = new ArrayList<String>();
for (int i = 0; i < list.length; i++) {
open(directory + list[i]);
run("Find Maxima...", "noise=0 output=[Point Selection]");
run("Measure");
meanValue = getResult("Mean", 0);
meanValuesList.add(list[i] + ": " + meanValue);
close();
}
for (j = 0; j < meanValuesList.size(); j++) {
print(meanValuesList.get(j));
}
This is the error : ‘.’ expected in line 1:
Thank you for your help
I need my script to work, so I need to solve the problem
New contributor
Awen LeGraet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.