clt_parameters.fcorr_radius,// final double fcorr_radius,
clt_parameters.fcorr_inf_strength,// final double min_strenth,
clt_parameters.fcorr_inf_diff,// final double max_diff,
...
...
@@ -4702,7 +4410,7 @@ public class QuadCLT {
tilesX,// int tilesX,
clt_parameters.corr_magic_scale,// double magic_coeff, // still not understood coefficent that reduces reported disparity value. Seems to be around 8.5
debugLevel+(clt_parameters.fine_dbg?1:0));// int debugLevel)
// includes both infinity correction and mismatch correction for the same infinity tiles
double[][][]new_corr=ac.infinityCorrection(
clt_parameters.ly_poly,// final boolean use_poly,
clt_parameters.fcorr_inf_strength,// final double min_strenth,
clt_parameters.fcorr_inf_diff,// final double max_diff,
clt_parameters.inf_iters,// 20, // 0, // final int max_iterations,
...
...
@@ -4876,6 +4585,7 @@ public class QuadCLT {
double[][][]new_corr=ac.lazyEyeCorrection(
clt_parameters.ly_poly,// final boolean use_poly,
clt_parameters.fcorr_radius,// final double fcorr_radius,
clt_parameters.fcorr_inf_strength,// final double min_strenth,
clt_parameters.fcorr_inf_diff,// final double max_diff,
...
...
@@ -4908,7 +4618,7 @@ public class QuadCLT {
clt_parameters.corr_magic_scale,// double magic_coeff, // still not understood coefficent that reduces reported disparity value. Seems to be around 8.5
debugLevel+(clt_parameters.fine_dbg?1:0));// int debugLevel)
if(!dry_run){
if(!dry_run&&(new_corr!=null)){
apply_fine_corr(
new_corr,
debugLevel+2);
...
...
@@ -5419,7 +5129,7 @@ public class QuadCLT {
ImageDtt.DISPARITY_INDEX_CM,// index of disparity value in disparity_map == 2 (0,2 or 4)
clt_parameters.ex_strength,// double this_sure, // minimal strength to be considered definitely good
clt_parameters.ex_nstrength,// double ex_nstrength, // minimal 4-corr strength divided by channel diff for new (border) tiles
clt_parameters.bgnd_maybe,// double this_maybe, // maximal strength to ignore as non-background
clt_parameters.sure_smth,// sure_smth, // if 2-nd worst image difference (noise-normalized) exceeds this - do not propagate bgnd
clt_parameters.pt_super_trust,// final double super_trust, // If strength exceeds ex_strength * super_trust, do not apply ex_nstrength and plate_ds
// using plates disparity/strength - averaged for small square sets of tiles. If null - just use raw tiles
filtered_disp_strength,// final double [][] plate_ds, // disparity/strength last time measured for the multi-tile squares. Strength =-1 - not measured. May be null
clt_parameters.pt_keep_raw_fg,// final boolean keep_raw_fg, // do not replace raw tiles by the plates, if raw is closer (like poles)
clt_parameters.pt_scale_pre,// final double scale_filtered_strength_pre, // scale plate_ds[1] before comparing to raw strength
clt_parameters.pt_scale_post,// final double scale_filtered_strength_post,// scale plate_ds[1] when replacing raw (generally plate_ds is more reliable if it exists)
ImageDtt.DISPARITY_INDEX_CM,// index of disparity value in disparity_map == 2 (0,2 or 4)