** EyesisDCT.java is free software: you can redistribute it and/or modify
** TileProcessor.java is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
** (at your option) any later version.
...
@@ -26,6 +22,10 @@ import java.util.Arrays;
...
@@ -26,6 +22,10 @@ import java.util.Arrays;
**
**
*/
*/
importjava.awt.Rectangle;
importjava.util.ArrayList;
importjava.util.Arrays;
publicclassTileProcessor{
publicclassTileProcessor{
publicArrayList<CLTPass3d>clt_3d_passes=null;
publicArrayList<CLTPass3d>clt_3d_passes=null;
publicinttilesX;
publicinttilesX;
...
@@ -492,7 +492,7 @@ public class TileProcessor {
...
@@ -492,7 +492,7 @@ public class TileProcessor {
prohibit);
prohibit);
// invert selection again (restore)
// invert selection again (restore)
for(inti=0;i<tiles.length;i++)tiles[i]=!tiles[i];
for(inti=0;i<tiles.length;i++)tiles[i]=!tiles[i];
// for (int i =0; i< tiles.length; i++) tiles[i] = !tiles[i] || orig_tiles[i]; // and or with original (why result does not have some of original - only with prohibit?
// for (int i =0; i< tiles.length; i++) tiles[i] = !tiles[i] || orig_tiles[i]; // and or with original (why result does not have some of original - only with prohibit?
if(prohibit!=null){// second pass w/o prohoibit, then end results
if(prohibit!=null){// second pass w/o prohoibit, then end results
growTiles(
growTiles(
depth,// grow tile selection by 1 over non-background tiles 1: 4 directions, 2 - 8 directions, 3 - 8 by 1, 4 by 1 more
depth,// grow tile selection by 1 over non-background tiles 1: 4 directions, 2 - 8 directions, 3 - 8 by 1, 4 by 1 more
...
@@ -591,7 +591,7 @@ public class TileProcessor {
...
@@ -591,7 +591,7 @@ public class TileProcessor {
weights_src,// or null
weights_src,// or null
grown_min,// minimal number of pixels
grown_min,// minimal number of pixels
min_weight);// minimal total weight of the cluster
min_weight);// minimal total weight of the cluster
/*** showDoubleFloatArrays sdfa_instance = new showDoubleFloatArrays(); // just for debugging?
/*** showDoubleFloatArrays sdfa_instance = new showDoubleFloatArrays(); // just for debugging?
String [] titles = {"orig","grown","combined"};
String [] titles = {"orig","grown","combined"};
double [][] dbg_img = new double [titles.length][tiles.length];
double [][] dbg_img = new double [titles.length][tiles.length];