disparity_index,// index of disparity value in disparity_map == 2 (0,2 or 4)
clt_parameters.show_bgnd_nonbgnd,
(clt_parameters.debug_filters?(debugLevel):-1));
boolean[]bgnd_tiles_new=tp.getBackgroundMask_new(// which tiles do belong to the background
clt_parameters.bgnd_range,// disparity range to be considered background
clt_parameters.bgnd_sure,// minimal strength to be considered definitely background
clt_parameters.bgnd_maybe,// maximal strength to ignore as non-background
clt_parameters.sure_smth,// if 2-nd worst image difference (noise-normalized) exceeds this - do not propagate bgnd
clt_parameters.min_clstr_seed,// number of tiles in a cluster to seed (just background?)
clt_parameters.min_clstr_block,// number of tiles in a cluster to block (just non-background?)
disparity_index,// index of disparity value in disparity_map == 2 (0,2 or 4)
clt_parameters.show_bgnd_nonbgnd,
(clt_parameters.debug_filters?(debugLevel):-1));
boolean[]bgnd_dbg=bgnd_tiles.clone();// only these have non 0 alpha
// TODO: fix mess - after modifying getBackgroundMask() to getBackgroundMask_new (before road with tractor was identified as a background because of a double
// tile glitch, the background was wrong. So temporarily both old/new are used and combined (new is grown twice)
// still does not work - using old variant for now
// background selections (slightly) influences the plane mertging / connections
for(inti=0;i<bgnd_tiles.length;i++){
// bgnd_tiles[i] &= bgnd_tiles_new[i];
}
boolean[]bgnd_strict=bgnd_tiles.clone();// only these have non 0 alpha
tp.growTiles(
clt_parameters.bgnd_grow,// grow tile selection by 1 over non-background tiles 1: 4 directions, 2 - 8 directions, 3 - 8 by 1, 4 by 1 more
...
...
@@ -5537,36 +5562,62 @@ public class QuadCLT {
2,// grow tile selection by 1 over non-background tiles 1: 4 directions, 2 - 8 directions, 3 - 8 by 1, 4 by 1 more
bgnd_tiles,
null);// prohibit
// hacking - grow bgnd texture even more, without changing selection
boolean[]bgnd_tiles_grown2=bgnd_tiles_grown.clone();// only these have non 0 alpha
bgnd_data.selected=bgnd_tiles_grown;// selected for background w/o extra transparent layer
tp.growTiles(
2,// grow tile selection by 1 over non-background tiles 1: 4 directions, 2 - 8 directions, 3 - 8 by 1, 4 by 1 more