// @Integer rmin // @Integer rmax // @Integer by // @String thrMethod // @Integer min // @Integer max // @BigDecimal(stepSize=0.001) fraction // @Integer toll // @ImagePlus img setBatchMode(true); 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