//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
// 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,
...
...
@@ -1338,15 +1393,15 @@ public class ImageDtt {
disparity_map[3][tileY*tilesX+tileX]=Double.NaN;
}
// Calculate polynomial interpolated maximum coordinates
// Calculate polynomial interpolated maximum coordinates
double[]corr_max_XY=getMaxXYPoly(// get interpolated maximum coordinates using 2-nd degree polynomial
pa,
tcorr_combo[0],// [data_size * data_size]
corr_size,
icorr_max,// integer center coordinates (relative to top left)