Commit f68abd2e authored by Andrey Filippov's avatar Andrey Filippov

debugging missing grids

parent 7d08fe37
...@@ -3343,16 +3343,16 @@ public class MatchSimulatedPattern { ...@@ -3343,16 +3343,16 @@ public class MatchSimulatedPattern {
int numDefinedCells=0; int numDefinedCells=0;
int debug_left=nodeQueue.size(); int debug_left=nodeQueue.size();
for (GridNode gn:nodeQueue){ // trying candidates as grid seeds - until found or nothing left for (GridNode gn:nodeQueue){ // trying candidates as grid seeds - until found or nothing left
debug_left--;
if (global_debug_level>1) { if (global_debug_level>1) {
System.out.println("distortions: nodeQueue has "+(debug_left--)+" candidates left (including this one)"); System.out.println("distortions: nodeQueue has "+(debug_left)+" candidates left (excluding this one)");
} }
if (!updating){ if (!updating){
double [][] node=gn.getNode(); double [][] node=gn.getNode();
double [] centerXY=node[0]; double [] centerXY=node[0];
if (global_debug_level>0) { if (global_debug_level>0) {
// System.out.println("distortions: node X/Y are "+centerXY[0]+"/"+centerXY[1]); // System.out.println("distortions: node X/Y are "+centerXY[0]+"/"+centerXY[1]);
System.out.println("distortions: nodeQueue has "+(debug_left--)+" candidates left (including this one) :node X/Y are "+centerXY[0]+"/"+centerXY[1]); System.out.println("distortions: nodeQueue has "+(debug_left)+" candidates left (excluding this one) :node X/Y are "+centerXY[0]+"/"+centerXY[1]);
} }
// if (debugLevel>1) { // if (debugLevel>1) {
...@@ -4022,7 +4022,12 @@ public class MatchSimulatedPattern { ...@@ -4022,7 +4022,12 @@ public class MatchSimulatedPattern {
final boolean updateStatus, final boolean updateStatus,
final int debugLevel final int debugLevel
){ ){
if (debugLevel>0) {
int debugNumLeft=0;
for (boolean b:triedIndices) if (!b) debugNumLeft++;
System.out.println("findPatternCandidates(), startScanIndex= "+startScanIndex+",triedIndices.length="+triedIndices.length+" debugNumLeft="+debugNumLeft);
}
final Thread[] threads = newThreadArray(threadsMax); final Thread[] threads = newThreadArray(threadsMax);
final AtomicInteger seqNumber = new AtomicInteger(startScanIndex); final AtomicInteger seqNumber = new AtomicInteger(startScanIndex);
// final AtomicBoolean nodeSet=new AtomicBoolean(false); // final AtomicBoolean nodeSet=new AtomicBoolean(false);
......
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