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

more on bypassing missing kernels

parent d457b908
...@@ -10710,17 +10710,21 @@ if (MORE_BUTTONS) { ...@@ -10710,17 +10710,21 @@ if (MORE_BUTTONS) {
*/ */
// tanRad[0]/=(focusMeasurementParameters.subdiv/2); // to sesnor pixels // tanRad[0]/=(focusMeasurementParameters.subdiv/2); // to sesnor pixels
// tanRad[1]/=(focusMeasurementParameters.subdiv/2); // tanRad[1]/=(focusMeasurementParameters.subdiv/2);
double [][]quadCoeff=null;
try {
double [][]quadCoeff=matchSimulatedPattern.approximatePSFQuadratic( quadCoeff=matchSimulatedPattern.approximatePSFQuadratic(
psf[i][j][color], // PSF function, square array, nominally positive psf[i][j][color], // PSF function, square array, nominally positive
focusMeasurementParameters.psf_cutoffEnergy, // fraction of energy in the pixels to be used focusMeasurementParameters.psf_cutoffEnergy, // fraction of energy in the pixels to be used
focusMeasurementParameters.psf_cutoffLevel, // minimal level as a fraction of maximal focusMeasurementParameters.psf_cutoffLevel, // minimal level as a fraction of maximal
focusMeasurementParameters.psf_minArea, // minimal selected area in pixels focusMeasurementParameters.psf_minArea, // minimal selected area in pixels
focusMeasurementParameters.psf_blurSigma, // optionally blur the selection focusMeasurementParameters.psf_blurSigma, // optionally blur the selection
0.1, //maskCutOff, 0.1, //maskCutOff,
debugLevel-2, // debug level debugLevel-2, // debug level
i+":"+j+"["+color+"]"); // String title) { // prefix used for debug images 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 * 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 ...@@ -5433,7 +5433,7 @@ java.lang.ArrayIndexOutOfBoundsException: -3566
if (maxValue<=0.0){ if (maxValue<=0.0){
String msg="psf array does not contain any positive values"; String msg="psf array does not contain any positive values";
// IJ.showMessage("Error",msg); // IJ.showMessage("Error",msg);
System.out.println("Error"+msg); System.out.println("Error "+msg);
throw new IllegalArgumentException (msg); throw new IllegalArgumentException (msg);
} }
ix=Index % size; 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