// @Integer rmin // @Integer rmax // @Integer by // @String thrMethod // @Integer min // @Integer max // @BigDecimal(stepSize=0.0001) fraction // @Integer toll // @File(label="Select the input directory", style="directory") imagesDir // @File(label="Select an output directory for the points", style="directory") outFolderP // @File(label="Select an output directory for the objects", style="directory") outFolderO setBatchMode(true); run("Input/Output...", "file=.csv"); list = getFileList(imagesDir); factor=3/sqrt(2); rmin=factor*rmin-0.5; rmax=factor*rmax-0.5; by=floor(factor*by-0.5); if (by<=0) by=1; if (rmin<1) rmin = 1; if (rmax