Commit 07ab125e authored by Andrey Filippov's avatar Andrey Filippov

more on bypassing missing kernels

parent d457b908
......@@ -10710,17 +10710,21 @@ if (MORE_BUTTONS) {
*/
// tanRad[0]/=(focusMeasurementParameters.subdiv/2); // to sesnor pixels
// tanRad[1]/=(focusMeasurementParameters.subdiv/2);
double [][]quadCoeff=matchSimulatedPattern.approximatePSFQuadratic(
psf[i][j][color], // PSF function, square array, nominally positive
focusMeasurementParameters.psf_cutoffEnergy, // fraction of energy in the pixels to be used
focusMeasurementParameters.psf_cutoffLevel, // minimal level as a fraction of maximal
focusMeasurementParameters.psf_minArea, // minimal selected area in pixels
focusMeasurementParameters.psf_blurSigma, // optionally blur the selection
0.1, //maskCutOff,
debugLevel-2, // debug level
i+":"+j+"["+color+"]"); // String title) { // prefix used for debug images
double [][]quadCoeff=null;
try {
quadCoeff=matchSimulatedPattern.approximatePSFQuadratic(
psf[i][j][color], // PSF function, square array, nominally positive
focusMeasurementParameters.psf_cutoffEnergy, // fraction of energy in the pixels to be used
focusMeasurementParameters.psf_cutoffLevel, // minimal level as a fraction of maximal
focusMeasurementParameters.psf_minArea, // minimal selected area in pixels
focusMeasurementParameters.psf_blurSigma, // optionally blur the selection
0.1, //maskCutOff,
debugLevel-2, // debug level
i+":"+j+"["+color+"]"); // String title) { // prefix used for debug images
} catch (Exception e) {
System.out.println("Failed to get approximatePSFQuadratic(...) for i="+i+", j="+j);
continue;
}
/*
* f(x,y)=A*x^2+B*y^2+C*x*y+D*x+E*y+F
*
......
......@@ -5433,7 +5433,7 @@ java.lang.ArrayIndexOutOfBoundsException: -3566
if (maxValue<=0.0){
String msg="psf array does not contain any positive values";
// IJ.showMessage("Error",msg);
System.out.println("Error"+msg);
System.out.println("Error "+msg);
throw new IllegalArgumentException (msg);
}
ix=Index % size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment