publicintrefine_num_cm=5;// number of iterations to apply weights around new center
publicdoublemagic_scale=0.85;// 2.0 * 0.85;
publicintmax_refines=50;
publicintnum_refine_all=3;
publicdoublemin_change=0.1;// 01;// sqrt (dx*dx + dy*dy) for correction (int tiles) in pixels
publicintbest_neibs_num=4;// use 4 best neighbors to calculate std deviation
publicdoubleref_stdev=5.0;// strength 0.5 if standard deviation of best neighbors to tile difference is this.
publicbooleanignore_ers=false;// ignore velocities from individual ERS (LWIR - ignore, RGB - do not ignore
publicdoublelpf_pairs=5.0;// velocities LPF during pairwise fitting
publicdoublelpf_series=5.0;// velocities LPF during all-to-reference fitting
publicbooleancombine_empty_only=true;// false;
publicbooleanlate_normalize_iterate=true;
publicinttest_corr_rad_max=3;
// for recalculateFlowXY()
...
...
@@ -150,6 +146,14 @@ public class OpticalFlowParameters {
"Use this number of the neighbors (of total 8) that are most similar to the current tile to calculate confidence. Zero confidence if there are not enough neighbors.");
gd.addNumericField("Expected standard deviation of the Optical Flow",this.ref_stdev,3,6,"pix",
"Calculate for the best neighbors around the current tile: confidence= (ref_stdev ^ 2)/(ref_stdev ^2 + stdev^2)");
gd.addMessage("Linear and Rotational Velocities");
gd.addCheckbox("Ignore velocities from individual ERS",this.ignore_ers,
"Ignore relative pose from individa-scene ERS when calculating relative poses");
gd.addNumericField("Velocities LPF during pairwise fitting",this.lpf_pairs,3,6,"samples",
"Half of the full width LPF to smooth ERS velocities during consecutive pairs pose fitting");
gd.addNumericField("Velocities LPF during all-to-reference fitting",this.lpf_series,3,6,"samples",
"Half of the full width LPF to smooth ERS velocities during all scenes to reference pose fitting");
gd.addMessage("Testing and Debug");
gd.addCheckbox("Consolidate correlation macrotiles only if the current macrotile is null",this.combine_empty_only,
...
...
@@ -203,9 +207,13 @@ public class OpticalFlowParameters {
this.best_neibs_num=(int)gd.getNextNumber();
this.ref_stdev=gd.getNextNumber();
this.ignore_ers=gd.getNextBoolean();
this.lpf_pairs=gd.getNextNumber();
this.lpf_series=gd.getNextNumber();
this.combine_empty_only=gd.getNextBoolean();
this.late_normalize_iterate=gd.getNextBoolean();
this.test_corr_rad_max=(int)gd.getNextNumber();
this.test_corr_rad_max=(int)gd.getNextNumber();
this.debug_level_optical=(int)gd.getNextNumber();
this.debug_level_iterate=(int)gd.getNextNumber();
this.enable_debug_images=gd.getNextBoolean();
...
...
@@ -245,6 +253,10 @@ public class OpticalFlowParameters {