gd.addNumericField("Correlation minimal contrast for initial search (absolute)",distortionParameters.correlationMinInitialContrast,3);
gd.addNumericField("Decrease contrast of cells that are too close to the border to be processed in rifinement pass",distortionParameters.scaleFirstPassContrast,3);
gd.addNumericField("Gaussian sigma to select correlation centers (fraction of UV period), 0.1",distortionParameters.contrastSelectSigma,3);
gd.addNumericField("Gaussian sigma to average correlation variations (as contrast reference), 0.5",distortionParameters.contrastAverageSigma,3);
gd.addNumericField("Scale minimal contrast if the initial cluster is nonzero but smaller",distortionParameters.correlationMinAbsoluteInitialContrast,3);
gd.addNumericField("Overlap of FFT areas when searching for pattern",distortionParameters.searchOverlap,3);
if((debug_level>0)&&(thisCorrelationSize>distortionParameters.correlationSize))System.out.println("**** u/v span too small, increasing FFT size to "+thisCorrelationSize);
RectanglecenterCross=correlationSelection(
beforeXY,// initial coordinates of the pattern cross point
if((debug_level>0)&&(thisCorrelationSize>distortionParameters.correlationSize))System.out.println("**** u/v span too small, increasing FFT size to "+thisCorrelationSize);
RectanglecenterCross=correlationSelection(
beforeXY,// initial coordinates of the pattern cross point
if(fast)centerXY=correlationMaximum(// maybe twice actual size if
modelCorr,
distortionParameters.correlationMaxOffset,
(debug_level>2)&&(numNeib==0));// low-pass filtering should already be done
elsecenterXY=correlationMaximum(modelCorr,
distortionParameters.correlationRadius,
distortionParameters.correlationThreshold,//double threshold, // fraction of maximum (slightly less than 1.0) to limit the top part of the maximum for centroid
if(fast)centerXY=correlationMaximum(// maybe twice actual size if
modelCorr,
distortionParameters.correlationMaxOffset,
(debug_level>2)&&(numNeib==0));// low-pass filtering should already be done
elsecenterXY=correlationMaximum(modelCorr,
distortionParameters.correlationRadius,
distortionParameters.correlationThreshold,//double threshold, // fraction of maximum (slightly less than 1.0) to limit the top part of the maximum for centroid