//TODO: Add array of default disparity - use for combining images in force disparity mode (no correlation), when disparity is predicted from other tiles
//TODO: Add array of default disparity - use for combining images in force disparity mode (no correlation), when disparity is predicted from other tiles
System.out.println("Vignetting data for channel "+srcChannel+" has "+eyesisCorrections.channelVignettingCorrection[srcChannel].length+" pixels, image "+sourceFiles[nFile]+" has "+pixels.length);
//TODO: Add array of default disparity - use for combining images in force disparity mode (no correlation), when disparity is predicted from other tiles
// undecided, so 2 modes of combining alpha - same as rgb, or use center tile only
double[][][][]clt_corr_combo=newdouble[2][tilesY][tilesX][];// will only be used inside?
disparity,// clt_parameters.disparity, // final double disparity,
double_stacks,// final double [][][] imade_data, // first index - number of image in a quad
// correlation results - final and partial
clt_corr_combo,// [tilesY][tilesX][(2*transform_size-1)*(2*transform_size-1)] // if null - will not calculate
null,// clt_corr_partial, // [tilesY][tilesX][quad]color][(2*transform_size-1)*(2*transform_size-1)] // if null - will not calculate
null,// [tilesY][tilesX][pair]{dx,dy,weight}[(2*transform_size-1)*(2*transform_size-1)] // transpose unapplied. null - do not calculate
// Use it with disparity_maps[scan_step]? clt_mismatch, // [tilesY][tilesX][pair]{dx,dy,weight}[(2*transform_size-1)*(2*transform_size-1)] // transpose unapplied. null - do not calculate
// for the integer maximum provide contrast and variety
// for the integer maximum provide contrast and variety
intmax_index=icorr_max[1]*corr_size+icorr_max[0];
max_index=icorr_max[1]*corr_size+icorr_max[0];
disparity_map[6][tileY*tilesX+tileX]=tcorr_combo[0][max_index];// correlation combo value at the integer maximum
disparity_map[6][tileY*tilesX+tileX]=tcorr_combo[0][max_index];// correlation combo value at the integer maximum
// undo scaling caused by optional normalization
// undo scaling caused by optional normalization
disparity_map[7][tileY*tilesX+tileX]=(rms[1]*tcorr_combo[1][max_index])/(rms[0]*tcorr_combo[0][max_index]);// correlation combo value at the integer maximum
disparity_map[7][tileY*tilesX+tileX]=(rms[1]*tcorr_combo[1][max_index])/(rms[0]*tcorr_combo[0][max_index]);// correlation combo value at the integer maximum