Macro Problem with ZVI-Files
Posted by kagebunshin on Sep 07, 2015; 12:12pm
URL: http://imagej.273.s1.nabble.com/Macro-Problem-with-ZVI-Files-tp5014253.html
Hello There - I am really not firm with coding and such, so I recorded a macro in ImageJ that let's me analyse the area fraction. It looks as follows:
open();
close();
close();
setAutoThreshold("Otsu");
//run("Threshold...");
setAutoThreshold("Otsu dark");
run("Analyze Particles...", "size=0-Infinity circularity=0.00-1.00 show=Nothing display summarize");
close();
run("Clear Results");
You're maybe wondering, why there are 2 close-functions - the .ZVI image is obtained from a microscope (Zeiss) and has 3 channels. It closes the first 2 channels ans runs the analysis on the last one, cloeses the image. It's fine, opening one image after another but there are hundrets of pictures to be analysed. I read through some stuff with GetFileList and such but it won't work because it will prompt, that the file-type is not supported or anything. Any sugestions or help with that?
Let's assume the path is "c:\myimagepath" so that even I can follow ;)
Thanks in advance!!