publicdouble[][]rig_disparity_strength=null;// Disparity and strength created by a two-camera rig, with disparity scale and distortions of the main camera
publicdouble[][]rig_disparity_strength=null;// Disparity and strength created by a two-camera rig, with disparity scale and distortions of the main camera
publicintclt_3d_passes_size=0;//clt_3d_passes size after initial processing
publicintclt_3d_passes_size=0;//clt_3d_passes size after initial processing
publicintclt_3d_passes_rig_size=0;//clt_3d_passes size after initial processing and rig processing
privateinttilesX;
privateinttilesX;
privateinttilesY;
privateinttilesY;
privatedoublecorr_magic_scale=0.85;// reported correlation offset vs. actual one (not yet understood)
privatedoublecorr_magic_scale=0.85;// reported correlation offset vs. actual one (not yet understood)
...
@@ -103,23 +104,51 @@ public class TileProcessor {
...
@@ -103,23 +104,51 @@ public class TileProcessor {
quadCLT_main.image_data,// final double [][][] image_data_main, // first index - number of image in a quad
quadCLT_aux.image_data,// final double [][][] image_data_aux, // first index - number of image in a quad
quadCLT_main.saturation_imp,// final boolean [][] saturation_main, // (near) saturated pixels or null
quadCLT_aux.saturation_imp,// final boolean [][] saturation_aux, // (near) saturated pixels or null
// correlation results - combo will be for the correation between two quad cameras
null,// final double [][][][] clt_corr_combo, // [type][tilesY][tilesX][(2*transform_size-1)*(2*transform_size-1)] // if null - will not calculate
null,// disparity_bimap, // final double [][] disparity_bimap, // [23][tilesY][tilesX]
null,// ml_data, // final double [][] ml_data, // data for ML - 10 layers - 4 center areas (3x3, 5x5,..) per camera-per direction, 1 - composite, and 1 with just 1 data (target disparity)
texture_tiles[0],// final double [][][][] texture_tiles_main, // [tilesY][tilesX]["RGBA".length()][]; null - will skip images combining
texture_tiles[1],// final double [][][][] texture_tiles_aux, // [tilesY][tilesX]["RGBA".length()][]; null - will skip images combining
quadCLT_main.tp.getTilesX()*clt_parameters.transform_size,// final int width,
quadCLT_main.getGeometryCorrection(),// final GeometryCorrection geometryCorrection_main,
quadCLT_aux.getGeometryCorrection(),// final GeometryCorrection geometryCorrection_aux,
quadCLT_main.getCLTKernels(),// final double [][][][][][] clt_kernels_main, // [channel_in_quad][color][tileY][tileX][band][pixel] , size should match image (have 1 tile around)
quadCLT_aux.getCLTKernels(),// final double [][][][][][] clt_kernels_aux, // [channel_in_quad][color][tileY][tileX][band][pixel] , size should match image (have 1 tile around)
clt_parameters.corr_magic_scale,// final double corr_magic_scale, // still not understood coefficient that reduces reported disparity value. Seems to be around 0.85
false,// true, // final boolean keep_clt_data,
threadsMax,// final int threadsMax, // maximal number of threads to launch