// temporary setting up tile task file (one integer per tile, bitmask
// for testing defined for a window, later the tiles to process will be calculated based on previous passes results
int[][]tile_op=newint[tilesY][tilesX];// all zero
inttxl=clt_parameters.tile_task_wl;
inttxr=txl+clt_parameters.tile_task_wl;
inttyt=clt_parameters.tile_task_wl;
inttyb=tyt+clt_parameters.tile_task_wh;
if(txl<0)txl=0;
elseif(txl>=tilesX)txl=tilesX-1;
if(txr<=txl)txr=txl+1;
elseif(txr>tilesX)txr=tilesX;
if(tyt<0)tyt=0;
elseif(tyt>=tilesY)tyt=tilesY-1;
if(tyb<=tyt)tyb=tyt+1;
elseif(tyb>tilesY)tyb=tilesY;
for(inti=tyt;i<tyb;i++){
for(intj=txl;j<txr;j++){
tile_op[i][j]=clt_parameters.tile_task_op;
}
}
//TODO: Add array of default disparity - use for combining images in force disparity mode (no correlation), when disparity is predicted from other tiles
double[][][][]clt_corr_combo=null;
double[][][][][]clt_corr_partial=null;
double[][][][]texture_tiles=null;// [tilesY][tilesX]["RGBA".length()][]; // tiles will be 16x16, 2 visualizaion mode full 16 or overlapped
// undecided, so 2 modes of combining alpha - same as rgb, or use center tile only