finaldouble[][][]image_data_main,// first index - number of image in a quad
finaldouble[][][]image_data_aux,// first index - number of image in a quad
finalboolean[][]saturation_main,// (near) saturated pixels or null
finalboolean[][]saturation_aux,// (near) saturated pixels or null
// correlation results - combo will be for the correlation between two quad cameras
finaldouble[][][][]clt_corr_combo,// [type][tilesY][tilesX][(2*transform_size-1)*(2*transform_size-1)] // if null - will not calculate
// [type][tilesY][tilesX] should be set by caller
// types: 0 - selected correlation (product+offset), 1 - sum
finaldouble[][]disparity_bimap,// [23][tilesY][tilesX], only [6][] is needed on input or null - do not calculate
// last 2 - contrast, avg/ "geometric average)
finaldouble[][]ml_data,// data for ML - 18 layers - 4 center areas (3x3, 5x5,..) per camera-per direction, 1 - composite, and 1 with just 1 data (target disparity)
finaldouble[][][][]texture_tiles_main,// [tilesY][tilesX]["RGBA".length()][]; null - will skip images combining
finaldouble[][][][]texture_tiles_aux,// [tilesY][tilesX]["RGBA".length()][]; null - will skip images combining
finalintwidth,// may be not multiple of 8, same for the height
finalGeometryCorrectiongeometryCorrection_main,
finalGeometryCorrectiongeometryCorrection_aux,
finaldouble[][][][][][]clt_kernels_main,// [channel_in_quad][color][tileY][tileX][band][pixel] , size should match image (have 1 tile around)
finaldouble[][][][][][]clt_kernels_aux,// [channel_in_quad][color][tileY][tileX][band][pixel] , size should match image (have 1 tile around)
finaldoublecorr_magic_scale,// still not understood coefficient that reduces reported disparity value. Seems to be around 0.85
finalbooleankeep_clt_data,
// final int [][] woi_tops,
finaldouble[][][]ers_delay,// if not null - fill with tile center acquisition delay
finalintthreadsMax,// maximal number of threads to launch
finalintdebugLevel,
finaldouble[][][]port_xy_main_dbg,// for each tile/port save x,y pixel coordinates (gpu code development)
finaldouble[][][]port_xy_aux_dbg)// for each tile/port save x,y pixel coordinates (gpu code development)
finaldouble[][]lt_corr=(lt_rad>0)?(newdouble[nTilesInChn][]):null;// will keep inter-camera combo correlation, later combined in a separate multi-thread run
finalThread[]threads=newThreadArray(threadsMax);
finalAtomicIntegerai=newAtomicInteger(0);
finaldouble[]col_weights=newdouble[numcol];// colors are RBG
col_weights[2]=1.0/(1.0+clt_parameters.corr_red+clt_parameters.corr_blue);// green color