// Author's Note: The outline of this script was downloaded by following these instructions: // Open the script editor in ImageJ/Fiji, select Templates ▶ ImageJ 1.x ▶ Batch ▶ Process Folder (IJ1 Macro). // // @File(label = "Input directory", style = "directory") input // @File(label = "Output directory", style = "directory") output // @String(label = "File suffix", value = ".tif") suffix /* * Macro template to process multiple images in a folder */ // See also Process_Folder.py for a version of this code // in the Python scripting language. dir = getDirectory("Choose a Directory "); setBatchMode(true); count = 0; countFiles(dir); n = 0; processFiles(dir); //print(count+" files processed"); function countFiles(dir) { list = getFileList(dir); for (i=0; i