// corr_wndy, // double [] window_y, // (half) window function in y-direction(perpendicular to disparity: for row0 ==1
// corr_wndx, // double [] window_x, // half of a window function in x (disparity) direction
(tile_lma_debug_level>0));// boolean debug);
}
// proceed only if CM correlation result is non-null // for compatibility with old code we need it to run regardless of the strength of the normal correlation
if(disparity_map!=null){
if(corr_stat[cTile]!=null){
disparity_map[DISPARITY_INDEX_CM][tIndex]=-corr_stat[cTile][0];// disp_str[cTile][0]; // disparity is negative X
disparity_map[DISPARITY_INDEX_INT+1][tIndex]=-corr_stat[cTile][0]/.85+disparity_array[tileY][tileX]+disparity_corr;// disp_str[cTile][0]; // disparity is negative X
corr_wnd,// double [][] corr_wnd, // correlation window to save on re-calculation of the window
corr_wnd_inv_limited,// corr_wnd_limited, // correlation window, limited not to be smaller than threshold - used for finding max/convex areas (or null)
corrs[cTile],// double [][] corrs,
disp_dist[cTile],
rXY,// double [][] rXY, // non-distorted X,Y offset per nominal pixel of disparity
corr2d.longToArray(imgdtt_params.dbg_pair_mask),// imgdtt_params.dbg_pair_mask, // int pair_mask, // which pairs to process
null,// disp_str[cTile], //corr_stat[0], // double xcenter, // preliminary center x in pixels for largest baseline
poly_disp,// double[] poly_ds, // null or pair of disparity/strength
imgdtt_params.ortho_vasw_pwr,// double vasw_pwr, // value as weight to this power,
tdl,// tile_lma_debug_level, //+2, // int debug_level,
corr_wnd,// double [][] corr_wnd, // correlation window to save on re-calculation of the window
corr_wnd_inv_limited,// corr_wnd_inv_limited, // correlation window, limited not to be smaller than threshold - used for finding max/convex areas (or null)
corrs,// [tIndex], // double [][] corrs,
disp_dist,// [tIndex],
rXY,// double [][] rXY, // non-distorted X,Y offset per nominal pixel of disparity
corr2d.longToArray(imgdtt_params.dbg_pair_mask),// imgdtt_params.dbg_pair_mask // int pair_mask, // which pairs to process
disp_str,// corr_stat, // double[][] xcenter_str, // preliminary center x in pixels for largest baseline
imgdtt_params.ortho_vasw_pwr,// double vasw_pwr, // value as weight to this power,
clust_lma_debug_level+0,// 2, // int debug_level, // for a single cluster
clustX,// int tileX, // just for debug output
clustY);// int tileY
if(lma2!=null){
double[][]ddnd=lma2.getDdNd();
double[]stats=lma2.getStats(num_good_tiles);
double[][]lma_ds=lma2.lmaDisparityStrength(
imgdtt_params.lma_max_rel_rms,// maximal relative (to average max/min amplitude LMA RMS) // May be up to 0.3)
imgdtt_params.lma_min_strength,// minimal composite strength (sqrt(average amp squared over absolute RMS)
imgdtt_params.lma_min_ac,// minimal of A and C coefficients maximum (measures sharpest point/line)
imgdtt_params.lma_min_min_ac,// minimal of A and C coefficients minimum (measures sharpest point)