publicbooleanno_int_x0=true;// do not offset window to integer maximum for the rig - used when averaging low textures to avoid "jumps" for very wide maximums
publicbooleanuse_poly=true;
publicbooleanuse_xy_poly=true;
publicdoublemin_poly_strength=0.2;
publicdoublemin_poly_strength=0.2;// never
publicdoublemin_xy_poly_strength=1.0;// never
publicdoubleinf_min_strength_main=0.12;
publicdoubleinf_min_strength_aux=0.12;
@@ -72,6 +73,7 @@ public class BiQuadParameters {
publicdoubletrusted_tolerance=1.0;// Trusted tolerance for small baseline camera(s)
// rig LT (poor textured areas)
publicintlt_avg_radius=0;// average multiple tiles disparity (only used in certain modes)
publicdoublelt_min_disparity=0.0;// apply low texture to near objects
publicdoublelt_trusted_strength=0.2;// strength sufficient without neighbors
publicdoublelt_strength_rfloor=0.28;// fraction of trusted strength to subtract
@@ -146,7 +148,21 @@ public class BiQuadParameters {
publicdoublepf_new_diff=0.5;// Minimal disparity (in master camera pixels) difference between the new suggested and the already tried/measured one
publicintpf_min_new=5;// Minimal number of he new tiles during rig refine for plane filter
gd.addCheckbox("Debug rig/bi-camera functionality ",this.rig_mode_debug,"Enable debugging of the methods related to dual camera rig");
gd.addCheckbox("Do not offset window to integer maximum for the rig (CM mode)",this.no_int_x0,
"For the very wide/low strength maximums changing window from integer maximum causes \"jumps\" in the result, so this offset is automatically disabled in refine mode."+
" It is still useful for large offsets, and can be manually disabled with this parameter (rig only, not used for a single quad camera)");
gd.addCheckbox("Use poly for main/aux/rig correlations (false - CM)",this.use_poly,"Use LMA/polynomial if correlation is strong enough");
gd.addCheckbox("Use poly for rig X/Y mismatch measurements",this.use_xy_poly,"Use polynomial forX/Y offset measurements if correlation is strong enough");
@@ -286,6 +305,8 @@ public class BiQuadParameters {
gd.addTab("Rig LT","Deal with the low textured areas");
gd.addNumericField("Average multiple tiles disparity (only used in certain modes)",this.lt_avg_radius,0,3,"",
"Replace bi-quad correlation/strength with average over a sample square : 0 - avg off, 1 - 3x3, 2 - 5x5, ...");
gd.addNumericField("Apply low texture to near objects (disparity above)",this.lt_min_disparity,3,6,"pix",
"Handle low textured objects with disparity (main camera pixels) above this threshold");
gd.addNumericField("Inter-camera correlation strength sufficient without neighbors",this.lt_trusted_strength,3,6,"",
@@ -424,6 +445,33 @@ public class BiQuadParameters {
gd.addNumericField("Minimal refined tiles during plane filter",this.pf_min_new,0,3,"",