// "BatchProcessFolders" // // This macro batch processes all the files in a folder and any // subfolders in that folder. // It runs the 2d or 3d neuron counter (change it as the end) dir = getDirectory("Choose a Directory "); // dir = "/Volumes/LaCie/LaCie/Gcampf6/TEST/" setBatchMode(true); count = 0; countFiles(dir); n = 0; print(count + " files to process in the directory " + dir); processFiles(dir); print(count+" files processed"); //\\ Function to count the number of .tif files in the directory function countFiles(dir) { list = getFileList(dir); for (i=0; i