//choose a macro mode and a directory #@ String (label=" ", value="Illumination Correction
Retrospective multi-image
", visibility=MESSAGE, persist=false) heading #@ String(label="Select mode:", choices={"Generate correction function", "Correct images"}, style="radioButtonVertical") mode #@ File(label="Select a directory:", style="directory") dir #@ String (label=" ", value="", visibility=MESSAGE, persist=false) logo #@ String (label=" ", value="Neuromolecular Biology Lab
ERI BIOTECMED - Universitat de València (Spain)
", visibility=MESSAGE, persist=false) message //Identification of the TIF files //create an array containing the names of the files in the directory path list = getFileList(dir); Array.sort(list); tifFiles=0; //count the number of TIF files for (i=0; i