Commit 64f2b934 authored by Andrey Filippov's avatar Andrey Filippov

allowing to proceed with bad PSF

parent d4ce4ae9
......@@ -10683,7 +10683,9 @@ if (MORE_BUTTONS) {
}
*/
double [] x2y2xy= matchSimulatedPattern.x2y2xySizes(
double [] x2y2xy=null;
try{
x2y2xy= matchSimulatedPattern.x2y2xySizes(
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
......@@ -10692,6 +10694,9 @@ if (MORE_BUTTONS) {
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 PSF size for i="+i+", j="+j);
}
if (x2y2xy==null){
x2y2xy=new double[3];
for (int ii=0;ii<3;ii++) x2y2xy[ii]=Double.NaN;
......
......@@ -5432,7 +5432,8 @@ java.lang.ArrayIndexOutOfBoundsException: -3566
}
if (maxValue<=0.0){
String msg="psf array does not contain any positive values";
IJ.showMessage("Error",msg);
// IJ.showMessage("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