// @Integer rmin // @Integer rmax // @Integer by // @String thrMethod // @Integer min // @Integer max // @BigDecimal(stepSize=0.0001) fraction // @Integer toll // @File imgPath // @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"); open(imgPath); width=getWidth(); height=getHeight(); nslice=nSlices(); titleOriginal=getTitle(); if (max <=0){ max=width*height*nslice; } 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