@@ -397,7 +398,8 @@ public class AlignmentCorrection {
...
@@ -397,7 +398,8 @@ public class AlignmentCorrection {
use_poly,// final boolean use_poly,
use_poly,// final boolean use_poly,
clt_parameters.fcorr_inf_quad,// final boolean use_quadratic,
clt_parameters.fcorr_inf_quad,// final boolean use_quadratic,
clt_parameters.fcorr_inf_vert,// final boolean use_vertical,
clt_parameters.fcorr_inf_vert,// final boolean use_vertical,
clt_parameters.ly_inf_en,// final boolean use_disparity, // for infinity - if true, restores differences in the direction of disparity that was subtracted during measurement)
// now disaprity is already restored
false,//clt_parameters.ly_inf_en, // final boolean use_disparity, // for infinity - if true, restores differences in the direction of disparity that was subtracted during measurement)
// For ly_inf_en need to make sure that programmed disparity was 0.0, so
// For ly_inf_en need to make sure that programmed disparity was 0.0, so
clt_parameters.ly_inf_force,// boolean force_convergence, // if true try to adjust convergence (disparity, symmetrical parameter 0) even with no disparity
clt_parameters.ly_inf_force,// boolean force_convergence, // if true try to adjust convergence (disparity, symmetrical parameter 0) even with no disparity
clt_parameters.ly_com_roll,// boolean common_roll, // Enable common roll (valid for high disparity range only)
clt_parameters.ly_com_roll,// boolean common_roll, // Enable common roll (valid for high disparity range only)
@@ -4434,14 +4447,19 @@ public class EyesisCorrectionParameters {
...
@@ -4434,14 +4447,19 @@ public class EyesisCorrectionParameters {
gd.addNumericField("Keep samples within this difference from farthest maximum",this.ih_max_diff,3);
gd.addNumericField("Keep samples within this difference from farthest maximum",this.ih_max_diff,3);
gd.addNumericField("Minimal number of remaining samples",this.ih_min_samples,0);
gd.addNumericField("Minimal number of remaining samples",this.ih_min_samples,0);
gd.addCheckbox("Replace samples with a single average with equal weight",this.ih_norm_center);
gd.addCheckbox("Replace samples with a single average with equal weight",this.ih_norm_center);
gd.addCheckbox("Add disparity back to d{x,y}[i] (debug feature)",this.inf_restore_disp);
gd.addTab("Lazy eye","Lazy eye parameters");
gd.addTab("Lazy eye","Lazy eye parameters");
gd.addCheckbox("Calculate and apply lazy eye correction after disparity scan (poly or extrinsic), may repeat",this.ly_on_scan);
gd.addCheckbox("Calculate and apply lazy eye correction after disparity scan (poly or extrinsic), may repeat",this.ly_on_scan);
gd.addCheckbox("Adjust disparity using objects at infinity by changing individual tilt and azimuth ",this.ly_inf_en," disable if there are no really far objects in the scene");
gd.addCheckbox("Adjust disparity using objects at infinity by changing individual tilt and azimuth ",this.ly_inf_en," disable if there are no really far objects in the scene");
gd.addCheckbox("Adjust other extrinsics that do not influence disparity",this.ly_combo_en,"disable if only disparity is critical");
gd.addCheckbox("Adjust azimuths and tilts",this.ly_aztilt_en,"Adjust azimuths and tilts excluding those that change disparity");
gd.addCheckbox("Adjust differential rolls",this.ly_diff_roll_en,"Adjust differential rolls (3 of 4 rolls, keeping average roll)");
s=String.format("tilt (up): %8.5fpx %8.5fpx %8.5fpx %8.5fpx (shift of he image center)\n",v[0],v[1],v[2],-(v[0]+v[1]+v[2]));
s+=String.format("azimuth (right): %8.5fpx %8.5fpx %8.5fpx %8.5fpx (shift of he image center)\n",v[3],v[4],v[5],-(v[3]+v[4]+v[5]));
s+=String.format("roll (CW): %8.5fpx %8.5fpx %8.5fpx %8.5fpx (shift at the imge half-width from the center)\n",v[6],v[7],v[8],v[9]);
s+=String.format("diff zoom (in): %8.5fpx %8.5fpx %8.5fpx %8.5fpx (shift at the imge half-width from the center)\n",v[10],v[11],v[12],-(v[10]+v[11]+v[12]));