Hi All,
I have a question regarding writing macro.
In the main folder, I have many subfolders containing JPG images.
I wish to make an analysis of all the images in the main directory in subfolders.
But I do not know how.
My current macro looks like this:
run("8-bit");
run("Remove Outliers...", "radius=0.2 threshold=50 which=Bright");
setAutoThreshold("Default");
//run("Threshold...");
setAutoThreshold("Default dark");
setThreshold(101, 150);
setOption("BlackBackground", false);
run("Convert to Mask");
run("Analyze Particles...", "size=1-15 pixel show=Outlines display exclude clear include summarize in_situ");
dir = getDirectory("image");
name = getTitle;
index = lastIndexOf(name, ".");
if (index!=-1) name = substring(name, 0, index);
name = name + ".xls";
saveAs("Results", dir+name);
print(dir+name);
saveAs("Tiff", dir+name);
I found this link:
http://imagej.1557.x6.nabble.com/Open-an-ImageSequence-in-a-Macro-File-td3682793.htmlI would like to connect commands contained therein relating to subfolders and my simple Macros.
I'm still trying, but to no avail.
Any help is greatly appreciated - thanks in advance!
Grzegorz