Commit efd35b70 authored by Andrey Filippov's avatar Andrey Filippov

more debug

parent e2086aa9
...@@ -1304,6 +1304,10 @@ public class EyesisAberrations { ...@@ -1304,6 +1304,10 @@ public class EyesisAberrations {
} }
if (iRetry==MaxRetries) { if (iRetry==MaxRetries) {
System.out.println("File "+files[imgNum][1]+ " has problems - finished at "+ IJ.d2s(0.000000001*(System.nanoTime()-startTime),3)); System.out.println("File "+files[imgNum][1]+ " has problems - finished at "+ IJ.d2s(0.000000001*(System.nanoTime()-startTime),3));
if (stopRequested.get()>0) {
if (debugLevel>0) System.out.println("User requested stop");
break;
}
continue; continue;
} }
......
...@@ -3469,7 +3469,8 @@ public class MatchSimulatedPattern { ...@@ -3469,7 +3469,8 @@ public class MatchSimulatedPattern {
" current="+iUVdir[0]+"/"+iUVdir[1]+" len="+iUVdir.length); " current="+iUVdir[0]+"/"+iUVdir[1]+" len="+iUVdir.length);
continue; continue;
} else if ((refCell[0]!=null) && (refCell[0].length>3)){ } else if ((refCell[0]!=null) && (refCell[0].length>3)){
System.out.println("**** refCell was deleted ****"); System.out.println("**** refCell was deleted **** u="+iUVRef[0]+" v="+iUVRef[1]+
" current="+iUVdir[0]+"/"+iUVdir[1]+" len="+iUVdir.length);
} }
//found reference cell, calculate x/y, make sure it is inside the selection w/o borders //found reference cell, calculate x/y, make sure it is inside the selection w/o borders
double [][] wv=new double [2][]; double [][] wv=new double [2][];
...@@ -5767,8 +5768,8 @@ public class MatchSimulatedPattern { ...@@ -5767,8 +5768,8 @@ public class MatchSimulatedPattern {
// restore initial distortionParameters.correlationMinInitialContrast // restore initial distortionParameters.correlationMinInitialContrast
distortionParameters.correlationMinInitialContrast=savedCorrelationMinInitialContrast; distortionParameters.correlationMinInitialContrast=savedCorrelationMinInitialContrast;
if (!foundGoodCluster){ if (!foundGoodCluster){
System.out.println("calculateDistortions(): Pattern too small"); System.out.println("calculateDistortions(): Pattern too small, initial cluster had "+patternCells+" cells");
if (global_debug_level>2) IJ.showMessage("Error","Pattern too small"); if (global_debug_level>2) IJ.showMessage("Error","Pattern too small: "+patternCells);
return distortionParameters.errPatternNotFound; return distortionParameters.errPatternNotFound;
} }
if (!patternOK()) { if (!patternOK()) {
......
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