//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;
...
...
@@ -4849,7 +4858,7 @@ public class EyesisDCT {
// undecided, so 2 modes of combining alpha - same as rgb, or use center tile only
// for the integer maximum provide contrast and variety
intmax_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
// 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
// Calculate "center of mass" coordinates
double[]corr_max_XYm=getMaxXYCm(// get fractiona center as a "center of mass" inside circle/square from the integer max
tcorr_combo[0],// [data_size * data_size]
corr_size,
icorr_max,// integer center coordinates (relative to top left)
max_corr_radius,// positive - within that distance, negative - within 2*(-radius)+1 square
// for the integer maximum provide contrast and variety
intmax_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
// 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
// Calculate "center of mass" coordinates
double[]corr_max_XYm=getMaxXYCm(// get fractiona center as a "center of mass" inside circle/square from the integer max
tcorr_combo[0],// [data_size * data_size]
corr_size,
icorr_max,// integer center coordinates (relative to top left)
max_corr_radius,// positive - within that distance, negative - within 2*(-radius)+1 square