//choose a downsize scle and a directory #@ String (label=" ", value="Post-Acquisition Binning", visibility=MESSAGE, persist=false) heading #@ File(label="Select directory:", style="directory") dir #@ String(label="Select mode:", choices={"2x2", "4x4"}, style="radioButtonHorizontal") binning #@ String (label=" ", value="", visibility=MESSAGE, persist=false) logo #@ String (label=" ", value="Neuromolecular Biology Lab
ERI BIOTECMED, Universitat de València (Valencia, Spain)
", visibility=MESSAGE, persist=false) message //get file list and directory name list=getFileList(dir); dirName=File.getName(dir); //count tif files count=0; for (i=0; i