Commit 9b725244 authored by Andrey Filippov's avatar Andrey Filippov

before removing old versions

parent 9b8a5082
This diff is collapsed.
This diff is collapsed.
...@@ -4969,7 +4969,7 @@ public class TilePlanes { ...@@ -4969,7 +4969,7 @@ public class TilePlanes {
} }
} }
if (((debugLevel > -1) && ((debugLevel > 0) || (max_attr_corr > attractionCorrMax)) )&& (num_planes > 1)){ if (((debugLevel > 0) && ((debugLevel > 1) || (max_attr_corr > attractionCorrMax)) )&& (num_planes > 1)){
String dbg_s = "refineDiscriminateTiles() plane attraction correlation for "+prefix+": maximal="+max_attr_corr; String dbg_s = "refineDiscriminateTiles() plane attraction correlation for "+prefix+": maximal="+max_attr_corr;
for (int np = 0; np < num_planes; np++) { for (int np = 0; np < num_planes; np++) {
for (int np1 = np + 1; np1 < num_planes; np1++) { for (int np1 = np + 1; np1 < num_planes; np1++) {
......
This diff is collapsed.
...@@ -416,7 +416,8 @@ public class TileSurface { ...@@ -416,7 +416,8 @@ public class TileSurface {
final int nStiles = stilesX * stilesY; final int nStiles = stilesX * stilesY;
final int nTiles = nStiles * superTileSize * superTileSize; final int nTiles = nStiles * superTileSize * superTileSize;
final double [][][][] fused_data = new double [nStiles][][][]; final double [][][][] fused_data = new double [nStiles][][][];
final Thread[] threads = ImageDtt.newThreadArray(threadsMax); // final Thread[] threads = ImageDtt.newThreadArray(threadsMax);
final Thread[] threads = ImageDtt.newThreadArray((debugLevel > 1)? 1 : threadsMax);
final AtomicInteger ai = new AtomicInteger(0); final AtomicInteger ai = new AtomicInteger(0);
final int dbg_tile = dbg_Y * stilesX + dbg_X; final int dbg_tile = dbg_Y * stilesX + dbg_X;
for (int ithread = 0; ithread < threads.length; ithread++) { for (int ithread = 0; ithread < threads.length; ithread++) {
...@@ -424,7 +425,8 @@ public class TileSurface { ...@@ -424,7 +425,8 @@ public class TileSurface {
public void run() { public void run() {
for (int nsTile = ai.getAndIncrement(); nsTile < nStiles; nsTile = ai.getAndIncrement()) { for (int nsTile = ai.getAndIncrement(); nsTile < nStiles; nsTile = ai.getAndIncrement()) {
if (planes[nsTile] != null) { if (planes[nsTile] != null) {
int dl = ((debugLevel > -1) && (nsTile == dbg_tile)) ? 3:0; // int dl = ((debugLevel > -1) && (nsTile == dbg_tile)) ? 3:0;
int dl = ((debugLevel > 1) && (nsTile == dbg_tile)) ? 3: debugLevel;
if (dl > 0){ if (dl > 0){
System.out.println("fuseSupertilePlanes(), nsTile = "+nsTile); System.out.println("fuseSupertilePlanes(), nsTile = "+nsTile);
} }
...@@ -495,7 +497,7 @@ public class TileSurface { ...@@ -495,7 +497,7 @@ public class TileSurface {
} }
} }
fused_data[nsTile] = disp_strength; fused_data[nsTile] = disp_strength;
if ((debugLevel > -1) && (dl>0)){ if ((debugLevel > -1) && (dl > 0)){
String[] titles = new String [3 * disp_strength.length]; String[] titles = new String [3 * disp_strength.length];
double [][] dbg_img = new double [titles.length][]; double [][] dbg_img = new double [titles.length][];
for (int i = 0; i < disp_strength.length; i++) { for (int i = 0; i < disp_strength.length; i++) {
......
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