@@ -202,11 +202,194 @@ public class TileProcessor {
...
@@ -202,11 +202,194 @@ public class TileProcessor {
}
}
}
}
returnbgnd_tiles;
}
publicintextendIndex(intindx){
inttileY=indx/tilesX;
inttileX=indx%tilesX;
return(tilesX+2)*(tileY+1)+(tileX+1);
returnbgnd_tiles;
}
}
/**
* Create tasks for individual clusters (with flaps). Border_fixed will have alpha = 0 and provided disparity, border float - adjusted disparity from neighbors
* No ordering here, just filtering
* @param maxClusters
* @param minClusterArea
* @param disparity
* @param strength
* @param minStrength
* @param overlap_clusters
* @param minDisparity
* @param maxDisparity
* @param debugLevel
* @return
*/
publicintcreateTileOverlapTasks(
intmaxClusters,
intminClusterArea,
double[]disparity_in,
double[]strength_in,
doublemaxChange,// adjust border disparity until change is below this.
System.out.println("createTileOverlapTasks(): Added cluster "+ncl+", internal area = "+(overlap_clusters[ncl][0].length)+", max strength=clusterMaxStrength"+